|
@ -591,6 +591,40 @@ public class PointsLogsServiceImpl extends BaseServiceImpl<PointsLogsDao, Points |
|
|
usersFeignClient.updateBatchUserPoints(epdcUserPointsFormDTOList); |
|
|
usersFeignClient.updateBatchUserPoints(epdcUserPointsFormDTOList); |
|
|
return new Result(); |
|
|
return new Result(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
public Result insertPointsResetLogs(List<UserDTO> formDTO) { |
|
|
|
|
|
for (UserDTO formDto : formDTO) { |
|
|
|
|
|
//根据动作编码获取动作信息
|
|
|
|
|
|
Result<BehaviorResultDto> behaviorCodeInfoByBehaviorCode = pointsBehaviorService.getBehaviorCodeInfoByBehaviorCode(BehaviorEnum.POINTS_RESET.getValue()); |
|
|
|
|
|
PointsLogsEntity pointsLogsEntity = new PointsLogsEntity(); |
|
|
|
|
|
pointsLogsEntity.setUserId(formDto.getId()); |
|
|
|
|
|
pointsLogsEntity.setNickname(formDto.getNickname()); |
|
|
|
|
|
pointsLogsEntity.setFaceImg(formDto.getFaceImg()); |
|
|
|
|
|
pointsLogsEntity.setOperationTime(new Date()); |
|
|
|
|
|
pointsLogsEntity.setOperationMode(PointsOperationModeEnum.OPERATION_MODE_ADMIN.getOperationMode()); |
|
|
|
|
|
pointsLogsEntity.setRuleCode(PointsConstant.behaviorCodeCode); |
|
|
|
|
|
pointsLogsEntity.setBehaviorCode(BehaviorEnum.TOPIC_VIOLATIONS.getValue()); |
|
|
|
|
|
pointsLogsEntity.setOperationDesc(behaviorCodeInfoByBehaviorCode.getData().getBehaviorDesc()); |
|
|
|
|
|
pointsLogsEntity.setPoints(formDto.getPoints()); |
|
|
|
|
|
pointsLogsEntity.setOperationType("0"); |
|
|
|
|
|
pointsLogsEntity.setReferenceId(formDto.getId()); |
|
|
|
|
|
pointsLogsEntity.setLavePoints(0); |
|
|
|
|
|
pointsLogsEntity.setRemark(""); |
|
|
|
|
|
pointsLogsEntity.setRealName(formDto.getRealName()); |
|
|
|
|
|
// 赋值积分所属部门
|
|
|
|
|
|
pointsLogsEntity.setGrid(formDto.getGrid()); |
|
|
|
|
|
pointsLogsEntity.setGridId(formDto.getGridId()); |
|
|
|
|
|
pointsLogsEntity.setAllDeptIds(formDto.getAllDeptIds()); |
|
|
|
|
|
pointsLogsEntity.setAllDeptNames(formDto.getAllDeptNames()); |
|
|
|
|
|
pointsLogsEntity.setParentDeptIds(formDto.getParentDeptIds()); |
|
|
|
|
|
pointsLogsEntity.setParentDeptNames(formDto.getParentDeptNames()); |
|
|
|
|
|
|
|
|
|
|
|
insert(pointsLogsEntity); |
|
|
|
|
|
} |
|
|
|
|
|
return new Result(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* @Description 新增扣除积分记录 |
|
|
* @Description 新增扣除积分记录 |
|
|
* @Author songyunpeng |
|
|
* @Author songyunpeng |
|
@ -616,10 +650,10 @@ public class PointsLogsServiceImpl extends BaseServiceImpl<PointsLogsDao, Points |
|
|
pointsLogsEntity.setRuleCode(PointsConstant.behaviorCodeCode); |
|
|
pointsLogsEntity.setRuleCode(PointsConstant.behaviorCodeCode); |
|
|
pointsLogsEntity.setBehaviorCode(BehaviorEnum.TOPIC_VIOLATIONS.getValue()); |
|
|
pointsLogsEntity.setBehaviorCode(BehaviorEnum.TOPIC_VIOLATIONS.getValue()); |
|
|
pointsLogsEntity.setOperationDesc(behaviorCodeInfoByBehaviorCode.getData().getBehaviorDesc()); |
|
|
pointsLogsEntity.setOperationDesc(behaviorCodeInfoByBehaviorCode.getData().getBehaviorDesc()); |
|
|
pointsLogsEntity.setPoints(-formDto.getPoints()); |
|
|
pointsLogsEntity.setPoints(formDto.getPoints()); |
|
|
pointsLogsEntity.setOperationType("0"); |
|
|
pointsLogsEntity.setOperationType("0"); |
|
|
pointsLogsEntity.setReferenceId(formDto.getUserId()); |
|
|
pointsLogsEntity.setReferenceId(formDto.getUserId()); |
|
|
pointsLogsEntity.setLavePoints(userDto.getPoints() + formDto.getPoints()); |
|
|
pointsLogsEntity.setLavePoints(userDto.getPoints() - formDto.getPoints()); |
|
|
pointsLogsEntity.setRemark(""); |
|
|
pointsLogsEntity.setRemark(""); |
|
|
pointsLogsEntity.setRealName(userDto.getRealName()); |
|
|
pointsLogsEntity.setRealName(userDto.getRealName()); |
|
|
|
|
|
|
|
|