|
|
@@ -5,15 +5,17 @@
|
|
|
<!-- 通用设置 -->
|
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- cp_id, tactic_id, share_date, end_date, flg_valid,user_id
|
|
|
+ share_id,cp_id, tactic_id, share_date, end_date,integral_type, flg_valid,user_id
|
|
|
</sql>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap" type="com.dk.mdm.model.pojo.mst.IntegralShare">
|
|
|
- <id column="cp_id" property="cpId"/>
|
|
|
+ <id column="share_id" property="shareId"/>
|
|
|
+ <result column="cp_id" property="cpId"/>
|
|
|
<result column="tactic_id" property="tacticId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="share_date" property="shareDate" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="end_date" property="endDate" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="integral_type" property="integralType"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="user_id" property="userId"/>
|
|
|
</resultMap>
|
|
|
@@ -43,15 +45,17 @@
|
|
|
|
|
|
<!-- 通用查询列 -->
|
|
|
<sql id="Base_Column_List_list">
|
|
|
- cp_id, tactic_id, share_date, end_date, flg_valid,user_id
|
|
|
+ share_id,cp_id, tactic_id, share_date, end_date,integral_type, flg_valid,user_id
|
|
|
</sql>
|
|
|
|
|
|
<!-- 通用查询映射结果 -->
|
|
|
<resultMap id="BaseResultMap_list" type="com.dk.mdm.model.response.mst.IntegralShareResponse">
|
|
|
- <id column="cp_id" property="cpId"/>
|
|
|
+ <id column="share_id" property="shareId"/>
|
|
|
+ <result column="cp_id" property="cpId"/>
|
|
|
<result column="tactic_id" property="tacticId" typeHandler="UuidTypeHandler"/>
|
|
|
<result column="share_date" property="shareDate" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="end_date" property="endDate" typeHandler="TimestampTypeHandler"/>
|
|
|
+ <result column="integral_type" property="integralType"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="user_id" property="userId"/>
|
|
|
</resultMap>
|
|
|
@@ -59,6 +63,9 @@
|
|
|
<!-- 通用条件列 -->
|
|
|
<sql id="Condition_list">
|
|
|
<where>
|
|
|
+ <if test="shareId != null and shareId != ''">
|
|
|
+ AND share_id = #{shareId}::uuid
|
|
|
+ </if>
|
|
|
<if test="cpId != null and cpId != ''">
|
|
|
AND cp_id = #{cpId}
|
|
|
</if>
|