单据号搜索慢的问题

phxyy
qiuyt 5 months ago
parent afb741a7df
commit 07e2983e58

@ -86,17 +86,15 @@
</if>
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''
and udiwmsBasicSkPrescribeRequest.databaseProductName == 'Oracle'">
and (STOOUT_NO like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
or PRESCRIBE_NUMBER like '%' || #{udiwmsBasicSkPrescribeRequest.key} || '%'
and (STOOUT_NO like #{udiwmsBasicSkPrescribeRequest.key} || '%'
or PRESCRIBE_NUMBER like #{udiwmsBasicSkPrescribeRequest.key} || '%'
)
</if>
<if test="udiwmsBasicSkPrescribeRequest.key != null and udiwmsBasicSkPrescribeRequest.key != ''
and udiwmsBasicSkPrescribeRequest.databaseProductName == 'MySQL'">
and (STOOUT_NO like concat('%'
, #{udiwmsBasicSkPrescribeRequest.key}
and (STOOUT_NO like concat( #{udiwmsBasicSkPrescribeRequest.key}
, '%')
or PRESCRIBE_NUMBER like concat('%'
, #{udiwmsBasicSkPrescribeRequest.key}
or PRESCRIBE_NUMBER like concat( #{udiwmsBasicSkPrescribeRequest.key}
, '%')
)
</if>

Loading…
Cancel
Save