kangwei:
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
... | @@ -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> | ... | ... |
-
请 注册 或 登录 后发表评论