linwe
2024-08-09 8b7258c9427882bb1798f1502eaa35184c6e374e
src/main/java/org/springblade/modules/property/mapper/PropertyCompanyScoreMapper.xml
@@ -3,7 +3,8 @@
<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"/>
@@ -14,7 +15,17 @@
    <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>