|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
package com.supervision.service.impl;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
|
|
import com.supervision.exception.BusinessException;
|
|
|
|
|
import com.supervision.model.DiagnosisQaRecord;
|
|
|
|
|
import com.supervision.model.Process;
|
|
|
|
|
import com.supervision.pojo.vo.FeedBackQaVO;
|
|
|
|
@ -50,6 +52,9 @@ public class FeedbackServiceImpl implements FeedbackService {
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
|
|
public void saveFeedback(FeedBackVO feedbackVO) {
|
|
|
|
|
if (StrUtil.isBlank(feedbackVO.getProcessId())) {
|
|
|
|
|
throw new BusinessException("流程ID不能为空");
|
|
|
|
|
}
|
|
|
|
|
processService.lambdaUpdate().eq(Process::getId, feedbackVO.getProcessId())
|
|
|
|
|
.set(Process::getEvaluateLevel, feedbackVO.getEvaluateLevel())
|
|
|
|
|
.set(Process::getEvaluateRemark, feedbackVO.getEvaluateRemark()).update();
|
|
|
|
|