he2802 1 년 전
부모
커밋
f87f8bc7c9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      zhongzheng-system/src/main/resources/mapper/modules/order/OrderHandleMapper.xml

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/order/OrderHandleMapper.xml

@@ -55,7 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND oh.education_type_id = #{educationTypeId}
         </if>
         <if test="searchKey != null and searchKey != ''">
-            AND (select count(*) from `order` o left JOIN `user` u  on o.user_id = u.user_id left JOIN order_goods og on o.order_sn = og.order_sn LEFT JOIN goods g on og.goods_id = g.goods_id where  o.handle_order_sn = oh.handle_order_sn and (u.realname like concat('%', #{searchKey}, '%') or (u.id_card = #{searchKey}) or (g.goods_name like concat('%', #{searchKey}, '%'))))>0
+            AND (select count(*) from `order` o left JOIN `user` u  on o.user_id = u.user_id left JOIN order_goods og on o.order_sn = og.order_sn LEFT JOIN goods g on og.goods_id = g.goods_id where  o.handle_order_sn = oh.handle_order_sn and (u.realname like concat('%', #{searchKey}, '%') or (u.id_card = #{searchKey,typeHandler=com.zhongzheng.common.type.EncryptHandler}) or (g.goods_name like concat('%', #{searchKey}, '%'))))>0
         </if>
         <if test="goodsType != null">
             AND oh.goods_type = #{goodsType}