|
@@ -12,6 +12,8 @@ import com.ims.eval.entity.OrganizationEvaluationRule;
|
|
|
import com.ims.eval.entity.dto.response.MyuserResDTO;
|
|
|
import com.ims.eval.service.IEvaluationWarningInfoService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
+import com.ims.eval.service.IUserService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Date;
|
|
@@ -30,6 +32,10 @@ import java.util.Map;
|
|
|
public class EvaluationWarningInfoServiceImpl extends ServiceImpl<EvaluationWarningInfoMapper, EvaluationWarningInfo> implements IEvaluationWarningInfoService {
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IUserService userService;
|
|
|
+
|
|
|
+
|
|
|
@Override
|
|
|
public IPage<EvaluationWarningInfo> warningInfoList(Integer pageNum, Integer pageSize, String binSection, String st, String et) {
|
|
|
QueryWrapper<EvaluationWarningInfo> qw = new QueryWrapper<>();
|
|
@@ -60,8 +66,8 @@ public class EvaluationWarningInfoServiceImpl extends ServiceImpl<EvaluationWarn
|
|
|
|
|
|
@Override
|
|
|
public boolean updateItem(String code, EvaluationWarningInfo warningInfo) {
|
|
|
-
|
|
|
- MyuserResDTO user = new MyuserResDTO();
|
|
|
+ MyuserResDTO user = userService.getSysUser(code);
|
|
|
+
|
|
|
if (user != null){
|
|
|
warningInfo.setUserName(user.getName());
|
|
|
warningInfo.setUserCode(code);
|