feat:完善项目
This commit is contained in:
@ -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))
|
||||
}
|
||||
|
Reference in New Issue
Block a user