| | |
| | | <mapper namespace="org.springblade.modules.property.mapper.PropertyCompanyScoreMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="propertyCompanyScoreResultMap" type="org.springblade.modules.property.entity.PropertyCompanyScoreEntity"> |
| | | <resultMap id="propertyCompanyScoreResultMap" |
| | | type="org.springblade.modules.property.entity.PropertyCompanyScoreEntity"> |
| | | <result column="id" property="id"/> |
| | | <result column="property_company_id" property="propertyCompanyId"/> |
| | | <result column="score" property="score"/> |
| | |
| | | |
| | | |
| | | <select id="selectPropertyCompanyScorePage" resultMap="propertyCompanyScoreResultMap"> |
| | | select * from jczz_property_company_score where is_deleted = 0 |
| | | select * |
| | | from jczz_property_company_score |
| | | where is_deleted = 0 |
| | | </select> |
| | | |
| | | |
| | | <select id="getScore" resultType="java.lang.Integer"> |
| | | select sum(score) |
| | | from jczz_property_company_score |
| | | where is_deleted = 0 |
| | | and property_company_id = #{propertyCompanyId} |
| | | </select> |
| | | |
| | | |