memberIn 增加shopId merchantId
This commit is contained in:
@@ -10,15 +10,16 @@
|
||||
<result column="status" jdbcType="VARCHAR" property="status" />
|
||||
<result column="order_no" jdbcType="VARCHAR" property="orderNo" />
|
||||
<result column="trade_no" jdbcType="VARCHAR" property="tradeNo" />
|
||||
<result column="shop_id" jdbcType="INTEGER" property="shopId" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, merchant_id, code, amount, status, order_no, trade_no, create_time,
|
||||
id, user_id, merchant_id, code, amount, status, order_no, trade_no, shop_id, create_time,
|
||||
update_time
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_member_in
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
@@ -28,13 +29,13 @@
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMemberIn" keyProperty="id" useGeneratedKeys="true">
|
||||
insert into tb_member_in (id, user_id, merchant_id,
|
||||
code, amount, status,
|
||||
order_no, trade_no, create_time,
|
||||
insert into tb_member_in (id, user_id, merchant_id,
|
||||
code, amount, status,
|
||||
order_no, trade_no, shop_id, create_time,
|
||||
update_time)
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{merchantId,jdbcType=INTEGER},
|
||||
#{code,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
|
||||
#{orderNo,jdbcType=VARCHAR}, #{tradeNo,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
|
||||
values (#{id,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{merchantId,jdbcType=INTEGER},
|
||||
#{code,jdbcType=VARCHAR}, #{amount,jdbcType=DECIMAL}, #{status,jdbcType=VARCHAR},
|
||||
#{orderNo,jdbcType=VARCHAR}, #{tradeNo,jdbcType=VARCHAR}, #{shopId}, #{createTime,jdbcType=TIMESTAMP},
|
||||
#{updateTime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMemberIn">
|
||||
@@ -64,6 +65,9 @@
|
||||
<if test="tradeNo != null">
|
||||
trade_no,
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id,
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time,
|
||||
</if>
|
||||
@@ -96,6 +100,9 @@
|
||||
<if test="tradeNo != null">
|
||||
#{tradeNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
#{shopId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
#{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
@@ -128,6 +135,9 @@
|
||||
<if test="tradeNo != null">
|
||||
trade_no = #{tradeNo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="shopId != null">
|
||||
shop_id = #{shopId,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="createTime != null">
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
@@ -146,8 +156,9 @@
|
||||
status = #{status,jdbcType=VARCHAR},
|
||||
order_no = #{orderNo,jdbcType=VARCHAR},
|
||||
trade_no = #{tradeNo,jdbcType=VARCHAR},
|
||||
shop_id = #{shopId,jdbcType=INTEGER},
|
||||
create_time = #{createTime,jdbcType=TIMESTAMP},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user