<?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>
|