Browse Source

积分规则添加 未删除条件

dev
jianjun 4 years ago
parent
commit
3890aa1002
  1. 8
      epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/PointRuleDao.xml

8
epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/PointRuleDao.xml

@ -28,7 +28,11 @@
SELECT DISTINCT FUNCTION_ID FROM point_rule WHERE CUSTOMER_ID = #{customerId,jdbcType=VARCHAR} SELECT DISTINCT FUNCTION_ID FROM point_rule WHERE CUSTOMER_ID = #{customerId,jdbcType=VARCHAR}
</select> </select>
<select id="selectListByFunctionId" resultMap="pointRuleMap"> <select id="selectListByFunctionId" resultMap="pointRuleMap">
SELECT ID,RULE_NAME,RULE_DESC,POINT,POINT_UNIT,ENABLED_FLAG FROM point_rule WHERE CUSTOMER_ID = #{customerId,jdbcType=VARCHAR} AND FUNCTION_ID = #{functionId,jdbcType=VARCHAR} SELECT ID,RULE_NAME,RULE_DESC,POINT,POINT_UNIT,ENABLED_FLAG FROM point_rule
WHERE
CUSTOMER_ID = #{customerId,jdbcType=VARCHAR}
AND FUNCTION_ID = #{functionId,jdbcType=VARCHAR}
AND DEL_FLAG = '0'
</select> </select>
<update id="updateByCustomerId"> <update id="updateByCustomerId">
UPDATE point_rule UPDATE point_rule
@ -50,4 +54,4 @@
<select id="selectCustomerIds" resultType="java.lang.String"> <select id="selectCustomerIds" resultType="java.lang.String">
SELECT DISTINCT CUSTOMER_ID FROM point_rule WHERE DEL_FLAG = '0' SELECT DISTINCT CUSTOMER_ID FROM point_rule WHERE DEL_FLAG = '0'
</select> </select>
</mapper> </mapper>

Loading…
Cancel
Save