|
@@ -883,27 +883,27 @@
|
|
|
LEFT JOIN RMS_MATERIAL RM ON RM.MATERIAL_ID = ORI.MATERIAL_ID
|
|
|
<where>
|
|
|
<if test="companyName != null and companyName != ''">
|
|
|
- AND "companyName" LIKE '%${companyName}%'
|
|
|
+ AND RC.CONSIGNEE_COMPANY_NAME LIKE '%${companyName}%'
|
|
|
</if>
|
|
|
<if test="saleArea != null and saleArea != ''">
|
|
|
- AND "saleArea" LIKE '%${saleArea}%'
|
|
|
+ AND ORI.SALE_AREA LIKE '%${saleArea}%'
|
|
|
</if>
|
|
|
<if test="inboundWarehouse != null and inboundWarehouse != ''">
|
|
|
- AND "inboundWarehouse" LIKE '%${inboundWarehouse}%'
|
|
|
+ AND ORI.INBOUND_WAREHOUSE LIKE '%${inboundWarehouse}%'
|
|
|
</if>
|
|
|
<if test="materialName != null and materialName != ''">
|
|
|
- AND "materialName" LIKE '%${materialName}%'
|
|
|
+ AND RM.MATERIAL_NAME LIKE '%${materialName}%'
|
|
|
</if>
|
|
|
<if test="materialSpe != null and materialSpe != ''">
|
|
|
- AND "materialSpe" LIKE '%${materialSpe}%'
|
|
|
+ AND RM.MATERIAL_SPECIFICATION LIKE '%${materialSpe}%'
|
|
|
</if>
|
|
|
<if test="materialModel != null and materialModel != ''">
|
|
|
- AND "materialModel" LIKE '%${materialModel}%'
|
|
|
+ AND RM.MATERIAL_MODEL LIKE '%${materialModel}%'
|
|
|
</if>
|
|
|
<if test="saleAreaRemark != null">
|
|
|
and
|
|
|
<foreach collection="saleAreaRemark" item="item" open="(" separator="or" close=")">
|
|
|
- "saleArea" like '%${item}%'
|
|
|
+ ORI.SALE_AREA like '%${item}%'
|
|
|
</foreach>
|
|
|
</if>
|
|
|
</where>
|