Commit e6c8a495 by huluobin

update

parent 3ff93198
......@@ -3,6 +3,8 @@ package com.blt.other.common.util;
import com.blt.other.common.base.SysUser;
import java.util.Optional;
/**
* 应用会话管理工具类
*/
......@@ -27,7 +29,8 @@ public class SessionUtils {
public static Integer getCurrentUserId() {
return sysUserThreadLocal.get().getOaUserId();
return Optional.ofNullable(sysUserThreadLocal.get()).map(SysUser::getOaUserId).orElse(null);
}
}
......@@ -151,6 +151,9 @@ public abstract class AbstractCostService implements CostService {
costDomain.setCostTemplate(costTemplateService.queryDetail(costDomain.getCostTemplateId()));
Integer currentUserId = SessionUtils.getCurrentUserId();
if (currentUserId == null) {
currentUserId = costDomain.getCreateUserid();
}
costDomain.setCanAudit(costCurrentReviewerService.canAudit(currentUserId, costNo));
return costDomain;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment