feat:完善项目

This commit is contained in:
henry
2021-11-04 17:48:12 +08:00
parent fe7c9ad983
commit 873ad8ea2c
6 changed files with 191 additions and 11 deletions

View File

@ -38,11 +38,14 @@ func (c *MaterialParams) isExistForCode(iModel model2.IModel, tenantID uint64) (
}
// List 列表信息
func (c *Material) List(supplierID uint64, code, title string, page, pageSize int) (*basic.PageDataResponse, error) {
func (c *Material) List(manufacturerID, supplierID uint64, code, title string, page, pageSize int) (*basic.PageDataResponse, error) {
mManageMaterial := model.NewManageMaterial()
where := make([]*model2.ModelWhere, 0)
if manufacturerID > 0 {
where = append(where, model2.NewWhere("m.manufacturer_id", manufacturerID))
}
if supplierID > 0 {
where = append(where, model2.NewWhere("m.supplier_id", supplierID))
}