yonge 5 years ago
parent
commit
abd5e896e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/SellOrderMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/SellOrderMapper.xml

@@ -298,7 +298,7 @@
                 AND (so.order_no_ = #{search} OR so.trans_no_ = #{search})
             </if>
             <if test="userName != null and userName != ''">
-                AND (so.user_id_ = concat('%',#{userName}),'%') OR su.username_ = concat('%',#{userName}),'%')
+                AND (so.user_id_ like concat('%',#{userName},'%') OR su.username_ like concat('%',#{userName},'%'))
             </if>
             <if test="organIdList != null and organIdList != ''">
                 AND FIND_IN_SET(so.organ_id_,#{organIdList})