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