Commit dcf345c2 authored by 竹天卫's avatar 竹天卫

人员产值统计导出功能 优化

parent d7c2d92f
......@@ -23,6 +23,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.Assert;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
......@@ -143,6 +144,9 @@ public class NonStandardApplyServiceImpl extends ServiceImpl<NonStandardApplyMap
Map<String, Object> params = new HashMap<>();
LoginUser loginUser = userService.getLoginUser();
Assert.notNull(loginUser, "用户未登录!");
if(loginUser!=null){
if(!loginUser.getRoleList().getName().equals("系统管理员")){
params.put("userId", loginUser.getId());
......
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