机构行政区域

This commit is contained in:
zhangheng 2024-02-28 16:12:51 +08:00
parent 8726639e80
commit de03286f27
3 changed files with 32 additions and 50 deletions

View File

@ -61,6 +61,8 @@ public class AgencyServiceImpl implements IAgencyService {
agency.setRegionName(StringUtils.isBlank(nurseStationAndAreaCode.getRegionName()) ? "" : nurseStationAndAreaCode.getRegionName()); agency.setRegionName(StringUtils.isBlank(nurseStationAndAreaCode.getRegionName()) ? "" : nurseStationAndAreaCode.getRegionName());
agency.setStreetCode(StringUtils.isBlank(nurseStationAndAreaCode.getStreetCode()) ? "" : nurseStationAndAreaCode.getStreetCode()); agency.setStreetCode(StringUtils.isBlank(nurseStationAndAreaCode.getStreetCode()) ? "" : nurseStationAndAreaCode.getStreetCode());
agency.setStreetName(StringUtils.isBlank(nurseStationAndAreaCode.getStreetName()) ? "" : nurseStationAndAreaCode.getStreetName()); 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; return agency;
} }

View File

@ -59,6 +59,16 @@ public class AgencyVO extends Agency {
*/ */
private String streetCode; private String streetCode;
/**
* 社区名称
*/
private String communityName;
/**
* 社区区域编码
*/
private String communityCode;
/** /**
* 上级机构 * 上级机构
*/ */

View File

@ -65,94 +65,64 @@
<include refid="selectDepartmentVo"/> <include refid="selectDepartmentVo"/>
<where> <where>
<if test="parentDepartmentId != null "> <if test="parentDepartmentId != null ">
and parent_department_id = and parent_department_id =#{parentDepartmentId}
#{parentDepartmentId}
</if> </if>
<if test="agencyId != null "> <if test="agencyId != null ">
and agency_id = and agency_id =#{agencyId}
#{agencyId}
</if> </if>
<if test="agencyName != null and agencyName != ''"> <if test="agencyName != null and agencyName != ''">
and agency_name like concat('%', and agency_name like concat('%',#{agencyName},'%')
#{agencyName},
'%'
)
</if> </if>
<if test="departmentName != null and departmentName != ''"> <if test="departmentName != null and departmentName != ''">
and department_name like concat('%', and department_name like concat('%',#{departmentName},'%')
#{departmentName},
'%'
)
</if> </if>
<if test="departmentCode != null and departmentCode != ''"> <if test="departmentCode != null and departmentCode != ''">
and department_code = and department_code =#{departmentCode}
#{departmentCode}
</if> </if>
<if test="departmentType != null and departmentType != ''"> <if test="departmentType != null and departmentType != ''">
and department_type = and department_type =#{departmentType}
#{departmentType}
</if> </if>
<if test="departmentAbbreviation != null and departmentAbbreviation != ''"> <if test="departmentAbbreviation != null and departmentAbbreviation != ''">
and department_abbreviation = and department_abbreviation =#{departmentAbbreviation}
#{departmentAbbreviation}
</if> </if>
<if test="departmentPersonId != null "> <if test="departmentPersonId != null ">
and department_person_id = and department_person_id =#{departmentPersonId}
#{departmentPersonId}
</if> </if>
<if test="departmentPersonName != null and departmentPersonName != ''"> <if test="departmentPersonName != null and departmentPersonName != ''">
and department_person_name like concat('%', and department_person_name like concat ('%',#{departmentPersonName},'%')
#{departmentPersonName},
'%'
)
</if> </if>
<if test="nodeType != null and nodeType != ''"> <if test="nodeType != null and nodeType != ''">
and node_type = and node_type =#{nodeType}
#{nodeType}
</if> </if>
<if test="provideServiceCategory != null and provideServiceCategory != ''"> <if test="provideServiceCategory != null and provideServiceCategory != ''">
and provide_service_category = and provide_service_category =#{provideServiceCategory}
#{provideServiceCategory}
</if> </if>
<if test="subdivisionCategoryId != null "> <if test="subdivisionCategoryId != null ">
and subdivision_category_id = and subdivision_category_id =#{subdivisionCategoryId}
#{subdivisionCategoryId}
</if> </if>
<if test="subdivisionCategoryName != null and subdivisionCategoryName != ''"> <if test="subdivisionCategoryName != null and subdivisionCategoryName != ''">
and subdivision_category_name like concat('%', and subdivision_category_name like concat('%',#{subdivisionCategoryName},'%')
#{subdivisionCategoryName},
'%'
)
</if> </if>
<if test="normDepartmentCompareId != null "> <if test="normDepartmentCompareId != null ">
and norm_department_compare_id = and norm_department_compare_id =#{normDepartmentCompareId}
#{normDepartmentCompareId}
</if> </if>
<if test="normDepartmentCompareName != null and normDepartmentCompareName != ''"> <if test="normDepartmentCompareName != null and normDepartmentCompareName != ''">
and norm_department_compare_name like concat('%', and norm_department_compare_name like concat('%',#{normDepartmentCompareName},'%')
#{normDepartmentCompareName},
'%'
)
</if> </if>
<if test="prepareBedsCount != null "> <if test="prepareBedsCount != null ">
and prepare_beds_count = and prepare_beds_count =#{prepareBedsCount}
#{prepareBedsCount}
</if> </if>
<if test="departmentPhone != null and departmentPhone != ''"> <if test="departmentPhone != null and departmentPhone != ''">
and department_phone = and department_phone =#{departmentPhone}
#{departmentPhone}
</if> </if>
<if test="departmentMail != null and departmentMail != ''"> <if test="departmentMail != null and departmentMail != ''">
and department_mail = and department_mail =#{departmentMail}
#{departmentMail}
</if> </if>
<if test="establishDate != null "> <if test="establishDate != null ">
and establish_date = and establish_date =#{establishDate}
#{establishDate}
</if> </if>
<if test="revokeDate != null "> <if test="revokeDate != null ">
and revoke_date = and revoke_date =#{revokeDate}
#{revokeDate}
</if> </if>
</where> </where>
</select> </select>