CipherQueryLikeHandler

This commit is contained in:
sxu 2025-03-03 18:48:51 +08:00
parent 9859691596
commit 5c261cecf9
5 changed files with 19 additions and 19 deletions

View File

@ -89,7 +89,7 @@
or t2.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
or t2.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
)
</if>
<if test="param.macOrderId != null">

View File

@ -306,7 +306,7 @@
and ci.cust_id = #{infoParam.custId}
</if>
<if test="infoParam.custName != null and infoParam.custName != ''">
and ci.cust_name_like LIKE CONCAT('%',#{infoParam.custName,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
and ci.cust_name_like LIKE CONCAT('%',#{infoParam.custName,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
</if>
<if test="infoParam.custNum != null and infoParam.custNum != ''">
and ci.cust_num = #{infoParam.custNum}
@ -315,7 +315,7 @@
<if test="infoParam.keyword != null and infoParam.keyword != ''">
and (ci.cust_num LIKE CONCAT('%', #{infoParam.keyword},'%')
or ci.cust_name = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or ci.cust_name_like LIKE CONCAT('%',#{infoParam.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
or ci.cust_name_like LIKE CONCAT('%',#{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
or ci.mobile = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or ci.mobile_suffix = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
)

View File

@ -251,7 +251,7 @@
WHERE oi.cust_id = ci.cust_id
AND (
ci.cust_name = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_num = #{param.custSearchInfo}
OR ci.mobile = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.mobile_suffix = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
@ -272,7 +272,7 @@
WHERE oi.cust_id = ci.cust_id
AND (
ci.cust_name = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_num = #{param.buffetSearchInfo}
OR ci.mobile = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.mobile_suffix = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
@ -312,7 +312,7 @@
WHERE oi.cust_id = ci.cust_id
AND (
ci.cust_name = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_num = #{param.buffetSearchInfo}
OR ci.mobile = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.mobile_suffix = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
@ -327,7 +327,7 @@
WHERE oi.cust_id = ci.cust_id
AND (
ci.cust_name = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
OR ci.cust_num = #{param.buffetSearchInfo}
OR ci.mobile = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
OR ci.mobile_suffix = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
@ -538,7 +538,7 @@
<!-- <if test="param.custSearchInfo != null and param.custSearchInfo != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.custSearchInfo}-->
<!-- OR ci.mobile = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -614,7 +614,7 @@
<!-- <if test="param.custSearchInfo != null and param.custSearchInfo != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.custSearchInfo}-->
<!-- OR ci.mobile = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.custSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -629,7 +629,7 @@
<!-- WHERE oi.cust_id = ci.cust_id-->
<!-- AND (-->
<!-- ci.cust_name = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.buffetSearchInfo}-->
<!-- OR ci.mobile = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.buffetSearchInfo,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->

View File

@ -312,7 +312,7 @@
<!-- WHERE a.cust_id = ci.cust_id-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -410,7 +410,7 @@
<!-- WHERE a.cust_id = ci.cust_id-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -733,7 +733,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -1015,7 +1015,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -1287,7 +1287,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -1839,7 +1839,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -2467,7 +2467,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
@ -2566,7 +2566,7 @@
<!-- <if test="param.keyword != null and param.keyword != ''">-->
<!-- AND (-->
<!-- ci.cust_name = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_name_like LIKE CONCAT('%',#{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')-->
<!-- OR ci.cust_num = #{param.keyword}-->
<!-- OR ci.mobile = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->
<!-- OR ci.mobile_suffix = #{param.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}-->

View File

@ -688,7 +688,7 @@
or t2.cust_name = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.mobile = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.mobile_suffix = #{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.SM4EncDecHandler}
or t2.cust_name_like LIKE CONCAT('%',#{infoParam.keyword,typeHandler=net.xnzn.core.common.encrypt.CipherQueryLikeHandler},'%')
or t2.cust_name_like LIKE CONCAT('%',#{infoParam.keyword,typeHandler=com.bonus.canteen.core.common.encrypt.CipherQueryLikeHandler},'%')
)
</sql>