From ce45ac3f21c29742927754045283f27fc11d3e5a Mon Sep 17 00:00:00 2001 From: ly19960718 <1622779752@qq.com> Date: Mon, 11 Jan 2021 14:54:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DeptAssessChangeScoreServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; }