Browse Source

积分规则配置、动作管理模糊查询优化

feature/syp_points
zhangyongzhangyong 6 years ago
parent
commit
2b0e23d9b1
  1. 6
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsBehaviorDao.xml
  2. 6
      esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsRuleDao.xml

6
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsBehaviorDao.xml

@ -29,10 +29,10 @@
`epdc_points_behavior` b, (select @i:=0) as it
WHERE b.DEL_FLAG = 0
<if test="behaviorCode != null and behaviorCode != ''">
AND b.BEHAVIOR_CODE LIKE concat('%',#{behaviorCode},'%')
AND instr(b.BEHAVIOR_CODE , #{behaviorCode} ) > 0
</if>
<if test="behaviorDesc != null and behaviorDesc != ''">
AND b.BEHAVIOR_DESC LIKE concat('%',#{behaviorDesc},'%')
AND instr(b.BEHAVIOR_DESC , #{behaviorDesc} ) > 0
</if>
ORDER BY
b.CREATED_TIME
@ -56,4 +56,4 @@
WHERE
b.DEL_FLAG = 0
</select>
</mapper>
</mapper>

6
esua-epdc/epdc-module/epdc-points/epdc-points-server/src/main/resources/mapper/PointsRuleDao.xml

@ -49,10 +49,10 @@
epdc_points_rule r, (select @i:=0) as it
WHERE r.DEL_FLAG = 0
<if test="ruleCode != null and ruleCode != ''">
AND r.RULE_CODE LIKE concat('%',#{ruleCode},'%')
AND instr(r.RULE_CODE , #{ruleCode} ) > 0
</if>
<if test="ruleDesc != null and ruleDesc != ''">
AND r.RULE_DESC LIKE concat('%',#{ruleDesc},'%')
AND instr(r.RULE_DESC , #{ruleDesc} ) > 0
</if>
<if test="operationType != null and operationType != ''">
AND r.OPERATION_TYPE = #{operationType}
@ -63,4 +63,4 @@
ORDER BY
CREATED_TIME DESC
</select>
</mapper>
</mapper>

Loading…
Cancel
Save