提交
This commit is contained in:
@@ -12,10 +12,11 @@
|
||||
<result column="trade_no" jdbcType="VARCHAR" property="tradeNo" />
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
|
||||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
|
||||
<result column="shop_id" jdbcType="INTEGER" property="shopId" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, user_id, merchant_id, code, amount, status, order_no, trade_no, create_time,
|
||||
update_time
|
||||
update_time,shop_id
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
@@ -27,15 +28,15 @@
|
||||
delete from tb_member_in
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMemberIn">
|
||||
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMemberIn" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into tb_member_in (id, user_id, merchant_id,
|
||||
code, amount, status,
|
||||
order_no, trade_no, create_time,
|
||||
update_time)
|
||||
update_time,shop_id)
|
||||
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},
|
||||
#{updateTime,jdbcType=TIMESTAMP})
|
||||
#{updateTime,jdbcType=TIMESTAMP},#{shopId,jdbcType=INTEGER})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbMemberIn">
|
||||
insert into tb_member_in
|
||||
|
||||
Reference in New Issue
Block a user