...
|
...
|
@@ -4,6 +4,7 @@ |
|
|
<resultMap id="BaseResultMap" type="com.yohoufo.dal.order.model.InviteSettlement" >
|
|
|
<id column="id" property="id" jdbcType="INTEGER" />
|
|
|
<result column="uid" property="uid" jdbcType="INTEGER" />
|
|
|
<result column="settle_code" property="settleCode" jdbcType="INTEGER" />
|
|
|
<result column="settle_amount" property="settleAmount" jdbcType="DECIMAL" />
|
|
|
<result column="settle_time" property="settleTime" jdbcType="INTEGER" />
|
|
|
<result column="paid_time" property="paidTime" jdbcType="INTEGER" />
|
...
|
...
|
@@ -11,18 +12,21 @@ |
|
|
<result column="create_time" property="createTime" jdbcType="INTEGER" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
id, uid, settle_amount, settle_time,paid_time, status, create_time
|
|
|
id, uid, settle_code, settle_amount, settle_time,paid_time, status, create_time
|
|
|
</sql>
|
|
|
|
|
|
<insert id="insert" parameterType="com.yohoufo.dal.order.model.InviteSettlement" useGeneratedKeys="true" keyProperty="id">
|
|
|
insert into invite_settlement (id, uid, settle_amount, settle_time, status, create_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{settleAmount,jdbcType=DECIMAL},
|
|
|
insert into invite_settlement (id, uid, settle_code, settle_amount, settle_time, status, create_time)
|
|
|
values (#{id,jdbcType=INTEGER}, #{uid,jdbcType=INTEGER}, #{settleCode,jdbcType=DECIMAL}, #{settleAmount,jdbcType=DECIMAL},
|
|
|
#{settleTime,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, #{createTime,jdbcType=INTEGER})
|
|
|
</insert>
|
|
|
|
|
|
<update id="updateByUidAndId" parameterType="com.yohoufo.dal.order.model.InviteSettlement" >
|
|
|
update invite_settlement
|
|
|
<set >
|
|
|
<if test="settleCode != null" >
|
|
|
settle_code = #{settleCode,jdbcType=INTEGER},
|
|
|
</if>
|
|
|
<if test="settleAmount != null" >
|
|
|
settle_amount = #{settleAmount,jdbcType=DECIMAL},
|
|
|
</if>
|
...
|
...
|
|