yonge 4 rokov pred
rodič
commit
d61e7c23a2

+ 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}