mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.panzhihua.service_community.dao.ComActIntegralRuleMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.panzhihua.service_community.model.dos.ComActIntegralRuleDO">
        <id column="id" property="id" />
        <result column="name" property="name" />
        <result column="community_id" property="communityId" />
        <result column="amount" property="amount" />
        <result column="integral_describe" property="integralDescribe" />
        <result column="is_restrict" property="isRestrict" />
        <result column="type" property="type" />
        <result column="count" property="count" />
        <result column="create_at" property="createAt" />
        <result column="update_at" property="updateAt" />
        <result column="integral_type" property="integralType" />
        <result column="remark" property="remark" />
    </resultMap>
 
    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
        id, name, community_id, amount, integral_describe, is_restrict, type, count, create_at, update_at, integral_type, remark
    </sql>
 
    <select id="getIntegralReceiveApplets" resultType="com.panzhihua.common.model.vos.community.integral.ComActIntegralUserRuleVO">
        select id,`name`,amount,integral_describe,is_restrict,type,count,integral_type,remark from com_act_integral_rule where community_id = ${communityId}
    </select>
 
    <select id="getIntegralRuleAdminList" resultType="com.panzhihua.common.model.vos.community.integral.admin.ComActIntegralUserRuleAdminVO">
        select id,`name`,amount,integral_describe,is_restrict,type,count,integral_type,remark,create_at,update_at from com_act_integral_rule where community_id = ${integralRuleDTO.communityId}
    </select>
 
    <select id="getIntegralDefaultList" resultType="com.panzhihua.service_community.model.dos.ComActIntegralRuleDO">
        select * from com_act_integral_rule_default where `status` = 1
    </select>
</mapper>