商品是否展示字段修改

This commit is contained in:
2024-10-14 16:03:02 +08:00
parent 6abcd3cdf8
commit 3e45dd8068

View File

@@ -27,7 +27,7 @@
product_ids product_ids
</sql> </sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs"> <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="ResultMapWithBLOBs">
select select
<include refid="Base_Column_List" /> <include refid="Base_Column_List" />
, ,
<include refid="Blob_Column_List" /> <include refid="Blob_Column_List" />
@@ -39,14 +39,14 @@
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</delete> </delete>
<insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbProductGroup"> <insert id="insert" parameterType="com.chaozhanggui.system.cashierservice.entity.TbProductGroup">
insert into tb_product_group (id, name, merchant_id, insert into tb_product_group (id, name, merchant_id,
shop_id, pic, is_show, shop_id, pic, is_show,
detail, style, sort, detail, style, sort,
created_at, updated_at, product_ids created_at, updated_at, product_ids
) )
values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR}, values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{merchantId,jdbcType=VARCHAR},
#{shopId,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR}, #{isShow,jdbcType=TINYINT}, #{shopId,jdbcType=INTEGER}, #{pic,jdbcType=VARCHAR}, #{isShow,jdbcType=TINYINT},
#{detail,jdbcType=VARCHAR}, #{style,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{detail,jdbcType=VARCHAR}, #{style,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER},
#{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{productIds,jdbcType=LONGVARCHAR} #{createdAt,jdbcType=BIGINT}, #{updatedAt,jdbcType=BIGINT}, #{productIds,jdbcType=LONGVARCHAR}
) )
</insert> </insert>
@@ -231,7 +231,7 @@
* *
FROM FROM
tb_product_group tb_product_group
where shop_id=#{shopId} and is_show=1 where shop_id=#{shopId} and is_show_mall=1
<if test="groupId != null and groupId != ''"> <if test="groupId != null and groupId != ''">
and id = #{groupId} and id = #{groupId}
</if> </if>
@@ -242,4 +242,4 @@
SELECT * FROM tb_product_group WHERE `shop_id` = #{shopId,jdbcType=VARCHAR} AND is_show = 1 SELECT * FROM tb_product_group WHERE `shop_id` = #{shopId,jdbcType=VARCHAR} AND is_show = 1
AND `product_ids` LIKE concat('%',#{productId,jdbcType=VARCHAR},'%') AND `product_ids` LIKE concat('%',#{productId,jdbcType=VARCHAR},'%')
</select> </select>
</mapper> </mapper>