|
|
@ -38,6 +38,7 @@ import com.hnac.hzinfo.datasearch.history.OriginalDataQuery; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.ISoeClient; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.ISoeClient; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeQueryConditionByStation; |
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeQueryConditionByStation; |
|
|
|
|
|
|
|
import com.hnac.hzinfo.exception.HzServiceException; |
|
|
|
import com.hnac.hzinfo.sdk.analyse.po.MultiAnalyzeCodePO; |
|
|
|
import com.hnac.hzinfo.sdk.analyse.po.MultiAnalyzeCodePO; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.HzPage; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.HzPage; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.Result; |
|
|
|
import com.hnac.hzinfo.sdk.core.response.Result; |
|
|
@ -55,6 +56,7 @@ import org.apache.poi.ss.util.CellRangeAddress; |
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
|
|
|
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
|
|
|
import org.springblade.core.tool.jackson.JsonUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -868,8 +870,31 @@ public class RunMonthServiceImpl extends ServiceImpl<RunMonthMapper, RunMonthEnt |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public Boolean evaluate(Long id, String text) { |
|
|
|
public Boolean evaluate(RunMonthEvaluateVO req) { |
|
|
|
return this.update(Wrappers.<RunMonthEntity>lambdaUpdate().set(RunMonthEntity::getEvaluation, text).eq(RunMonthEntity::getId, id)); |
|
|
|
RunMonthEntity entity = this.getById(req.getId()); |
|
|
|
|
|
|
|
if (ObjectUtil.isEmpty(entity)) { |
|
|
|
|
|
|
|
throw new HzServiceException("未查询到月报信息!"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String conclusion = entity.getConclusion(); |
|
|
|
|
|
|
|
Map<String, Object> conclusionMap = new HashMap<>(); |
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(conclusion)) { |
|
|
|
|
|
|
|
conclusionMap = JsonUtil.toMap(conclusion); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
String evaluation = entity.getEvaluation(); |
|
|
|
|
|
|
|
Map<String, Object> evaluationMap = new HashMap<>(); |
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(evaluation)) { |
|
|
|
|
|
|
|
evaluationMap = JsonUtil.toMap(evaluation); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(req.getContent())) { |
|
|
|
|
|
|
|
conclusionMap.put(req.getType(), req.getContent()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtil.isNotBlank(req.getEvaluation())) { |
|
|
|
|
|
|
|
evaluationMap.put(req.getType(), req.getEvaluation()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return this.update(Wrappers.<RunMonthEntity>lambdaUpdate() |
|
|
|
|
|
|
|
.set(RunMonthEntity::getConclusion, JsonUtil.toJson(conclusionMap)) |
|
|
|
|
|
|
|
.set(RunMonthEntity::getEvaluation, JsonUtil.toJson(evaluationMap)) |
|
|
|
|
|
|
|
.eq(RunMonthEntity::getId, req.getId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|