Browse Source

积分规则概述

master
jianjun 4 years ago
parent
commit
aba5083aba
  1. 9
      epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/GroupPointRuleResultDTO.java
  2. 3
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/controller/GroupPointController.java
  3. 3
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/ModuleConstant.java

9
epmet-module/epmet-point/epmet-point-client/src/main/java/com/epmet/dto/result/GroupPointRuleResultDTO.java

@ -14,4 +14,13 @@ import java.util.List;
public class GroupPointRuleResultDTO implements Serializable {
private static final long serialVersionUID = -1651136821935977327L;
private List<String> rules;
/**
* 个人贡献概述
*/
private String contriSummary;
/**
* 小组积分概述
*/
private String groupSummary;
}

3
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/controller/GroupPointController.java

@ -11,6 +11,7 @@ import com.epmet.dto.result.PointRankingResultDTO;
import com.epmet.service.BizPointTotalDetailService;
import com.epmet.service.BizPointUserTotalDetailService;
import com.epmet.service.PointRuleService;
import com.epmet.utils.ModuleConstant;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@ -88,6 +89,8 @@ public class GroupPointController {
@PostMapping("pointrule")
public Result<GroupPointRuleResultDTO> pointRule(@LoginUser TokenDto tokenDto) {
GroupPointRuleResultDTO result = pointRuleService.getGroupRule(tokenDto.getCustomerId());
result.setContriSummary(ModuleConstant.CONTRI_SUMMARY);
result.setGroupSummary(ModuleConstant.GROUP_RULE_SUMMARY);
return new Result<GroupPointRuleResultDTO>().ok(result);
}
}

3
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/utils/ModuleConstant.java

@ -122,4 +122,7 @@ public interface ModuleConstant extends Constant {
String EVENT_NAME_ADD_LIVE = "添加活动实况";
String VERIFICATED_POINT_CAN_NOT_BE_NULL = "核销积分不能为空";
String GROUP_RULE_SUMMARY = "小组积分是指组内所有成员在本组内活动时所获取的积分总和。";
String CONTRI_SUMMARY = "组内贡献是指组内成员在本组进行活动时所获取的积分贡献值。";
}

Loading…
Cancel
Save