| | |
| | | <result column="is_deleted" property="isDeleted"/> |
| | | </resultMap> |
| | | |
| | | |
| | | <select id="selectPropertyCompanyDistrictPage" resultMap="propertyCompanyDistrictResultMap"> |
| | | select * from jczz_property_company_district where is_deleted = 0 |
| | | <!--自定义分页查询--> |
| | | <select id="selectPropertyCompanyDistrictPage" resultType="org.springblade.modules.property.vo.PropertyCompanyDistrictVO"> |
| | | select * from jczz_property_company_district |
| | | where is_deleted = 0 |
| | | <if test="propertyCompanyDistrict.propertyCompanyId!=null"> |
| | | and property_company_id = #{propertyCompanyDistrict.propertyCompanyId} |
| | | </if> |
| | | <if test="propertyCompanyDistrict.districtId!=null"> |
| | | and district_id = #{propertyCompanyDistrict.districtId} |
| | | </if> |
| | | <if test="propertyCompanyDistrict.propertyStage!=null"> |
| | | and property_stage = #{propertyCompanyDistrict.propertyStage} |
| | | </if> |
| | | <if test="propertyCompanyDistrict.principal!=null and propertyCompanyDistrict.principal!=''"> |
| | | and principal like concat('%',#{propertyCompanyDistrict.principal},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | |