Browse Source

积分规则上限的调整

dev_shibei_match
wangchao 5 years ago
parent
commit
09febbcb94
  1. 2
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java
  2. 41
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/RuleCycleEnum.java

2
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/UserPointActionLogServiceImpl.java

@ -325,7 +325,7 @@ public class UserPointActionLogServiceImpl extends BaseServiceImpl<UserPointActi
action.setPoint(grantPoint.getPoint());
action.setEventStatement(grantPoint.getRemark());
action.setEventName(EventEnum.ACTIVE_SEND_POINT.getEventDesc());
action.setEventId(EventEnum.ACTIVE_INSERT_LIVE.getEventTag());
action.setEventId("COMMON");
action.setActionFlag(grantPoint.getActionFlag());
action.setUserId(grantPoint.getUserId());
action.setCreatedBy(grantPoint.getOperatorId());

41
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/RuleCycleEnum.java

@ -0,0 +1,41 @@
package com.epmet.utils;
/**
* 系统支持的规则周期枚举类
*
* @author wangc
* @date 2020-07-03 11:14
**/
public enum RuleCycleEnum {
UNLIMITED("unlimit","不限制"),
FIRST("first","首次"),
DAILY("day","每日"),
WEEKLY("week","每周"),
MONTHLY("month","每月"),
YEARLY("year","每年")
;
private String key;
private String desc;
RuleCycleEnum(String key,String desc){
this.key = key;
this.desc = desc;
}
public static RuleCycleEnum getEnum(String key){
RuleCycleEnum[] values = RuleCycleEnum.values();
for (RuleCycleEnum value : values) {
if (null != key && value.getKey().equals(key)) {
return value;
}
}
return null;
}
public String getKey(){ return key;}
public String getValue(){ return desc;}
}
Loading…
Cancel
Save