chenminghua vor 1 Jahr
Ursprung
Commit
ed67a6471c

+ 8 - 2
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/EvaluationWarningInfoServiceImpl.java

@@ -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 = userService.getSysUser(code);
-		MyuserResDTO user = new MyuserResDTO();
+		MyuserResDTO user = userService.getSysUser(code);
+//		MyuserResDTO user = new MyuserResDTO();
 		if (user != null){
 			warningInfo.setUserName(user.getName());
 			warningInfo.setUserCode(code);

+ 2 - 2
ims-service/ims-eval/src/main/java/com/ims/eval/service/impl/EvaluationWarningRuleServiceImpl.java

@@ -68,8 +68,8 @@ public class EvaluationWarningRuleServiceImpl extends ServiceImpl<EvaluationWarn
 
 	@Override
 	public boolean saveOrUpdate(String code, EvaluationWarningRule warningRule) {
-//		MyuserResDTO user = userService.getSysUser(code);
-		MyuserResDTO user = new MyuserResDTO();
+		MyuserResDTO user = userService.getSysUser(code);
+//		MyuserResDTO user = new MyuserResDTO();
 		if (user != null){
 			if (StringUtils.isNotEmpty(warningRule.getId())){
 				warningRule.setUpdateBy(user.getName());