备品备件出入库优化

master
杨万里 1 month ago
parent c9de421ff4
commit 09f3f95198

@ -55,10 +55,10 @@
LEFT JOIN lanju_op_cloud.dbo.sys_user su ON esio.create_by = su.user_name LEFT JOIN lanju_op_cloud.dbo.sys_user su ON esio.create_by = su.user_name
LEFT JOIN equ_spareparts_ledger esl ON esio.spare_code = esl.material_code AND esl.del_flag = 0 LEFT JOIN equ_spareparts_ledger esl ON esio.spare_code = esl.material_code AND esl.del_flag = 0
<where> <where>
<if test="inOutType != null and inOutType != ''">and in_out_type = #{inOutType}</if> <if test="inOutType != null and inOutType != ''">and esio.in_out_type = #{inOutType}</if>
<if test="orderNo != null and orderNo != ''">and order_no = #{orderNo}</if> <if test="orderNo != null and orderNo != ''">and esio.order_no = #{orderNo}</if>
<if test="spareCode != null and spareCode != ''">and spare_code = #{spareCode}</if> <if test="spareCode != null and spareCode != ''">and esio.spare_code like concat('%', #{spareCode}, '%')</if>
<if test="spareName != null and spareName != ''">and spare_name = #{spareName}</if> <if test="spareName != null and spareName != ''">and esio.spare_name like concat('%', #{spareName}, '%')</if>
<if test="amount != null ">and amount = #{amount}</if> <if test="amount != null ">and amount = #{amount}</if>
<if test="attr1 != null and attr1 != ''">and attr1 = #{attr1}</if> <if test="attr1 != null and attr1 != ''">and attr1 = #{attr1}</if>
<if test="attr2 != null and attr2 != ''">and attr2 = #{attr2}</if> <if test="attr2 != null and attr2 != ''">and attr2 = #{attr2}</if>

Loading…
Cancel
Save