kangwei:统购合同新增,根据货号查询统购合同药剂记录,添加生效时间、失效时间条件
正在显示
2 个修改的文件
包含
2 行增加
和
2 行删除
... | @@ -266,7 +266,7 @@ public class DistributContractController { | ... | @@ -266,7 +266,7 @@ public class DistributContractController { |
266 | result.setSuccess(true); | 266 | result.setSuccess(true); |
267 | result.setResult(purchaseMaterialList.get(0)); | 267 | result.setResult(purchaseMaterialList.get(0)); |
268 | }else{ | 268 | }else{ |
269 | result.error500("根据[厂站]以及[货号]未找到采购合同!"); | 269 | result.error500("根据[厂站]以及[货号]未找到统购合同的药剂记录!"); |
270 | } | 270 | } |
271 | return result; | 271 | return result; |
272 | } | 272 | } | ... | ... |
... | @@ -39,7 +39,7 @@ | ... | @@ -39,7 +39,7 @@ |
39 | select st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name', pm.* | 39 | select st.item_text as 'sparepart_type_name',sm.supp_name as 'supplier_name', pm.* |
40 | from ( | 40 | from ( |
41 | select m.* from erp_purchase_material m , erp_purchase_contract c | 41 | select m.* from erp_purchase_material m , erp_purchase_contract c |
42 | where m.contract_id = c.id and c.status = 3 and c.use_flag = '0' | 42 | where m.contract_id = c.id and c.status = 3 and c.use_flag = '0' and c.start_time <= now() and c.end_time >= now() |
43 | and m.good_code = #{goodCode} and m.depart_id = #{departId} | 43 | and m.good_code = #{goodCode} and m.depart_id = #{departId} |
44 | ) pm | 44 | ) pm |
45 | left join equipment_sparepart_type st on st.id = pm.sparepart_type | 45 | left join equipment_sparepart_type st on st.id = pm.sparepart_type | ... | ... |
-
请 注册 或 登录 后发表评论