Commit 1934370c authored by fangxinjiang's avatar fangxinjiang

代码优化-fxj

parent 4e62d3f8
......@@ -8270,11 +8270,34 @@ public class TInsuranceDetailServiceImpl extends ServiceImpl<TInsuranceDetailMap
}
YifuUser user = SecurityUtils.getUser();
long roleId = 1851541100126863362L;
long roleId2 = 1536909784224051202L;
boolean isSsc = this.haveRole(user, roleId);
boolean isProjectManager = this.haveRole(user, roleId2);
if ("许瑞玲".equals(user.getNickname()) || "1".equals(user.getId()) || isSsc) {
searchVo.setCreateBy(null);
//searchVo.setCreateBy(null);
searchVo.setAlertId(null);
} else {
searchVo.setCreateBy(user.getId());
if (isProjectManager){
searchVo.setAlertId(null);
}else{
searchVo.setAlertId(user.getId());
}
//searchVo.setCreateBy(user.getId());
}
if (isProjectManager && !isSsc){
R<TSettleDomainListVo> sdRes = archivesDaprUtil.getSettleDomainIdsByUserId(user.getId());
if (Common.isNotNull(sdRes)){
searchVo.setSettleDomainIds(sdRes.getData().getDeptNos());
if (Common.isEmpty(sdRes.getData().getDeptNos())){
List<String> nos = new ArrayList<>();
nos.add("11");
searchVo.setSettleDomainIds(nos);
}
}else{
List<String> nos = new ArrayList<>();
nos.add("11");
searchVo.setSettleDomainIds(nos);
}
}
long count = noPageCountDiy(searchVo);
ServletOutputStream out = null;
......
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