This commit is contained in:
韩鹏辉
2024-03-26 16:25:16 +08:00
parent b77eacdccb
commit 3bb8dfed1e
3 changed files with 23 additions and 7 deletions

View File

@@ -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