|
@@ -291,11 +291,10 @@
|
|
|
on apo.BATCH_ID = DB.BATCH_ID
|
|
|
join RMS_SUPPLIER RS
|
|
|
on RS.SUPPLIER_ID = apo.SUPPLIER_UNIT_ID
|
|
|
- <where>
|
|
|
+ where APO.DELETED = 0
|
|
|
<if test="materialId != null">
|
|
|
- DB.MATERIAL_ID = #{materialId}
|
|
|
+ and DB.MATERIAL_ID = #{materialId}
|
|
|
</if>
|
|
|
- </where>
|
|
|
)
|
|
|
<where>
|
|
|
<if test="index != null">
|