|
|
|
@ -614,28 +614,28 @@ |
|
|
|
-- 调整:goods_code从关联的STGOODS表匹配,而非库存表 |
|
|
|
-- 调整:goods_code从关联的STGOODS表匹配,而非库存表 |
|
|
|
WHERE g.goods_code = #{goodsCode} |
|
|
|
WHERE g.goods_code = #{goodsCode} |
|
|
|
AND s.stop_use = 0 |
|
|
|
AND s.stop_use = 0 |
|
|
|
<if test="materialNo == null"> |
|
|
|
<if test="materialNo == null or materialNo == ''"> |
|
|
|
AND s.material_no IS NULL |
|
|
|
AND s.material_no IS NULL |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="materialNo != null"> |
|
|
|
<if test="materialNo != null"> |
|
|
|
AND s.material_no = #{materialNo} |
|
|
|
AND s.material_no = #{materialNo} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="powderWeight == null"> |
|
|
|
<if test="powderWeight == null or powderWeight == ''"> |
|
|
|
AND s.powder_weight IS NULL |
|
|
|
AND s.powder_weight IS NULL |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="powderWeight != null"> |
|
|
|
<if test="powderWeight != null"> |
|
|
|
AND s.powder_weight = #{powderWeight} |
|
|
|
AND s.powder_weight = #{powderWeight} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="thickness == null"> |
|
|
|
<if test="thickness == null or thickness == ''"> |
|
|
|
AND s.thickness IS NULL |
|
|
|
AND s.thickness IS NULL |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="thickness != null"> |
|
|
|
<if test="thickness != null"> |
|
|
|
AND s.thickness = #{thickness} |
|
|
|
AND s.thickness = #{thickness} |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
|
|
<if test="isPrint == null"> |
|
|
|
<if test="isPrint == null or isPrint == ''"> |
|
|
|
AND s.print_mark IS NULL |
|
|
|
AND s.print_mark IS NULL |
|
|
|
</if> |
|
|
|
</if> |
|
|
|
<if test="isPrint != null"> |
|
|
|
<if test="isPrint != null"> |
|
|
|
|