|
@@ -972,26 +972,29 @@ public class ReimbursementInfoService {
|
|
|
//当前登录人是审计一部或审计二部员工
|
|
|
List<TreeUserDto> offices = Lists.newArrayList();
|
|
|
String zsOfficeName = "";
|
|
|
- if (userDTO.getOfficeDTO().getName().contains("审计一部")){
|
|
|
- //获取中审公司的张宁部门
|
|
|
- offices = infoMapper.findOfficeListByTenantId("10004");
|
|
|
- for (TreeUserDto office : offices) {
|
|
|
- if (office.getName().equals("张宁部门") || office.getName().equals("中审江苏分所")){
|
|
|
- filterList.add(office);
|
|
|
+ if (userDTO != null && userDTO.getOfficeDTO() != null && StringUtils.isNotBlank(userDTO.getOfficeDTO().getName())){
|
|
|
+ if (userDTO.getOfficeDTO().getName().contains("审计一部")){
|
|
|
+ //获取中审公司的张宁部门
|
|
|
+ offices = infoMapper.findOfficeListByTenantId("10004");
|
|
|
+ for (TreeUserDto office : offices) {
|
|
|
+ if (office.getName().equals("张宁部门") || office.getName().equals("中审江苏分所")){
|
|
|
+ filterList.add(office);
|
|
|
+ }
|
|
|
+ zsOfficeName = "张宁部门";
|
|
|
}
|
|
|
- zsOfficeName = "张宁部门";
|
|
|
- }
|
|
|
- }else if (userDTO.getOfficeDTO().getName().contains("审计二部") ){
|
|
|
- //获取中审公司的孙文宝部门
|
|
|
- offices = infoMapper.findOfficeListByTenantId("10004");
|
|
|
- for (TreeUserDto office : offices) {
|
|
|
- if (office.getName().equals("孙文宝部门") || office.getName().equals("中审江苏分所")){
|
|
|
- filterList.add(office);
|
|
|
+ }else if (userDTO.getOfficeDTO().getName().contains("审计二部") ){
|
|
|
+ //获取中审公司的孙文宝部门
|
|
|
+ offices = infoMapper.findOfficeListByTenantId("10004");
|
|
|
+ for (TreeUserDto office : offices) {
|
|
|
+ if (office.getName().equals("孙文宝部门") || office.getName().equals("中审江苏分所")){
|
|
|
+ filterList.add(office);
|
|
|
+ }
|
|
|
+ zsOfficeName = "孙文宝部门";
|
|
|
}
|
|
|
- zsOfficeName = "孙文宝部门";
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+
|
|
|
ArrayList<TreeUserDto> treeUsers = new ArrayList<>();
|
|
|
//如果当前登录人角色是多公司报销则查询全部公司
|
|
|
if (CollectionUtil.isNotEmpty(userDTO.getRoleDTOList())){
|