yinbentan
2024-07-08 f4508a84236a4aff1c7b5bfa17a14a8ff95728ba
service/location_forms.go
@@ -27,7 +27,7 @@
      resp := new(response.LocationForms)
      resp.Amount = amount.Amount
      resp.LocationId = amount.LocationId
      resp.LocationName = amount.Location.Name
      resp.LocationName = amount.Location.JointName
      resp.ProduceId = amount.Product.ID
      resp.ProductName = amount.Product.Name
      resp.ProductTypeName = amount.ProductCategory.Name
@@ -46,10 +46,11 @@
}
func (slf *LocationFormsService) BuildSearch(params request.GetLocationForms) (search *models.LocationProductAmountSearch, err error) {
   ids := make([]int, 0)
   ids := params.LocationIds
   if params.LocationId != 0 {
      ids = append(ids, params.LocationId)
   } else {
   }
   if len(ids) == 0 {
      //查询位置
      locations, err := models.NewLocationSearch().SetJointName(params.WareHouseCode).SetType(3).FindAll()
      if err != nil {