|
@@ -1643,10 +1643,18 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
|
projectRecords.setEndingCount(endingCount);
|
|
|
}
|
|
|
if(null!= projectRecords.getOffice() && StringUtils.isNotBlank(projectRecords.getOffice().getId())){
|
|
|
- //查询该选择节点下所有的部门Id
|
|
|
- List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
- officeIdList.add(projectRecords.getOffice().getId());
|
|
|
- projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ if ("一部本部".equals(projectRecords.getOffice().getId())) {
|
|
|
+ List<String> officeIdList = com.google.common.collect.Lists.newArrayList();
|
|
|
+ Office office = officeService.getByName("工程一部");
|
|
|
+ officeIdList.add(office.getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ } else {
|
|
|
+ //查询该选择节点下所有的部门Id
|
|
|
+ List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
+ officeIdList.add(projectRecords.getOffice().getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
int count = dao.querySignatureCount(projectRecords);
|
|
@@ -1687,10 +1695,18 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
|
projectRecords.setEndingCount(endingCount);
|
|
|
}
|
|
|
if(null!= projectRecords.getOffice() && StringUtils.isNotBlank(projectRecords.getOffice().getId())){
|
|
|
- //查询该选择节点下所有的部门Id
|
|
|
- List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
- officeIdList.add(projectRecords.getOffice().getId());
|
|
|
- projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ if ("一部本部".equals(projectRecords.getOffice().getId())) {
|
|
|
+ List<String> officeIdList = com.google.common.collect.Lists.newArrayList();
|
|
|
+ Office office = officeService.getByName("工程一部");
|
|
|
+ officeIdList.add(office.getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ } else {
|
|
|
+ //查询该选择节点下所有的部门Id
|
|
|
+ List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
+ officeIdList.add(projectRecords.getOffice().getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
int count = dao.querySignatureCount(projectRecords);
|
|
@@ -1731,10 +1747,18 @@ public class RuralProjectMessageAllService extends CrudService<RuralProjectMessa
|
|
|
projectRecords.setEndingCount(endingCount);
|
|
|
}
|
|
|
if(null!= projectRecords.getOffice() && StringUtils.isNotBlank(projectRecords.getOffice().getId())){
|
|
|
- //查询该选择节点下所有的部门Id
|
|
|
- List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
- officeIdList.add(projectRecords.getOffice().getId());
|
|
|
- projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ if ("一部本部".equals(projectRecords.getOffice().getId())) {
|
|
|
+ List<String> officeIdList = com.google.common.collect.Lists.newArrayList();
|
|
|
+ Office office = officeService.getByName("工程一部");
|
|
|
+ officeIdList.add(office.getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ } else {
|
|
|
+ //查询该选择节点下所有的部门Id
|
|
|
+ List<String> officeIdList = officeService.getChildrenOffice(projectRecords.getOffice().getId());
|
|
|
+ officeIdList.add(projectRecords.getOffice().getId());
|
|
|
+ projectRecords.setOfficeIdList(officeIdList);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
int count = dao.querySignatureCount(projectRecords);
|