购物车 多规格商品返回规格信息

团购卷列表
团购卷退款
员工登录管理
This commit is contained in:
2024-05-24 15:56:41 +08:00
parent c5e337bef3
commit 3e6cb81b46
26 changed files with 1247 additions and 36 deletions

View File

@@ -14,10 +14,13 @@
<result column="created_at" jdbcType="BIGINT" property="createdAt" />
<result column="updated_at" jdbcType="BIGINT" property="updatedAt" />
<result column="type" jdbcType="VARCHAR" property="type" />
<result column="is_manage" jdbcType="INTEGER" property="isManage" />
<result column="is_pc" jdbcType="INTEGER" property="isPc" />
</resultMap>
<sql id="Base_Column_List">
id, code, name, account, password, max_discount_amount, status, employee, shop_id,
created_at, updated_at, type
id
, code, name, account, password, max_discount_amount, status, employee, shop_id,
created_at, updated_at, type,is_manage,is_pc
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
@@ -33,12 +36,13 @@
insert into tb_pluss_shop_staff (id, code, name,
account, password, max_discount_amount,
status, employee, shop_id,
created_at, updated_at, type
created_at, updated_at, type,is_manage,is_pc
)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR},
#{account,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{maxDiscountAmount,jdbcType=DECIMAL},
#{status,jdbcType=BIT}, #{employee,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR},
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR},
#{isManage,jdbcType=INTEGER},#{isPc,jdbcType=INTEGER}
)
</insert>
<insert id="insertSelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff">
@@ -80,6 +84,12 @@
<if test="type != null">
type,
</if>
<if test="isManage != null">
is_manage,
</if>
<if test="isPc != null">
is_pc,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
@@ -118,6 +128,12 @@
<if test="type != null">
#{type,jdbcType=VARCHAR},
</if>
<if test="isManage != null">
#{isManage,jdbcType=INTEGER},
</if>
<if test="isPc != null">
#{isPc,jdbcType=INTEGER},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff">
@@ -156,23 +172,31 @@
<if test="type != null">
type = #{type,jdbcType=VARCHAR},
</if>
<if test="isManage != null">
is_manage = #{isManage,jdbcType=INTEGER},
</if>
<if test="isPc != null">
is_pc = #{isPc,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.system.cashierservice.entity.TbPlussShopStaff">
update tb_pluss_shop_staff
set code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
account = #{account,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
max_discount_amount = #{maxDiscountAmount,jdbcType=DECIMAL},
status = #{status,jdbcType=BIT},
employee = #{employee,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
type = #{type,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
update tb_pluss_shop_staff
set code = #{code,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
account = #{account,jdbcType=VARCHAR},
password = #{password,jdbcType=VARCHAR},
max_discount_amount = #{maxDiscountAmount,jdbcType=DECIMAL},
status = #{status,jdbcType=BIT},
employee = #{employee,jdbcType=VARCHAR},
shop_id = #{shopId,jdbcType=VARCHAR},
created_at = #{createdAt,jdbcType=BIGINT},
updated_at = #{updatedAt,jdbcType=BIGINT},
type = #{type,jdbcType=VARCHAR},
is_manage = #{isManage,jdbcType=INTEGER},
is_pc = #{isPc,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByAccount" resultMap="BaseResultMap">