Browse Source

Bug修改

dev_shibei_match
sunyuchao 5 years ago
parent
commit
104e48b687
  1. 6
      epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java
  2. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml
  3. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerDepartmentDao.xml
  4. 3
      epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml

6
epmet-module/gov-org/gov-org-server/src/main/java/com/epmet/service/impl/CustomerAgencyServiceImpl.java

@ -340,17 +340,17 @@ public class CustomerAgencyServiceImpl extends BaseServiceImpl<CustomerAgencyDao
AgencyDeptGridResultDTO agencyDeptGrid = new AgencyDeptGridResultDTO(); AgencyDeptGridResultDTO agencyDeptGrid = new AgencyDeptGridResultDTO();
//1:跟踪组织Id批量查询组织信息 //1:跟踪组织Id批量查询组织信息
List<CustomerAgencyDTO> agencyList = new ArrayList<>(); List<CustomerAgencyDTO> agencyList = new ArrayList<>();
if (null != formDTO.getAgencyIdList()) { if (null != formDTO.getAgencyIdList() && formDTO.getAgencyIdList().size() > NumConstant.ZERO) {
agencyList = baseDao.selectAgencyListByIds(formDTO.getAgencyIdList()); agencyList = baseDao.selectAgencyListByIds(formDTO.getAgencyIdList());
} }
//2:根据部门Id批量查询部门信息 //2:根据部门Id批量查询部门信息
List<CustomerDepartmentDTO> deptList = new ArrayList<>(); List<CustomerDepartmentDTO> deptList = new ArrayList<>();
if (null != formDTO.getDeptIdList()) { if (null != formDTO.getDeptIdList() && formDTO.getDeptIdList().size() > NumConstant.ZERO) {
deptList = customerDepartmentDao.selectDeptListByIds(formDTO.getDeptIdList()); deptList = customerDepartmentDao.selectDeptListByIds(formDTO.getDeptIdList());
} }
//3:根据网格Id批量查询网格信息 //3:根据网格Id批量查询网格信息
List<CustomerGridDTO> gridList = new ArrayList<>(); List<CustomerGridDTO> gridList = new ArrayList<>();
if (null != formDTO.getGridIdList()) { if (null != formDTO.getGridIdList() && formDTO.getGridIdList().size() > NumConstant.ZERO) {
gridList = customerGridDao.selectGridListByIds(formDTO.getGridIdList()); gridList = customerGridDao.selectGridListByIds(formDTO.getGridIdList());
} }
agencyDeptGrid.setAgencyList(agencyList); agencyDeptGrid.setAgencyList(agencyList);

3
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerAgencyDao.xml

@ -114,8 +114,7 @@
<include refid="sql"></include> <include refid="sql"></include>
FROM customer_agency ca FROM customer_agency ca
WHERE ca.del_flag = '0' WHERE ca.del_flag = '0'
AND <foreach item="agencyId" collection="agencyIdList" open="AND (" separator="or" close=")" index="">
<foreach item="agencyId" collection="agencyIdList" open="(" separator="or" close=")" index="">
ca.id = #{agencyId} ca.id = #{agencyId}
</foreach> </foreach>
ORDER BY field( ORDER BY field(

3
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerDepartmentDao.xml

@ -50,8 +50,7 @@
* *
FROM customer_department FROM customer_department
WHERE del_flag = '0' WHERE del_flag = '0'
AND <foreach item="departmentId" collection="deptIdList" open="AND (" separator="or" close=")" index="">
<foreach item="departmentId" collection="deptIdList" open="(" separator="or" close=")" index="">
id = #{departmentId} id = #{departmentId}
</foreach> </foreach>
</select> </select>

3
epmet-module/gov-org/gov-org-server/src/main/resources/mapper/CustomerGridDao.xml

@ -300,8 +300,7 @@
* *
FROM customer_grid FROM customer_grid
WHERE del_flag = '0' WHERE del_flag = '0'
AND <foreach item="gridId" collection="gridIdList" open="AND (" separator="or" close=")" index="">
<foreach item="gridId" collection="gridIdList" open="(" separator="or" close=")" index="">
id = #{gridId} id = #{gridId}
</foreach> </foreach>
</select> </select>

Loading…
Cancel
Save