洪城义警-正式版后台
zhongrj
2023-08-04 8ec364949c81cf421cc98d3bbad6848ab032e14e
src/main/java/org/springblade/modules/integral/mapper/IntegralMapper.xml
@@ -15,7 +15,6 @@
    <select id="selectIntegralPage" resultMap="integralResultMap">
        select *
        from sys_integral
        where is_deleted = 0
    </select>
    <select id="selectCount" resultType="java.util.HashMap">
@@ -27,5 +26,23 @@
        FROM sys_integral
        WHERE type = 2 AND uid=#{uid}
    </select>
    <select id="selectList" resultType="org.springblade.modules.integral.entity.Integral">
        SELECT *
        FROM sys_integral
        WHERE uid=#{uid}
        <if test="type == 2  ">
            and type =1
        </if>
        <if test="type == 3  ">
            and type =2
        </if>
    </select>
    <select id="order" resultType="org.springblade.modules.integral.entity.Integral">
        SELECT *
        FROM sys_integral
        ORDER BY integral DESC
        LIMIT 0,10
    </select>
</mapper>