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
924 B

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