|
|
@@ -18,8 +18,8 @@
|
|
|
<id column="item_id" property="itemId"/>
|
|
|
<result column="integral_type" property="integralType"/>
|
|
|
<result column="integral" property="integral"/>
|
|
|
- <result column="cp_id" property="cpId" typeHandler="UuidTypeHandler"/>
|
|
|
- <result column="cp_id_from" property="cpIdFrom" typeHandler="UuidTypeHandler"/>
|
|
|
+ <result column="cp_id" property="cpId" />
|
|
|
+ <result column="cp_id_from" property="cpIdFrom" />
|
|
|
<result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
<result column="user_id" property="userId" typeHandler="UuidTypeHandler"/>
|
|
|
@@ -30,9 +30,9 @@
|
|
|
<id column="item_id" property="itemId"/>
|
|
|
<result column="integral_type" property="integralType"/>
|
|
|
<result column="integral" property="integral"/>
|
|
|
- <result column="cp_id" property="cpId" typeHandler="UuidTypeHandler"/>
|
|
|
+ <result column="cp_id" property="cpId" />
|
|
|
<result column="cp_name" property="cpName"/>
|
|
|
- <result column="cp_id_from" property="cpIdFrom" typeHandler="UuidTypeHandler"/>
|
|
|
+ <result column="cp_id_from" property="cpIdFrom" />
|
|
|
<result column="cp_name_from" property="cpNameFrom"/>
|
|
|
<result column="acc_date" property="accDate" typeHandler="TimestampTypeHandler"/>
|
|
|
<result column="flg_valid" property="flgValid"/>
|
|
|
@@ -50,10 +50,10 @@
|
|
|
AND tmii.integral = #{integral}
|
|
|
</if>
|
|
|
<if test="cpId != null and cpId != ''">
|
|
|
- AND tmii.cp_id = #{cpId}::uuid
|
|
|
+ AND tmii.cp_id = #{cpId}
|
|
|
</if>
|
|
|
<if test="cpIdFrom != null and cpIdFrom != ''">
|
|
|
- AND tmii.cp_id_from = #{cpIdFrom}::uuid
|
|
|
+ AND tmii.cp_id_from = #{cpIdFrom}
|
|
|
</if>
|
|
|
<if test="accDate != null">
|
|
|
AND tmii.acc_date = #{accDate}
|