1.修复采购需求打开隐藏无采购需求商品按钮后查询无反应的缺陷;
This commit is contained in:
parent
8efca2321e
commit
ce6708942a
|
@ -2197,6 +2197,12 @@ func getErpPurchaseDemandHide(req *GetErpPurchaseDemandReq, c *gin.Context) (*Ge
|
|||
demandQs = demandQs.Where("store_id IN (?)", storeIdList)
|
||||
}
|
||||
}
|
||||
if req.ErpCommodityName != "" {
|
||||
demandQs = demandQs.Where("erp_commodity_name = ?", req.ErpCommodityName)
|
||||
}
|
||||
if req.ErpSupplierId != 0 {
|
||||
demandQs = demandQs.Where("erp_supplier_id=?", req.ErpSupplierId)
|
||||
}
|
||||
err = demandQs.Find(&demand).Error
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Reference in New Issue
Block a user