dev798
parent
fdf0d73508
commit
62cd733b04
|
@ -16,7 +16,5 @@ public interface BrandMapper {
|
|||
|
||||
Integer insertBrand(Brand brand);
|
||||
|
||||
|
||||
|
||||
Integer updateBrand(Brand brand);
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
</sql>
|
||||
|
||||
<insert id="insertProduct">
|
||||
INSERT INTO `cargo`.`t_Product` (
|
||||
INSERT INTO `product`.`t_Product` (
|
||||
`product_name`,
|
||||
`product_number`,
|
||||
`brand_id`,
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
|
||||
<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`
|
||||
) VALUES
|
||||
<foreach collection="productSkuAttrs" separator="," item="productSkuAttr">
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
insert t_product_type(type_name,create_by,create_time) value (#{typeName},#{createBy},now())
|
||||
</insert>
|
||||
<insert id="insertTypeAttr" useGeneratedKeys="true" keyProperty="id">
|
||||
INSERT INTO `cargo`.`t_product_type_attr` (
|
||||
INSERT INTO `product`.`t_product_type_attr` (
|
||||
`product_type_id`,
|
||||
`attr_name`,
|
||||
`multiple_choice`,
|
||||
|
@ -44,7 +44,7 @@
|
|||
)
|
||||
</insert>
|
||||
<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
|
||||
<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>
|
||||
<update id="updateAttr">
|
||||
UPDATE `cargo`.`t_product_type_attr`
|
||||
UPDATE `product`.`t_product_type_attr`
|
||||
SET `product_type_id` = #{productTypeId},
|
||||
`attr_name` = #{attrName},
|
||||
`multiple_choice` = #{multipleChoice},
|
||||
|
|
Loading…
Reference in New Issue