npe
This commit is contained in:
parent
80648e1f59
commit
36220f9e70
|
@ -15,7 +15,6 @@ import io.swagger.annotations.ApiImplicitParam;
|
|||
import io.swagger.annotations.ApiImplicitParams;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
@ -29,6 +28,7 @@ import java.util.Map;
|
|||
|
||||
/**
|
||||
* 流程的历史信息
|
||||
*
|
||||
* @author Jone
|
||||
*/
|
||||
@RestController
|
||||
|
@ -107,11 +107,11 @@ public class HistoryController {
|
|||
for (ProcessActivityDTO activityDTO : page.getList()) {
|
||||
if (StringUtils.isNotEmpty(activityDTO.getStartUserId())) {
|
||||
SysUserDTO userDTO = sysUserService.get(Long.valueOf(activityDTO.getStartUserId()));
|
||||
activityDTO.setStartUserName(userDTO.getRealName());
|
||||
activityDTO.setStartUserName(userDTO != null ? userDTO.getRealName() : "");
|
||||
}
|
||||
if (StringUtils.isNotEmpty(activityDTO.getAssignee())) {
|
||||
SysUserDTO userDTO = sysUserService.get(Long.valueOf(activityDTO.getAssignee()));
|
||||
activityDTO.setAssigneeName(userDTO.getRealName());
|
||||
activityDTO.setAssigneeName(userDTO != null ? userDTO.getRealName() : "");
|
||||
}
|
||||
}
|
||||
return new Result().ok(page);
|
||||
|
|
Loading…
Reference in New Issue