库存产品信息修复

master
anthonywj 4 years ago
parent 535e7be486
commit a79c02a5cc

@ -57,6 +57,14 @@ public class ErpInvClient {
paramMap.put("warehouseCode", onhandRequest.getWarehouseCode());
if (onhandRequest.getInventoryCode() != null && !onhandRequest.getInventoryCode().equals(""))
paramMap.put("inventoryCode", onhandRequest.getInventoryCode());
if (onhandRequest.getInventoryName() != null && !onhandRequest.getInventoryName().equals(""))
paramMap.put("inventoryName", onhandRequest.getInventoryName());
if (onhandRequest.getSpec() != null && !onhandRequest.getSpec().equals(""))
paramMap.put("spec", onhandRequest.getSpec());
if (onhandRequest.getRegisterCertNo() != null && !onhandRequest.getRegisterCertNo().equals(""))
paramMap.put("registerCertNo", onhandRequest.getRegisterCertNo());
if (onhandRequest.getManufactory() != null && !onhandRequest.getManufactory().equals(""))
paramMap.put("manufactory", onhandRequest.getManufactory());
if (onhandRequest.getPage() != null)
paramMap.put("page", onhandRequest.getPage());
if (onhandRequest.getLimit() != null)

@ -8,22 +8,22 @@
SELECT * FROM thr_inv_products
<where>
<if test="inventoryCode != '' and inventoryCode != null">
AND inventoryCode LIKE concat(#{inventoryCode},'%')
AND inventoryCode LIKE concat('%',#{inventoryCode},'%')
</if>
<if test="inventoryName != '' and inventoryName != null">
AND inventoryName LIKE concat(#{inventoryName},'%')
AND inventoryName LIKE concat('%',#{inventoryName},'%')
</if>
<if test="inventoryName != '' and inventoryName != null">
AND inventoryName LIKE concat(#{inventoryName},'%')
AND inventoryName LIKE concat('%',#{inventoryName},'%')
</if>
<if test="spec != '' and spec != null">
AND spec LIKE concat(#{spec},'%')
AND spec LIKE concat('%',#{spec},'%')
</if>
<if test="registerCertNo != '' and registerCertNo != null">
AND registerCertNo LIKE concat(#{registerCertNo},'%')
AND registerCertNo LIKE concat('%',#{registerCertNo},'%')
</if>
<if test="manufactory != '' and manufactory != null">
AND manufactory = #{manufactory}
AND manufactory LIKE concat('%',#{manufactory},'%')
</if>
</where>
ORDER BY updateTime DESC

Loading…
Cancel
Save