diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccInfoMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccInfoMapper.xml index 6ecd878..6d32a6a 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccInfoMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccInfoMapper.xml @@ -432,7 +432,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{accStatus} - and (t2.nick_name = #{accountInfoQueryParam.searchValue} + and (t2.nick_name like CONCAT('%',#{accountInfoQueryParam.searchValue},'%') or t2.phonenumber = #{encryptedSearchValue} ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccOperationHistoryMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccOperationHistoryMapper.xml index c31dfa7..654b9bf 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccOperationHistoryMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccOperationHistoryMapper.xml @@ -35,7 +35,7 @@ and aop.create_by like #{param.createBy} - and (su.nick_name = #{param.searchValue} + and (su.nick_name like CONCAT('%',#{param.searchValue},'%') or su.phonenumber = #{encryptedSearchValue} ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccTradeMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccTradeMapper.xml index 3bdfd42..7c47403 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccTradeMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/account/AccTradeMapper.xml @@ -264,7 +264,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - and (su.nick_name = #{param.searchValue} + and (su.nick_name like CONCAT('%',#{param.searchValue},'%') or su.phonenumber = #{encryptedSearchValue} or su.user_id like CONCAT('%',#{param.searchValue},'%') ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml index d03b131..dc4aa29 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/AccReportMapper.xml @@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and atwd.trade_time = ]]> #{param.startDateTime} and atwd.trade_time #{param.endDateTime} - and (su.nick_name = #{param.searchValue} + and (su.nick_name like CONCAT('%',#{param.searchValue},'%') or su.user_id like CONCAT('%',#{param.searchValue},'%') ) @@ -205,7 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where 1 = 1 - and (b.nick_name = #{param.searchValue} + and (b.nick_name like CONCAT('%',#{param.searchValue},'%') or b.phonenumber = #{encryptedSearchValue} or c.user_id like CONCAT('%',#{param.searchValue},'%') ) diff --git a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/TradeReportMapper.xml b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/TradeReportMapper.xml index 5023659..2526943 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/TradeReportMapper.xml +++ b/bonus-modules/bonus-smart-canteen/src/main/resources/mapper/report/TradeReportMapper.xml @@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and ( - su.nick_name = #{param.searchValue} + su.nick_name like CONCAT('%',#{param.searchValue},'%') or su.phonenumber = #{encryptedSearchValue} or su.user_id like concat('%', #{param.searchValue}, '%') ) @@ -311,7 +311,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and ( - su.nick_name = #{param.searchValue} + su.nick_name like CONCAT('%',#{param.searchValue},'%') or su.phonenumber = #{encryptedSearchValue} or su.user_id like concat('%', #{param.searchValue}, '%') )