|
|
|
@ -39,9 +39,14 @@
|
|
|
|
|
<if test="workCenter != null and workCenter != ''">
|
|
|
|
|
AND B.WORK_CENTER = #{workCenter}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="category != null and category != ''">
|
|
|
|
|
AND B.CATEGORY = #{category}
|
|
|
|
|
</if>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="category != null and category != ''">
|
|
|
|
|
AND B.CATEGORY = #{category}
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
AND (B.CATEGORY = 'S' OR B.CATEGORY = 'P')
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<if test="status != null and status != ''">
|
|
|
|
|
AND B.STATUS = #{status}
|
|
|
|
|
</if>
|
|
|
|
|