补充提交

This commit is contained in:
ly19960718 2021-01-11 14:54:18 +08:00
parent 0076768378
commit ce45ac3f21

View File

@ -1,5 +1,6 @@
package com.cm.bigdata.service.deptassesschangescore.impl; package com.cm.bigdata.service.deptassesschangescore.impl;
import com.alibaba.fastjson.JSONObject;
import com.cm.bigdata.config.properties.ScoreProperties; import com.cm.bigdata.config.properties.ScoreProperties;
import com.cm.bigdata.pojo.dtos.deptassess.DeptAssessAllQuarterDTO; import com.cm.bigdata.pojo.dtos.deptassess.DeptAssessAllQuarterDTO;
import com.cm.bigdata.pojo.dtos.deptassess.DeptAssessDTO; import com.cm.bigdata.pojo.dtos.deptassess.DeptAssessDTO;
@ -51,6 +52,8 @@ public class DeptAssessChangeScoreServiceImpl extends AbstractService implements
private UserServiceImpl userService; private UserServiceImpl userService;
public Double getDeptChangeScore(String deptAssessId) throws SearchException{ public Double getDeptChangeScore(String deptAssessId) throws SearchException{
double socre = 0.0; double socre = 0.0;
for (DeptAssessChangeScoreDTO d : this.listDeptAssessChangeScoreByDeptAssessId(deptAssessId)) { for (DeptAssessChangeScoreDTO d : this.listDeptAssessChangeScoreByDeptAssessId(deptAssessId)) {
@ -152,10 +155,10 @@ public class DeptAssessChangeScoreServiceImpl extends AbstractService implements
if("2".equals(scoreType)){ if("2".equals(scoreType)){
dto.setScoreWay("自定义减分"); dto.setScoreWay("自定义减分");
} }
userService.getDynamicUserInfoByUserId(user) JSONObject userD = userService.getDynamicUserInfoByUserId(user);
dto.setScoreCause(scoreCause); dto.setScoreCause(scoreCause);
dto.setChangeScoreTime(time); dto.setChangeScoreTime(time);
dto.setChangeScoreUser(user); dto.setChangeScoreUser(userD.getString("userName"));
return dto; return dto;
} }