a8346216 康伟

kangwei:

1 个父辈 60d0b2f9
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
56 from ( 56 from (
57 select dc.contract_code 'distribut_contract_code', dc.id 'distribut_contract_id', dm.distribut_price ,dm.distribut_total_price,dm.material_num 'distribut_num',pm.* 57 select dc.contract_code 'distribut_contract_code', dc.id 'distribut_contract_id', dm.distribut_price ,dm.distribut_total_price,dm.material_num 'distribut_num',pm.*
58 from erp_distribut_contract dc , erp_distribut_material dm , erp_purchase_material pm 58 from erp_distribut_contract dc , erp_distribut_material dm , erp_purchase_material pm
59 where dc.id = dm.contract_id and dm.good_code = pm.good_code and pm.depart_id = #{param.departId} and pm.del_flag = 0 and dc.use_flag = '0' 59 where dc.id = dm.contract_id and dc.id = #{param.distributContractId } and dm.good_code = pm.good_code and pm.depart_id = #{param.departId} and pm.del_flag = 0 and dc.use_flag = '0'
60 <if test="param.sparepartCode != null and param.sparepartCode !=''">and pm.sparepart_code =#{param.sparepartCode}</if> 60 <if test="param.sparepartCode != null and param.sparepartCode !=''">and pm.sparepart_code =#{param.sparepartCode}</if>
61 <if test="param.sparepartType != null and param.sparepartType !=''">and pm.sparepart_type in (${param.sparepartType}) </if> 61 <if test="param.sparepartType != null and param.sparepartType !=''">and pm.sparepart_type in (${param.sparepartType}) </if>
62 <if test="param.sparepartName != null and param.sparepartName !=''">and pm.sparepart_name like '%' #{param.sparepartName}'%'</if> 62 <if test="param.sparepartName != null and param.sparepartName !=''">and pm.sparepart_name like '%' #{param.sparepartName}'%'</if>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!