dev798
wxy 2024-04-08 14:57:03 +08:00
parent fdf0d73508
commit 62cd733b04
4 changed files with 5 additions and 7 deletions

View File

@ -16,7 +16,5 @@ public interface BrandMapper {
Integer insertBrand(Brand brand); Integer insertBrand(Brand brand);
Integer updateBrand(Brand brand); Integer updateBrand(Brand brand);
} }

View File

@ -14,7 +14,7 @@
</sql> </sql>
<insert id="insertProduct"> <insert id="insertProduct">
INSERT INTO `cargo`.`t_Product` ( INSERT INTO `product`.`t_Product` (
`product_name`, `product_name`,
`product_number`, `product_number`,
`brand_id`, `brand_id`,

View File

@ -30,7 +30,7 @@
<insert id="insertProductSkuAttr"> <insert id="insertProductSkuAttr">
INSERT INTO `cargo`.`t_product_sku_attr` ( INSERT INTO `product`.`t_product_sku_attr` (
`sku_id`, `attr_id`, `attr_value_id`, `attr_value`, `flag`, `create_time`, `create_by` `sku_id`, `attr_id`, `attr_value_id`, `attr_value`, `flag`, `create_time`, `create_by`
) VALUES ) VALUES
<foreach collection="productSkuAttrs" separator="," item="productSkuAttr"> <foreach collection="productSkuAttrs" separator="," item="productSkuAttr">

View File

@ -7,7 +7,7 @@
insert t_product_type(type_name,create_by,create_time) value (#{typeName},#{createBy},now()) insert t_product_type(type_name,create_by,create_time) value (#{typeName},#{createBy},now())
</insert> </insert>
<insert id="insertTypeAttr" useGeneratedKeys="true" keyProperty="id"> <insert id="insertTypeAttr" useGeneratedKeys="true" keyProperty="id">
INSERT INTO `cargo`.`t_product_type_attr` ( INSERT INTO `product`.`t_product_type_attr` (
`product_type_id`, `product_type_id`,
`attr_name`, `attr_name`,
`multiple_choice`, `multiple_choice`,
@ -44,7 +44,7 @@
) )
</insert> </insert>
<insert id="insertTypeValue"> <insert id="insertTypeValue">
INSERT INTO `cargo`.`t_product_type_attr_value` ( `type_attr_id`, `type_attr_value`, `input_method`, `create_time`, `create_by` ) INSERT INTO `product`.`t_product_type_attr_value` ( `type_attr_id`, `type_attr_value`, `input_method`, `create_time`, `create_by` )
VALUES VALUES
<foreach collection="productTypeAttrValueList" separator="," item="productTypeAttrValue"> <foreach collection="productTypeAttrValueList" separator="," item="productTypeAttrValue">
( (
@ -63,7 +63,7 @@
update t_product_type set type_name = #{typeName},update_time = now(),create_by=#{createBy} where id = #{id} update t_product_type set type_name = #{typeName},update_time = now(),create_by=#{createBy} where id = #{id}
</update> </update>
<update id="updateAttr"> <update id="updateAttr">
UPDATE `cargo`.`t_product_type_attr` UPDATE `product`.`t_product_type_attr`
SET `product_type_id` = #{productTypeId}, SET `product_type_id` = #{productTypeId},
`attr_name` = #{attrName}, `attr_name` = #{attrName},
`multiple_choice` = #{multipleChoice}, `multiple_choice` = #{multipleChoice},