Browse Source

接口补充字段

dev
Jackwang 3 years ago
parent
commit
150061c68c
  1. 6
      epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/form/List4applyFormDTO.java
  2. 7
      epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/PointAdditiveRuleDao.xml

6
epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/form/List4applyFormDTO.java

@ -30,6 +30,12 @@ public class List4applyFormDTO implements Serializable {
*/ */
private String type; private String type;
/**
*积分奖励point_reward积分扣罚point_fine
*/
@NotNull(message = "奖罚编码不可为空")
private String businessCode;
private String customerId; private String customerId;

7
epmet-module/epmet-point/epmet-point-server/src/main/resources/mapper/PointAdditiveRuleDao.xml

@ -53,12 +53,19 @@
and CATEGORY_CODE=#{categoryCode} and CATEGORY_CODE=#{categoryCode}
<if test="applyFlag != null and applyFlag != ''"> <if test="applyFlag != null and applyFlag != ''">
and APPLY_FLAG= #{applyFlag} and APPLY_FLAG= #{applyFlag}
</if>
<if test="businessCode != null and businessCode != '' and businessCode == 'point_fine'.toString()">
and (( type='rule' and POINT_VALUE &lt; 0 )or TYPE='category')
</if>
<if test="businessCode != null and businessCode != '' and businessCode == 'point_reward'.toString()">
and (( type='rule' and POINT_VALUE &gt; 0 )or TYPE='category')
</if> </if>
and CUSTOMER_ID=#{customerId} and CUSTOMER_ID=#{customerId}
order by UPDATED_TIME desc order by UPDATED_TIME desc
</select> </select>
<select id="selectList4tree" resultType="com.epmet.dto.PointAdditiveRuleDTO"> <select id="selectList4tree" resultType="com.epmet.dto.PointAdditiveRuleDTO">
select id, select id,
pid,
type, type,
CATEGORY_NAME, CATEGORY_NAME,
RULE_NAME, RULE_NAME,

Loading…
Cancel
Save