yonge 4 年之前
父节点
当前提交
d61e7c23a2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/LuckDrawLogMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/LuckDrawLogMapper.xml

@@ -30,10 +30,10 @@
 				and l.user_id_ = #{userId}
 			</if>
 			<if test="name != null">
-				and d.name_ like '%' #{name} '%'
+				and d.name_ like concat('%',#{name},'%')
 			</if>
 			<if test="rewardType != null">
-				and d.reward_type_ like '%' #{rewardType} '%'
+				and d.reward_type_ like concat('%',#{rewardType},'%')
 			</if>
 			<if test="groupId != null">
 				and l.group_id_ = #{groupId}