erp 库位sql优化
This commit is contained in:
@@ -28,7 +28,7 @@
|
|||||||
and f.NUM like concat('%', #{number}, '%')
|
and f.NUM like concat('%', #{number}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="erpCompanyNumber != null">
|
<if test="erpCompanyNumber != null">
|
||||||
and f.CPN_ID = like concat('%', #{erpCompanyNumber}, '%')
|
and f.CPN_ID like concat('%', #{erpCompanyNumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="erpCompanyName != null">
|
<if test="erpCompanyName != null">
|
||||||
and c.NAME like concat('%', #{erpCompanyName}, '%')
|
and c.NAME like concat('%', #{erpCompanyName}, '%')
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
f.IS_ENB as isEnable,
|
f.IS_ENB as isEnable,
|
||||||
f.FACT_NUM as factoryNumber,
|
f.FACT_NUM as factoryNumber,
|
||||||
c.NAME as factoryName
|
c.NAME as factoryName
|
||||||
from sply_erp_wrh f left join sply_erp_fact c on f.FACT_NUM = c.NUM;
|
from sply_erp_wrh f left join sply_erp_fact c on f.FACT_NUM = c.NUM
|
||||||
where f.DELETED = 0
|
where f.DELETED = 0
|
||||||
<if test="name != null">
|
<if test="name != null">
|
||||||
and f.NAME like concat('%', #{name}, '%')
|
and f.NAME like concat('%', #{name}, '%')
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
and f.NUM like concat('%', #{number}, '%')
|
and f.NUM like concat('%', #{number}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="factoryNumber != null">
|
<if test="factoryNumber != null">
|
||||||
and f.FACT_NUM = like concat('%', #{factoryNumber}, '%')
|
and f.FACT_NUM like concat('%', #{factoryNumber}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="factoryName != null">
|
<if test="factoryName != null">
|
||||||
and c.NAME like concat('%', #{factoryName}, '%')
|
and c.NAME like concat('%', #{factoryName}, '%')
|
||||||
|
|||||||
Reference in New Issue
Block a user