|
|
@ -65,15 +65,19 @@
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
<if test="orderIdFk != null and orderIdFk != ''">
|
|
|
|
AND ic.orderIdFk = #{orderIdFk}
|
|
|
|
AND ic.orderIdFk = #{orderIdFk}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="orderIdFk == null || orderIdFk == ''">
|
|
|
|
|
|
|
|
AND (ic.orderIdFk is null or ic.orderIdFk = '')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="relId != null">
|
|
|
|
<if test="relId != null">
|
|
|
|
AND ic.bindRlFk = #{relId}
|
|
|
|
AND ic.bindRlFk = #{relId}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
|
AND ic.batchNo = #{batchNo}
|
|
|
|
AND ic.batchNo = #{batchNo}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="bizIdFk != null and bizIdFk != ''">
|
|
|
|
<if test="batchNo == null || batchNo == ''">
|
|
|
|
AND ic.bizIdFk = #{bizIdFk}
|
|
|
|
AND (ic.batchNo is null or ic.batchNo = '')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</where>
|
|
|
|
GROUP BY ic.id
|
|
|
|
GROUP BY ic.id
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|