wanjing 1 год назад
Родитель
Сommit
b44703742c
2 измененных файлов: 9 добавлений и 2 удалений
  1. +1
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/WarningDetailsVO.java
  2. +8
    -1
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/details/WarningDetailsService.java

+ 1
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/entity/vo/WarningDetailsVO.java Просмотреть файл

@@ -44,7 +44,7 @@ public class WarningDetailsVO {
/**
* 处理人
*/
private Integer checkUser;
private String checkUser;

/**
* 处理时间

+ 8
- 1
tuoheng-admin/src/main/java/com/tuoheng/admin/service/warning/details/WarningDetailsService.java Просмотреть файл

@@ -22,6 +22,7 @@ import com.tuoheng.common.exception.ServiceException;
import com.tuoheng.common.utils.JsonResult;
import com.tuoheng.common.utils.StringUtils;
import com.tuoheng.system.entity.User;
import com.tuoheng.system.mapper.UserMapper;
import com.tuoheng.system.utils.ShiroUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
@@ -52,6 +53,9 @@ public class WarningDetailsService {
@Autowired
private ThMissionMapper missionMapper;

@Autowired
private UserMapper userMapper;

public JsonResult details(Integer id) {
User user = ShiroUtils.getUserInfo();
Integer tenantId = user.getTenantId();
@@ -125,7 +129,10 @@ public class WarningDetailsService {
vo.setCheckResult(warning.getCheckResult());
}
if(warning.getCheckUser() != null){
vo.setCheckUser(warning.getCheckUser());
User userInfo = userMapper.selectById(warning.getCheckUser());
if(StringUtils.isNotEmpty(userInfo.getRealname())){
vo.setCheckUser(userInfo.getRealname());
}
}
if(warning.getCheckTime() != null){
vo.setCheckTime(warning.getCheckTime());

Загрузка…
Отмена
Сохранить