Browse Source

积分审核修改

dev
zhaoqifeng 3 years ago
parent
commit
446babdf78
  1. 4
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/common/CommonConstant.java
  2. 4
      epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointApplyServiceImpl.java

4
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/common/CommonConstant.java

@ -49,4 +49,8 @@ public interface CommonConstant extends Constant {
* 积分花费
*/
String POINT_COST = "point_cost";
/**
* 驳回积分申请
*/
String POINT_REJECT = "point_reject";
}

4
epmet-module/epmet-point/epmet-point-server/src/main/java/com/epmet/service/impl/PointApplyServiceImpl.java

@ -254,13 +254,15 @@ public class PointApplyServiceImpl extends BaseServiceImpl<PointApplyDao, PointA
record.setStatement(dto.getStatement());
if (NumConstant.TWO_STR.equals(formDTO.getStatus())) {
record.setPointValue(dto.getPointValue());
record.setBusinessCode(CommonConstant.POINT_APPLY);
} else {
record.setPointValue(NumConstant.ZERO);
record.setBusinessCode(CommonConstant.POINT_REJECT);
}
record.setCategoryCode(dto.getCategoryCode());
record.setSubjectId(subjectId);
record.setBusinessId(dto.getId());
record.setBusinessCode(CommonConstant.POINT_APPLY);
pointAditiveRecordDao.insert(record);
if (NumConstant.TWO_STR.equals(formDTO.getStatus())) {
//重新计算总分

Loading…
Cancel
Save