| | |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | |
| | | <if test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </if> |
| | | <!-- <if test="batch != null and batch != ''">--> |
| | | <!-- and a.batch = #{batch}--> |
| | | <!-- </if>--> |
| | | <choose> |
| | | <when test="batch != null and batch != ''"> |
| | | and batch = #{batch} |
| | | <when test="sPgNO != null and sPgNO != ''"> |
| | | and a.pg_no = #{sPgNO} |
| | | </when> |
| | | <otherwise> |
| | | and (batch IS NULL OR batch = '') |
| | | and (sPgNO IS NULL OR sPgNO = '') |
| | | </otherwise> |
| | | </choose> |
| | | <if test="batch != null and batch != ''"> |
| | | and a.batch = #{batch} |
| | | </if> |
| | | <!-- <choose>--> |
| | | <!-- <when test="batch != null and batch != ''">--> |
| | | <!-- and batch = #{batch}--> |
| | | <!-- </when>--> |
| | | <!-- <otherwise>--> |
| | | <!-- and (batch IS NULL OR batch = '')--> |
| | | <!-- </otherwise>--> |
| | | <!-- </choose>--> |
| | | <!-- <if test="orderNo != null and orderNo != ''">--> |
| | | <!-- and a.order_no = #{orderNo}--> |
| | | <!-- </if>--> |