diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java index e1f9e9f2..bc39bcef 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/agency/impl/AgencyServiceImpl.java @@ -61,6 +61,8 @@ public class AgencyServiceImpl implements IAgencyService { agency.setRegionName(StringUtils.isBlank(nurseStationAndAreaCode.getRegionName()) ? "" : nurseStationAndAreaCode.getRegionName()); agency.setStreetCode(StringUtils.isBlank(nurseStationAndAreaCode.getStreetCode()) ? "" : nurseStationAndAreaCode.getStreetCode()); agency.setStreetName(StringUtils.isBlank(nurseStationAndAreaCode.getStreetName()) ? "" : nurseStationAndAreaCode.getStreetName()); + agency.setCommunityCode(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityCode()) ? "" : nurseStationAndAreaCode.getCommunityCode()); + agency.setCommunityName(StringUtils.isBlank(nurseStationAndAreaCode.getCommunityName()) ? "" : nurseStationAndAreaCode.getCommunityName()); } return agency; } diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/agency/AgencyVO.java b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/agency/AgencyVO.java index 64ec09b9..906c719b 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/vo/agency/AgencyVO.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/vo/agency/AgencyVO.java @@ -59,6 +59,16 @@ public class AgencyVO extends Agency { */ private String streetCode; + /** + * 社区名称 + */ + private String communityName; + + /** + * 社区区域编码 + */ + private String communityCode; + /** * 上级机构 */ diff --git a/postdischarge-manage/src/main/resources/mapper/manage/department/DepartmentMapper.xml b/postdischarge-manage/src/main/resources/mapper/manage/department/DepartmentMapper.xml index 7568865a..4d9a1c31 100644 --- a/postdischarge-manage/src/main/resources/mapper/manage/department/DepartmentMapper.xml +++ b/postdischarge-manage/src/main/resources/mapper/manage/department/DepartmentMapper.xml @@ -65,94 +65,64 @@ - and parent_department_id = - #{parentDepartmentId} + and parent_department_id =#{parentDepartmentId} - and agency_id = - #{agencyId} + and agency_id =#{agencyId} - and agency_name like concat('%', - #{agencyName}, - '%' - ) + and agency_name like concat('%',#{agencyName},'%') - and department_name like concat('%', - #{departmentName}, - '%' - ) + and department_name like concat('%',#{departmentName},'%') - and department_code = - #{departmentCode} + and department_code =#{departmentCode} - and department_type = - #{departmentType} + and department_type =#{departmentType} - and department_abbreviation = - #{departmentAbbreviation} + and department_abbreviation =#{departmentAbbreviation} - and department_person_id = - #{departmentPersonId} + and department_person_id =#{departmentPersonId} - and department_person_name like concat('%', - #{departmentPersonName}, - '%' - ) + and department_person_name like concat ('%',#{departmentPersonName},'%') - and node_type = - #{nodeType} + and node_type =#{nodeType} - and provide_service_category = - #{provideServiceCategory} + and provide_service_category =#{provideServiceCategory} - and subdivision_category_id = - #{subdivisionCategoryId} + and subdivision_category_id =#{subdivisionCategoryId} - and subdivision_category_name like concat('%', - #{subdivisionCategoryName}, - '%' - ) + and subdivision_category_name like concat('%',#{subdivisionCategoryName},'%') - and norm_department_compare_id = - #{normDepartmentCompareId} + and norm_department_compare_id =#{normDepartmentCompareId} - and norm_department_compare_name like concat('%', - #{normDepartmentCompareName}, - '%' - ) + and norm_department_compare_name like concat('%',#{normDepartmentCompareName},'%') - and prepare_beds_count = - #{prepareBedsCount} + and prepare_beds_count =#{prepareBedsCount} - and department_phone = - #{departmentPhone} + and department_phone =#{departmentPhone} - and department_mail = - #{departmentMail} + and department_mail =#{departmentMail} - and establish_date = - #{establishDate} + and establish_date =#{establishDate} - and revoke_date = - #{revokeDate} + and revoke_date =#{revokeDate}