| | |
| | | <select id="selectPropertyCompanyDistrictPage" resultType="org.springblade.modules.property.vo.PropertyCompanyDistrictVO"> |
| | | select |
| | | jpcd.*, |
| | | jd.name as districtName |
| | | jd.name as districtName, |
| | | jpc.name as propertyCompanyName |
| | | from jczz_property_company_district jpcd |
| | | left join jczz_district jd on jd.id = jpcd.district_id and jd.is_deleted = 0 |
| | | left join jczz_property_company jpc on jpc.id = jpcd.property_company_id and jpc.is_deleted = 0 |
| | | where jpcd.is_deleted = 0 |
| | | <if test="propertyCompanyDistrict.propertyCompanyId!=null"> |
| | | and jpcd.property_company_id = #{propertyCompanyDistrict.propertyCompanyId} |
| | |
| | | <if test="propertyCompanyDistrict.districtName!=null and propertyCompanyDistrict.districtName!=''"> |
| | | and jd.name like concat('%',#{propertyCompanyDistrict.districtName},'%') |
| | | </if> |
| | | <if test="propertyCompanyDistrict.propertyCompanyName!=null and propertyCompanyDistrict.propertyCompanyName!=''"> |
| | | and jpc.name like concat('%',#{propertyCompanyDistrict.propertyCompanyName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | |