GAAS 广汽安道拓GFrame金属件MOM项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

  1. package base
  2. import (
  3. "github.com/go-xorm/xorm"
  4. "leit.com/LAPP_GAAS_GFrame/dao/base/implments"
  5. "leit.com/LAPP_GAAS_GFrame/grmi"
  6. model "leit.com/LAPP_GAAS_GFrame/models/base"
  7. )
  8. type WorkLineWorkShiftLstDAO interface {
  9. //插入WorkLineWorkShiftLst
  10. InsertOne(entity *model.WorkLineWorkShiftLst) error
  11. //删除指定键的WorkLineWorkShiftLst
  12. DeleteOne(workLineId string, workDay string, pos int) error
  13. //查找指定键的WorkLineWorkShiftLst
  14. SelectOne(workLineId string, workDay string, pos int) (*model.WorkLineWorkShiftLst, error)
  15. //修改WorkLineWorkShiftLst
  16. UpdateOne(entity *model.WorkLineWorkShiftLst) error
  17. //按条件查询WorkLineWorkShiftLst
  18. Select(predicates []grmi.Predicate, orderByFields []grmi.Field) ([]model.WorkLineWorkShiftLst, error)
  19. //按条件查询WorkLineWorkShiftLst并分页
  20. SelectAndPaging(paging *grmi.Paging, predicates []grmi.Predicate, orderByFields []grmi.Field) (grmi.PagingResult, error)
  21. }
  22. func NewWorkLineWorkShiftLstDAO(session *xorm.Session, plantNr int, userid string) WorkLineWorkShiftLstDAO {
  23. return implments.NewWorkLineWorkShiftLstDAOImplement(session, plantNr, userid)
  24. }