|
@@ -5,7 +5,7 @@
|
|
|
<id column="user_id_" property="userId" jdbcType="BIGINT" />
|
|
|
<result column="used_count_" property="usedCount" jdbcType="INTEGER" />
|
|
|
<result column="available_count_" property="availableCount" jdbcType="INTEGER" />
|
|
|
- <result column="available_amount_" property="availableAmount.cent" jdbcType="BIGINT" />
|
|
|
+ <result column="available_amount_" property="availableAmount" jdbcType="BIGINT" />
|
|
|
<result column="modify_on_" property="modifyOn" jdbcType="TIMESTAMP" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
@@ -38,7 +38,7 @@
|
|
|
<insert id="insert" parameterType="com.ym.mec.biz.dal.entity.LuckDrawCount" >
|
|
|
insert into luck_draw_count (user_id_, used_count_, available_count_, available_amount_,
|
|
|
modify_on_)
|
|
|
- values (#{userId,jdbcType=BIGINT}, #{usedCount,jdbcType=INTEGER}, #{availableCount,jdbcType=INTEGER}, #{availableAmount.cent,jdbcType=BIGINT},
|
|
|
+ values (#{userId,jdbcType=BIGINT}, #{usedCount,jdbcType=INTEGER}, #{availableCount,jdbcType=INTEGER}, #{availableAmount,jdbcType=BIGINT},
|
|
|
#{modifyOn,jdbcType=TIMESTAMP})
|
|
|
</insert>
|
|
|
|
|
@@ -52,7 +52,7 @@
|
|
|
available_count_ = #{availableCount,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="availableAmount != null" >
|
|
|
- available_amount_ = #{availableAmount.cent,jdbcType=BIGINT},
|
|
|
+ available_amount_ = #{availableAmount,jdbcType=BIGINT},
|
|
|
</if>
|
|
|
<if test="modifyOn != null" >
|
|
|
modify_on_ = #{modifyOn,jdbcType=TIMESTAMP},
|