Authored by mali

去除删除的功能

Showing 78 changed files with 39 additions and 210 deletions
@@ -7,7 +7,6 @@ import java.util.Collection; @@ -7,7 +7,6 @@ import java.util.Collection;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface BuyerOrderGoodsMapper { 9 public interface BuyerOrderGoodsMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(BuyerOrderGoods record); 11 int insert(BuyerOrderGoods record);
13 12
@@ -4,7 +4,6 @@ import com.yohoufo.dal.order.model.BuyerOrderMeta; @@ -4,7 +4,6 @@ import com.yohoufo.dal.order.model.BuyerOrderMeta;
4 import org.apache.ibatis.annotations.Param; 4 import org.apache.ibatis.annotations.Param;
5 5
6 public interface BuyerOrderMetaMapper { 6 public interface BuyerOrderMetaMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(BuyerOrderMeta record); 8 int insert(BuyerOrderMeta record);
10 9
@@ -7,7 +7,6 @@ import java.math.BigDecimal; @@ -7,7 +7,6 @@ import java.math.BigDecimal;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface EntrySellerRechargeOrderMapper { 9 public interface EntrySellerRechargeOrderMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(EntrySellerRechargeOrder record); 11 int insert(EntrySellerRechargeOrder record);
13 12
@@ -6,7 +6,6 @@ import com.yohoufo.dal.order.model.MachineIdGenerate; @@ -6,7 +6,6 @@ import com.yohoufo.dal.order.model.MachineIdGenerate;
6 import java.util.List; 6 import java.util.List;
7 7
8 public interface MachineIdGenerateMapper { 8 public interface MachineIdGenerateMapper {
9 - int deleteByPrimaryKey(Integer id);  
10 9
11 int insert(MachineIdGenerate record); 10 int insert(MachineIdGenerate record);
12 11
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.ManualTransfer; 3 import com.yohoufo.dal.order.model.ManualTransfer;
4 4
5 public interface ManualTransferMapper { 5 public interface ManualTransferMapper {
6 - int deleteByPrimaryKey(Integer id);  
7 6
8 int insert(ManualTransfer record); 7 int insert(ManualTransfer record);
9 8
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.MetaConfig; 3 import com.yohoufo.dal.order.model.MetaConfig;
4 4
5 public interface MetaConfigMapper { 5 public interface MetaConfigMapper {
6 - int deleteByPrimaryKey(Integer id);  
7 6
8 int insert(MetaConfig record); 7 int insert(MetaConfig record);
9 8
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.NoticeCase; 3 import com.yohoufo.dal.order.model.NoticeCase;
4 4
5 public interface NoticeCaseMapper { 5 public interface NoticeCaseMapper {
6 - int deleteByPrimaryKey(Integer id);  
7 6
8 int insert(NoticeCase record); 7 int insert(NoticeCase record);
9 8
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.Notice; 3 import com.yohoufo.dal.order.model.Notice;
4 4
5 public interface NoticeMapper { 5 public interface NoticeMapper {
6 - int deleteByPrimaryKey(Long id);  
7 6
8 int insert(Notice record); 7 int insert(Notice record);
9 8
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.NoticeRule; 3 import com.yohoufo.dal.order.model.NoticeRule;
4 4
5 public interface NoticeRuleMapper { 5 public interface NoticeRuleMapper {
6 - int deleteByPrimaryKey(Integer id);  
7 6
8 int insert(NoticeRule record); 7 int insert(NoticeRule record);
9 8
@@ -7,13 +7,7 @@ import java.util.Collection; @@ -7,13 +7,7 @@ import java.util.Collection;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface OrdersPayMapper { 9 public interface OrdersPayMapper {
10 - /**  
11 - * This method was generated by MyBatis Generator.  
12 - * This method corresponds to the database table orders_pay  
13 - *  
14 - * @mbggenerated  
15 - */  
16 - int deleteByPrimaryKey(Integer id); 10 +
17 11
18 /** 12 /**
19 * This method was generated by MyBatis Generator. 13 * This method was generated by MyBatis Generator.
@@ -4,7 +4,6 @@ package com.yohoufo.dal.order; @@ -4,7 +4,6 @@ package com.yohoufo.dal.order;
4 import com.yohoufo.dal.order.model.OrdersPayTransfer; 4 import com.yohoufo.dal.order.model.OrdersPayTransfer;
5 5
6 public interface OrdersPayTransferMapper { 6 public interface OrdersPayTransferMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(OrdersPayTransfer record); 8 int insert(OrdersPayTransfer record);
10 9
@@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerEnterApply; @@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerEnterApply;
5 import java.util.List; 5 import java.util.List;
6 6
7 public interface SellerEnterApplyMapper { 7 public interface SellerEnterApplyMapper {
8 - int deleteByPrimaryKey(Integer id);  
9 8
10 int insert(SellerEnterApply record); 9 int insert(SellerEnterApply record);
11 10
@@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerFunc; @@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerFunc;
5 import java.util.List; 5 import java.util.List;
6 6
7 public interface SellerFuncMapper { 7 public interface SellerFuncMapper {
8 - int deleteByPrimaryKey(Integer id);  
9 8
10 int insert(SellerFunc record); 9 int insert(SellerFunc record);
11 10
@@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerLevelFunc; @@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SellerLevelFunc;
5 import java.util.List; 5 import java.util.List;
6 6
7 public interface SellerLevelFuncMapper { 7 public interface SellerLevelFuncMapper {
8 - int deleteByPrimaryKey(Integer id);  
9 8
10 int insert(SellerLevelFunc record); 9 int insert(SellerLevelFunc record);
11 10
@@ -8,7 +8,6 @@ import java.util.Collection; @@ -8,7 +8,6 @@ import java.util.Collection;
8 import java.util.List; 8 import java.util.List;
9 9
10 public interface SellerOrderGoodsMapper { 10 public interface SellerOrderGoodsMapper {
11 - int deleteByPrimaryKey(Integer id);  
12 11
13 int insert(SellerOrderGoods record); 12 int insert(SellerOrderGoods record);
14 13
@@ -7,7 +7,6 @@ import java.util.Collection; @@ -7,7 +7,6 @@ import java.util.Collection;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface SellerOrderMapper { 9 public interface SellerOrderMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(SellerOrder record); 11 int insert(SellerOrder record);
13 12
@@ -7,7 +7,6 @@ import java.util.Collection; @@ -7,7 +7,6 @@ import java.util.Collection;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface SellerOrderMetaMapper { 9 public interface SellerOrderMetaMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(SellerOrderMeta record); 11 int insert(SellerOrderMeta record);
13 12
@@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param; @@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param;
7 import com.yohoufo.dal.order.model.SellerWalletDetail; 7 import com.yohoufo.dal.order.model.SellerWalletDetail;
8 8
9 public interface SellerWalletDetailMapper { 9 public interface SellerWalletDetailMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(SellerWalletDetail record); 11 int insert(SellerWalletDetail record);
13 12
@@ -3,7 +3,6 @@ package com.yohoufo.dal.order; @@ -3,7 +3,6 @@ package com.yohoufo.dal.order;
3 import com.yohoufo.dal.order.model.SkupBatch; 3 import com.yohoufo.dal.order.model.SkupBatch;
4 4
5 public interface SkupBatchMapper { 5 public interface SkupBatchMapper {
6 - int deleteByPrimaryKey(Long id);  
7 6
8 int insert(SkupBatch record); 7 int insert(SkupBatch record);
9 8
@@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SuperEntrySeller; @@ -5,7 +5,6 @@ import com.yohoufo.dal.order.model.SuperEntrySeller;
5 import java.util.List; 5 import java.util.List;
6 6
7 public interface SuperEntrySellerMapper { 7 public interface SuperEntrySellerMapper {
8 - int deleteByPrimaryKey(Integer uid);  
9 8
10 int insert(SuperEntrySeller record); 9 int insert(SuperEntrySeller record);
11 10
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Brand; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Brand;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface BrandMapper { 6 public interface BrandMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(Brand record); 8 int insert(Brand record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.BrandSeries; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.BrandSeries;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface BrandSeriesMapper { 6 public interface BrandSeriesMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(BrandSeries record); 8 int insert(BrandSeries record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.GoodsImages; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.GoodsImages;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface GoodsImagesMapper { 6 public interface GoodsImagesMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(GoodsImages record); 8 int insert(GoodsImages record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Goods; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Goods;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface GoodsMapper { 6 public interface GoodsMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(Goods record); 8 int insert(Goods record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductColor; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductColor;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductColorMapper { 6 public interface ProductColorMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(ProductColor record); 8 int insert(ProductColor record);
10 9
@@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param; @@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param;
7 import com.yohoufo.dal.product.model.ProductLimitSale; 7 import com.yohoufo.dal.product.model.ProductLimitSale;
8 8
9 public interface ProductLimitSaleMapper { 9 public interface ProductLimitSaleMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(ProductLimitSale record); 11 int insert(ProductLimitSale record);
13 12
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Product; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Product;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductMapper { 6 public interface ProductMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(Product record); 8 int insert(Product record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductPoolDetail; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductPoolDetail;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductPoolDetailMapper { 6 public interface ProductPoolDetailMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(ProductPoolDetail record); 8 int insert(ProductPoolDetail record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductPool; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductPool;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductPoolMapper { 6 public interface ProductPoolMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(ProductPool record); 8 int insert(ProductPool record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductSort; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.ProductSort;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface ProductSortMapper { 6 public interface ProductSortMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(ProductSort record); 8 int insert(ProductSort record);
10 9
@@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Size; @@ -4,7 +4,6 @@ import com.yohoufo.dal.product.model.Size;
4 import java.util.List; 4 import java.util.List;
5 5
6 public interface SizeMapper { 6 public interface SizeMapper {
7 - int deleteByPrimaryKey(Integer id);  
8 7
9 int insert(Size record); 8 int insert(Size record);
10 9
@@ -10,7 +10,6 @@ import org.apache.ibatis.annotations.Param; @@ -10,7 +10,6 @@ import org.apache.ibatis.annotations.Param;
10 10
11 public interface StorageMapper { 11 public interface StorageMapper {
12 12
13 - int deleteByPrimaryKey(Integer id);  
14 13
15 int insert(Storage record); 14 int insert(Storage record);
16 15
@@ -8,7 +8,6 @@ import java.util.List; @@ -8,7 +8,6 @@ import java.util.List;
8 import org.apache.ibatis.annotations.Param; 8 import org.apache.ibatis.annotations.Param;
9 9
10 public interface StoragePriceMapper { 10 public interface StoragePriceMapper {
11 - int deleteByPrimaryKey(Integer id);  
12 11
13 int insert(StoragePrice record); 12 int insert(StoragePrice record);
14 13
@@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param; @@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface CouponMapper { 9 public interface CouponMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(Coupon record); 11 int insert(Coupon record);
13 12
@@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param; @@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface CouponProductLimitMapper { 9 public interface CouponProductLimitMapper {
10 - int deleteByPrimaryKey(Integer id);  
11 10
12 int insert(CouponProductLimit record); 11 int insert(CouponProductLimit record);
13 12
@@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param; @@ -7,7 +7,6 @@ import org.apache.ibatis.annotations.Param;
7 import java.util.List; 7 import java.util.List;
8 8
9 public interface CouponTypeMapper { 9 public interface CouponTypeMapper {
10 - int deleteByPrimaryKey(Byte id);  
11 10
12 int insert(CouponType record); 11 int insert(CouponType record);
13 12
@@ -9,7 +9,6 @@ import org.apache.ibatis.annotations.Param; @@ -9,7 +9,6 @@ import org.apache.ibatis.annotations.Param;
9 import java.util.List; 9 import java.util.List;
10 10
11 public interface UserCouponMapper { 11 public interface UserCouponMapper {
12 - int deleteByPrimaryKey(Integer id);  
13 12
14 int insert(UserCoupon record); 13 int insert(UserCoupon record);
15 14
@@ -7,8 +7,6 @@ import java.util.List; @@ -7,8 +7,6 @@ import java.util.List;
7 7
8 public interface ConfigTypeMapper { 8 public interface ConfigTypeMapper {
9 9
10 - int deleteByPrimaryKey(Integer id);  
11 -  
12 int insert(ConfigType record); 10 int insert(ConfigType record);
13 11
14 int insertSelective(ConfigType record); 12 int insertSelective(ConfigType record);
@@ -59,10 +59,7 @@ @@ -59,10 +59,7 @@
59 limit 1 59 limit 1
60 </select> 60 </select>
61 61
62 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
63 - delete from buyer_order_goods  
64 - where id = #{id,jdbcType=INTEGER}  
65 - </delete> 62 +
66 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrderGoods" useGeneratedKeys="true"> 63 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrderGoods" useGeneratedKeys="true">
67 insert into buyer_order_goods (order_code, skup, goods_price, 64 insert into buyer_order_goods (order_code, skup, goods_price,
68 goods_amount) 65 goods_amount)
@@ -33,10 +33,7 @@ @@ -33,10 +33,7 @@
33 </select> 33 </select>
34 34
35 35
36 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
37 - delete from buyer_order_meta  
38 - where id = #{id,jdbcType=INTEGER}  
39 - </delete> 36 +
40 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrderMeta" useGeneratedKeys="true"> 37 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.BuyerOrderMeta" useGeneratedKeys="true">
41 insert into buyer_order_meta (order_code, uid, meta_key, 38 insert into buyer_order_meta (order_code, uid, meta_key,
42 meta_value) 39 meta_value)
@@ -21,10 +21,7 @@ @@ -21,10 +21,7 @@
21 from entry_seller_recharge_order 21 from entry_seller_recharge_order
22 where id = #{id,jdbcType=INTEGER} 22 where id = #{id,jdbcType=INTEGER}
23 </select> 23 </select>
24 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
25 - delete from entry_seller_recharge_order  
26 - where id = #{id,jdbcType=INTEGER}  
27 - </delete> 24 +
28 <insert id="insert" parameterType="com.yohoufo.dal.order.model.EntrySellerRechargeOrder" > 25 <insert id="insert" parameterType="com.yohoufo.dal.order.model.EntrySellerRechargeOrder" >
29 insert into entry_seller_recharge_order (id, uid, order_code, 26 insert into entry_seller_recharge_order (id, uid, order_code,
30 payment, status, amount, 27 payment, status, amount,
@@ -30,10 +30,7 @@ @@ -30,10 +30,7 @@
30 from machine_id_generate 30 from machine_id_generate
31 </select> 31 </select>
32 32
33 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
34 - delete from machine_id_generate  
35 - where id = #{id,jdbcType=INTEGER}  
36 - </delete> 33 +
37 <insert id="insert" parameterType="com.yohoufo.dal.order.model.MachineIdGenerate" > 34 <insert id="insert" parameterType="com.yohoufo.dal.order.model.MachineIdGenerate" >
38 insert into machine_id_generate (id, ip, machine_id, 35 insert into machine_id_generate (id, ip, machine_id,
39 create_time) 36 create_time)
@@ -32,10 +32,7 @@ @@ -32,10 +32,7 @@
32 from manual_transfer 32 from manual_transfer
33 where id = #{id,jdbcType=INTEGER} 33 where id = #{id,jdbcType=INTEGER}
34 </select> 34 </select>
35 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
36 - delete from manual_transfer  
37 - where id = #{id,jdbcType=INTEGER}  
38 - </delete> 35 +
39 <insert id="insert" parameterType="com.yohoufo.dal.order.model.ManualTransfer" keyColumn="id" keyProperty="id" useGeneratedKeys="true"> 36 <insert id="insert" parameterType="com.yohoufo.dal.order.model.ManualTransfer" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
40 insert into manual_transfer (id, buyer_order_code, seller_order_code, 37 insert into manual_transfer (id, buyer_order_code, seller_order_code,
41 alipay_trade_id, transfer_type, uid, 38 alipay_trade_id, transfer_type, uid,
@@ -27,10 +27,7 @@ @@ -27,10 +27,7 @@
27 where code = #{code,jdbcType=VARCHAR} 27 where code = #{code,jdbcType=VARCHAR}
28 </select> 28 </select>
29 29
30 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
31 - delete from meta_config  
32 - where id = #{id,jdbcType=INTEGER}  
33 - </delete> 30 +
34 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.MetaConfig" useGeneratedKeys="true"> 31 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.MetaConfig" useGeneratedKeys="true">
35 insert into meta_config (code, title, `value`, 32 insert into meta_config (code, title, `value`,
36 create_time, `desc`) 33 create_time, `desc`)
@@ -25,10 +25,7 @@ @@ -25,10 +25,7 @@
25 from notice_case 25 from notice_case
26 where id = #{id,jdbcType=INTEGER} 26 where id = #{id,jdbcType=INTEGER}
27 </select> 27 </select>
28 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
29 - delete from notice_case  
30 - where id = #{id,jdbcType=INTEGER}  
31 - </delete> 28 +
32 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.NoticeCase" useGeneratedKeys="true"> 29 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.NoticeCase" useGeneratedKeys="true">
33 insert into notice_case (meta_key, title, rule_ids, 30 insert into notice_case (meta_key, title, rule_ids,
34 rules) 31 rules)
@@ -26,10 +26,7 @@ @@ -26,10 +26,7 @@
26 from notice 26 from notice
27 where id = #{id,jdbcType=BIGINT} 27 where id = #{id,jdbcType=BIGINT}
28 </select> 28 </select>
29 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">  
30 - delete from notice  
31 - where id = #{id,jdbcType=BIGINT}  
32 - </delete> 29 +
33 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.Notice" useGeneratedKeys="true"> 30 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.Notice" useGeneratedKeys="true">
34 insert into notice (uid, biz_key, case_id, 31 insert into notice (uid, biz_key, case_id,
35 rule_id, method, limit_quantity, 32 rule_id, method, limit_quantity,
@@ -18,10 +18,7 @@ @@ -18,10 +18,7 @@
18 from notice_rule 18 from notice_rule
19 where id = #{id,jdbcType=INTEGER} 19 where id = #{id,jdbcType=INTEGER}
20 </select> 20 </select>
21 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
22 - delete from notice_rule  
23 - where id = #{id,jdbcType=INTEGER}  
24 - </delete> 21 +
25 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.NoticeRule" useGeneratedKeys="true"> 22 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.NoticeRule" useGeneratedKeys="true">
26 insert into notice_rule (case_id, method, quantity, 23 insert into notice_rule (case_id, method, quantity,
27 time_unit_region, time_unit) 24 time_unit_region, time_unit)
@@ -45,14 +45,7 @@ @@ -45,14 +45,7 @@
45 limit 1 45 limit 1
46 </select> 46 </select>
47 47
48 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
49 - <!--  
50 - WARNING - @mbggenerated  
51 - This element is automatically generated by MyBatis Generator, do not modify.  
52 - -->  
53 - delete from orders_pay  
54 - where id = #{id,jdbcType=INTEGER}  
55 - </delete> 48 +
56 <insert id="insert" parameterType="com.yohoufo.dal.order.model.OrdersPay" > 49 <insert id="insert" parameterType="com.yohoufo.dal.order.model.OrdersPay" >
57 <!-- 50 <!--
58 WARNING - @mbggenerated 51 WARNING - @mbggenerated
@@ -39,10 +39,7 @@ @@ -39,10 +39,7 @@
39 from orders_pay_transfer 39 from orders_pay_transfer
40 where buyer_order_code = #{buyerOrderCode,jdbcType=INTEGER} 40 where buyer_order_code = #{buyerOrderCode,jdbcType=INTEGER}
41 </select> 41 </select>
42 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
43 - delete from orders_pay_transfer  
44 - where id = #{id,jdbcType=INTEGER}  
45 - </delete> 42 +
46 <insert id="insert" parameterType="com.yohoufo.dal.order.model.OrdersPayTransfer" useGeneratedKeys="true" keyProperty="id" > 43 <insert id="insert" parameterType="com.yohoufo.dal.order.model.OrdersPayTransfer" useGeneratedKeys="true" keyProperty="id" >
47 insert into orders_pay_transfer (id, buyer_order_code, seller_order_code, 44 insert into orders_pay_transfer (id, buyer_order_code, seller_order_code,
48 alipay_trade_id, transfer_type, uid, 45 alipay_trade_id, transfer_type, uid,
@@ -36,10 +36,7 @@ @@ -36,10 +36,7 @@
36 and pre_enter_type = #{preEnterType,jdbcType=INTEGER} 36 and pre_enter_type = #{preEnterType,jdbcType=INTEGER}
37 </if> 37 </if>
38 </select> 38 </select>
39 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
40 - delete from seller_enter_apply  
41 - where id = #{id,jdbcType=INTEGER}  
42 - </delete> 39 +
43 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerEnterApply" useGeneratedKeys="true"> 40 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerEnterApply" useGeneratedKeys="true">
44 insert into seller_enter_apply (uid, order_code, pre_enter_type, 41 insert into seller_enter_apply (uid, order_code, pre_enter_type,
45 enter_type, create_time, update_time, 42 enter_type, create_time, update_time,
@@ -21,10 +21,7 @@ @@ -21,10 +21,7 @@
21 select <include refid="Base_Column_List" /> from seller_func 21 select <include refid="Base_Column_List" /> from seller_func
22 </select> 22 </select>
23 23
24 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
25 - delete from seller_func  
26 - where id = #{id,jdbcType=INTEGER}  
27 - </delete> 24 +
28 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerFunc" useGeneratedKeys="true"> 25 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerFunc" useGeneratedKeys="true">
29 insert into seller_func (cn_name, en_name, code 26 insert into seller_func (cn_name, en_name, code
30 ) 27 )
@@ -24,10 +24,7 @@ @@ -24,10 +24,7 @@
24 from seller_level_func 24 from seller_level_func
25 </select> 25 </select>
26 26
27 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
28 - delete from seller_level_func  
29 - where id = #{id,jdbcType=INTEGER}  
30 - </delete> 27 +
31 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc" useGeneratedKeys="true"> 28 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerLevelFunc" useGeneratedKeys="true">
32 insert into seller_level_func (enter_type, level, func_list 29 insert into seller_level_func (enter_type, level, func_list
33 ) 30 )
@@ -157,10 +157,6 @@ @@ -157,10 +157,6 @@
157 limit #{offset, jdbcType=INTEGER}, #{limit, jdbcType=INTEGER} 157 limit #{offset, jdbcType=INTEGER}, #{limit, jdbcType=INTEGER}
158 </select> 158 </select>
159 159
160 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
161 - delete from seller_order_goods  
162 - where id = #{id,jdbcType=INTEGER}  
163 - </delete>  
164 160
165 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerOrderGoods" useGeneratedKeys="true"> 161 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerOrderGoods" useGeneratedKeys="true">
166 insert into seller_order_goods (product_id, product_name, storage_id, 162 insert into seller_order_goods (product_id, product_name, storage_id,
@@ -17,10 +17,7 @@ @@ -17,10 +17,7 @@
17 from seller_order_meta 17 from seller_order_meta
18 where id = #{id,jdbcType=INTEGER} 18 where id = #{id,jdbcType=INTEGER}
19 </select> 19 </select>
20 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
21 - delete from seller_order_meta  
22 - where id = #{id,jdbcType=INTEGER}  
23 - </delete> 20 +
24 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerOrderMeta" useGeneratedKeys="true"> 21 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SellerOrderMeta" useGeneratedKeys="true">
25 insert into seller_order_meta (skup, uid, meta_key, 22 insert into seller_order_meta (skup, uid, meta_key,
26 meta_value) 23 meta_value)
@@ -25,10 +25,7 @@ @@ -25,10 +25,7 @@
25 from seller_wallet_detail 25 from seller_wallet_detail
26 where id = #{id,jdbcType=INTEGER} 26 where id = #{id,jdbcType=INTEGER}
27 </select> 27 </select>
28 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
29 - delete from seller_wallet_detail  
30 - where id = #{id,jdbcType=INTEGER}  
31 - </delete> 28 +
32 <insert id="insert" parameterType="com.yohoufo.dal.order.model.SellerWalletDetail" keyColumn="id" keyProperty="id" useGeneratedKeys="true"> 29 <insert id="insert" parameterType="com.yohoufo.dal.order.model.SellerWalletDetail" keyColumn="id" keyProperty="id" useGeneratedKeys="true">
33 insert into seller_wallet_detail (id, wallet_id, uid, 30 insert into seller_wallet_detail (id, wallet_id, uid,
34 order_code, amount, type, 31 order_code, amount, type,
@@ -21,10 +21,7 @@ @@ -21,10 +21,7 @@
21 from seller_wallet 21 from seller_wallet
22 where id = #{id,jdbcType=INTEGER} 22 where id = #{id,jdbcType=INTEGER}
23 </select> 23 </select>
24 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
25 - delete from seller_wallet  
26 - where id = #{id,jdbcType=INTEGER}  
27 - </delete> 24 +
28 25
29 <select id="selectByUidNType" resultMap="BaseResultMap" parameterType="com.yohoufo.dal.order.model.SellerWallet" > 26 <select id="selectByUidNType" resultMap="BaseResultMap" parameterType="com.yohoufo.dal.order.model.SellerWallet" >
30 select 27 select
@@ -16,10 +16,7 @@ @@ -16,10 +16,7 @@
16 from skup_batch 16 from skup_batch
17 where id = #{id,jdbcType=BIGINT} 17 where id = #{id,jdbcType=BIGINT}
18 </select> 18 </select>
19 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">  
20 - delete from skup_batch  
21 - where id = #{id,jdbcType=BIGINT}  
22 - </delete> 19 +
23 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SkupBatch" useGeneratedKeys="true"> 20 <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yohoufo.dal.order.model.SkupBatch" useGeneratedKeys="true">
24 insert into skup_batch (uid, num, create_time 21 insert into skup_batch (uid, num, create_time
25 ) 22 )
@@ -25,10 +25,7 @@ @@ -25,10 +25,7 @@
25 where status = #{status,jdbcType=SMALLINT} 25 where status = #{status,jdbcType=SMALLINT}
26 </select> 26 </select>
27 27
28 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
29 - delete from super_entry_seller  
30 - where uid = #{uid,jdbcType=INTEGER}  
31 - </delete> 28 +
32 <insert id="insert" keyColumn="uid" keyProperty="uid" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller" useGeneratedKeys="true"> 29 <insert id="insert" keyColumn="uid" keyProperty="uid" parameterType="com.yohoufo.dal.order.model.SuperEntrySeller" useGeneratedKeys="true">
33 insert into super_entry_seller (status, update_time, create_time 30 insert into super_entry_seller (status, update_time, create_time
34 ) 31 )
@@ -13,10 +13,7 @@ @@ -13,10 +13,7 @@
13 <result column="edit_pid" jdbcType="INTEGER" property="editPid" /> 13 <result column="edit_pid" jdbcType="INTEGER" property="editPid" />
14 <result column="order_by" jdbcType="INTEGER" property="orderBy" /> 14 <result column="order_by" jdbcType="INTEGER" property="orderBy" />
15 </resultMap> 15 </resultMap>
16 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
17 - delete from brand  
18 - where id = #{id,jdbcType=INTEGER}  
19 - </delete> 16 +
20 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Brand"> 17 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Brand">
21 insert into brand (id, brand_name, brand_name_en, 18 insert into brand (id, brand_name, brand_name_en,
22 brand_logo, brand_search, status, 19 brand_logo, brand_search, status,
@@ -10,10 +10,7 @@ @@ -10,10 +10,7 @@
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 <result column="brand_id" jdbcType="INTEGER" property="brandId" /> 11 <result column="brand_id" jdbcType="INTEGER" property="brandId" />
12 </resultMap> 12 </resultMap>
13 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
14 - delete from brand_series  
15 - where id = #{id,jdbcType=INTEGER}  
16 - </delete> 13 +
17 <insert id="insert" parameterType="com.yohoufo.dal.product.model.BrandSeries"> 14 <insert id="insert" parameterType="com.yohoufo.dal.product.model.BrandSeries">
18 insert into brand_series (id, series_name, series_search, 15 insert into brand_series (id, series_name, series_search,
19 status, create_time, update_time, 16 status, create_time, update_time,
@@ -9,10 +9,7 @@ @@ -9,10 +9,7 @@
9 <result column="image_url" jdbcType="VARCHAR" property="imageUrl" /> 9 <result column="image_url" jdbcType="VARCHAR" property="imageUrl" />
10 <result column="order_by" jdbcType="INTEGER" property="orderBy" /> 10 <result column="order_by" jdbcType="INTEGER" property="orderBy" />
11 </resultMap> 11 </resultMap>
12 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
13 - delete from goods_images  
14 - where id = #{id,jdbcType=INTEGER}  
15 - </delete> 12 +
16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.GoodsImages"> 13 <insert id="insert" parameterType="com.yohoufo.dal.product.model.GoodsImages">
17 insert into goods_images (id, goods_id, product_id, 14 insert into goods_images (id, goods_id, product_id,
18 is_default, image_url, order_by 15 is_default, image_url, order_by
@@ -10,10 +10,7 @@ @@ -10,10 +10,7 @@
10 <result column="color_image" jdbcType="VARCHAR" property="colorImage" /> 10 <result column="color_image" jdbcType="VARCHAR" property="colorImage" />
11 <result column="is_default" jdbcType="CHAR" property="isDefault" /> 11 <result column="is_default" jdbcType="CHAR" property="isDefault" />
12 </resultMap> 12 </resultMap>
13 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
14 - delete from goods  
15 - where id = #{id,jdbcType=INTEGER}  
16 - </delete> 13 +
17 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Goods"> 14 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Goods">
18 insert into goods (id, product_id, color_id, 15 insert into goods (id, product_id, color_id,
19 color_name, goods_name, color_image, 16 color_name, goods_name, color_image,
@@ -9,10 +9,7 @@ @@ -9,10 +9,7 @@
9 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 9 <result column="create_time" jdbcType="INTEGER" property="createTime" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 </resultMap> 11 </resultMap>
12 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
13 - delete from product_color  
14 - where id = #{id,jdbcType=INTEGER}  
15 - </delete> 12 +
16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductColor"> 13 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductColor">
17 insert into product_color (id, color_name, color_code, 14 insert into product_color (id, color_name, color_code,
18 color_value, create_time, update_time 15 color_value, create_time, update_time
@@ -36,10 +36,7 @@ @@ -36,10 +36,7 @@
36 where del_status = 0 and product_id = #{productId} and uid = #{uid} 36 where del_status = 0 and product_id = #{productId} and uid = #{uid}
37 </select> 37 </select>
38 38
39 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
40 - delete from product_limit_sale  
41 - where id = #{id,jdbcType=INTEGER}  
42 - </delete> 39 +
43 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductLimitSale" > 40 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductLimitSale" >
44 insert into product_limit_sale (id, product_id, uid, 41 insert into product_limit_sale (id, product_id, uid,
45 profit_rate, create_time, del_status 42 profit_rate, create_time, del_status
@@ -22,10 +22,7 @@ @@ -22,10 +22,7 @@
22 <result column="key_words" jdbcType="VARCHAR" property="keyWords" /> 22 <result column="key_words" jdbcType="VARCHAR" property="keyWords" />
23 <result column="del_status" jdbcType="INTEGER" property="delStatus" /> 23 <result column="del_status" jdbcType="INTEGER" property="delStatus" />
24 </resultMap> 24 </resultMap>
25 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
26 - delete from product  
27 - where id = #{id,jdbcType=INTEGER}  
28 - </delete> 25 +
29 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product"> 26 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Product">
30 insert into product (id, product_name, product_code, 27 insert into product (id, product_name, product_code,
31 max_sort_id, mid_sort_id, brand_id, series_id, 28 max_sort_id, mid_sort_id, brand_id, series_id,
@@ -7,10 +7,7 @@ @@ -7,10 +7,7 @@
7 <result column="product_id" jdbcType="INTEGER" property="productId" /> 7 <result column="product_id" jdbcType="INTEGER" property="productId" />
8 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 8 <result column="create_time" jdbcType="INTEGER" property="createTime" />
9 </resultMap> 9 </resultMap>
10 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
11 - delete from product_pool_detail  
12 - where id = #{id,jdbcType=INTEGER}  
13 - </delete> 10 +
14 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductPoolDetail"> 11 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductPoolDetail">
15 insert into product_pool_detail (id, pool_id, product_id, 12 insert into product_pool_detail (id, pool_id, product_id,
16 create_time) 13 create_time)
@@ -6,10 +6,7 @@ @@ -6,10 +6,7 @@
6 <result column="pool_name" jdbcType="VARCHAR" property="poolName" /> 6 <result column="pool_name" jdbcType="VARCHAR" property="poolName" />
7 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 7 <result column="create_time" jdbcType="INTEGER" property="createTime" />
8 </resultMap> 8 </resultMap>
9 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
10 - delete from product_pool  
11 - where id = #{id,jdbcType=INTEGER}  
12 - </delete> 9 +
13 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductPool"> 10 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductPool">
14 insert into product_pool (id, pool_name, create_time 11 insert into product_pool (id, pool_name, create_time
15 ) 12 )
@@ -23,10 +23,7 @@ @@ -23,10 +23,7 @@
23 from product_self_shelves 23 from product_self_shelves
24 where id = #{id,jdbcType=INTEGER} 24 where id = #{id,jdbcType=INTEGER}
25 </select> 25 </select>
26 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
27 - delete from product_self_shelves  
28 - where id = #{id,jdbcType=INTEGER}  
29 - </delete> 26 +
30 <insert id="insert" useGeneratedKeys="true" keyProperty="record.id" > 27 <insert id="insert" useGeneratedKeys="true" keyProperty="record.id" >
31 insert into product_self_shelves (brand, product_name, 28 insert into product_self_shelves (brand, product_name,
32 price, sale_time, product_code, 29 price, sale_time, product_code,
@@ -15,11 +15,7 @@ @@ -15,11 +15,7 @@
15 from product_self_shelves_pic 15 from product_self_shelves_pic
16 where id = #{id,jdbcType=INTEGER} 16 where id = #{id,jdbcType=INTEGER}
17 </select> 17 </select>
18 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
19 - delete from product_self_shelves_pic  
20 - where id = #{id,jdbcType=INTEGER}  
21 - </delete>  
22 - 18 +
23 <insert id="insertBatch"> 19 <insert id="insertBatch">
24 insert into product_self_shelves_pic (self_shelves_id, picture_url) 20 insert into product_self_shelves_pic (self_shelves_id, picture_url)
25 values 21 values
@@ -11,10 +11,7 @@ @@ -11,10 +11,7 @@
11 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 11 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
12 <result column="order_by" jdbcType="INTEGER" property="orderBy" /> 12 <result column="order_by" jdbcType="INTEGER" property="orderBy" />
13 </resultMap> 13 </resultMap>
14 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
15 - delete from product_sort  
16 - where id = #{id,jdbcType=INTEGER}  
17 - </delete> 14 +
18 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductSort"> 15 <insert id="insert" parameterType="com.yohoufo.dal.product.model.ProductSort">
19 insert into product_sort (id, sort_name, `level`, parent_id, status, 16 insert into product_sort (id, sort_name, `level`, parent_id, status,
20 create_time, update_time, order_by) 17 create_time, update_time, order_by)
@@ -9,10 +9,7 @@ @@ -9,10 +9,7 @@
9 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 9 <result column="create_time" jdbcType="INTEGER" property="createTime" />
10 <result column="update_time" jdbcType="INTEGER" property="updateTime" /> 10 <result column="update_time" jdbcType="INTEGER" property="updateTime" />
11 </resultMap> 11 </resultMap>
12 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
13 - delete from size  
14 - where id = #{id,jdbcType=INTEGER}  
15 - </delete> 12 +
16 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Size"> 13 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Size">
17 insert into size (id, size_name, sort_id, 14 insert into size (id, size_name, sort_id,
18 order_by, create_time, update_time 15 order_by, create_time, update_time
@@ -24,10 +24,7 @@ @@ -24,10 +24,7 @@
24 <result column="size_name" jdbcType="VARCHAR" property="sizeName" /> 24 <result column="size_name" jdbcType="VARCHAR" property="sizeName" />
25 </resultMap> 25 </resultMap>
26 26
27 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
28 - delete from storage  
29 - where id = #{id,jdbcType=INTEGER}  
30 - </delete> 27 +
31 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Storage"> 28 <insert id="insert" parameterType="com.yohoufo.dal.product.model.Storage">
32 insert into storage (id, product_id, goods_id, 29 insert into storage (id, product_id, goods_id,
33 size_id, storage_num, update_time, 30 size_id, storage_num, update_time,
@@ -15,10 +15,7 @@ @@ -15,10 +15,7 @@
15 <result column="create_time" jdbcType="INTEGER" property="createTime" /> 15 <result column="create_time" jdbcType="INTEGER" property="createTime" />
16 <result column="pre_sale_flag" jdbcType="INTEGER" property="preSaleFlag" /> 16 <result column="pre_sale_flag" jdbcType="INTEGER" property="preSaleFlag" />
17 </resultMap> 17 </resultMap>
18 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
19 - delete from storage_price  
20 - where id = #{id,jdbcType=INTEGER}  
21 - </delete> 18 +
22 <insert id="insert" parameterType="com.yohoufo.dal.product.model.StoragePrice"> 19 <insert id="insert" parameterType="com.yohoufo.dal.product.model.StoragePrice">
23 insert into storage_price (id, skup, product_id, goods_id, 20 insert into storage_price (id, skup, product_id, goods_id,
24 storage_id, depot_num, seller_uid, 21 storage_id, depot_num, seller_uid,
@@ -69,10 +69,7 @@ @@ -69,10 +69,7 @@
69 </foreach> 69 </foreach>
70 </select> 70 </select>
71 71
72 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
73 - delete from coupon  
74 - where id = #{id,jdbcType=INTEGER}  
75 - </delete> 72 +
76 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.Coupon"> 73 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.Coupon">
77 insert into coupon (id, coupon_token, coupon_name, 74 insert into coupon (id, coupon_token, coupon_name,
78 coupon_amount, coupon_type, coupon_num, 75 coupon_amount, coupon_type, coupon_num,
@@ -16,10 +16,7 @@ @@ -16,10 +16,7 @@
16 from coupon_product_limit 16 from coupon_product_limit
17 where id = #{id,jdbcType=INTEGER} 17 where id = #{id,jdbcType=INTEGER}
18 </select> 18 </select>
19 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
20 - delete from coupon_product_limit  
21 - where id = #{id,jdbcType=INTEGER}  
22 - </delete> 19 +
23 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.CouponProductLimit" > 20 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.CouponProductLimit" >
24 insert into coupon_product_limit (id, coupon_id, limit_type, 21 insert into coupon_product_limit (id, coupon_id, limit_type,
25 product_id) 22 product_id)
@@ -30,10 +30,6 @@ @@ -30,10 +30,6 @@
30 </select> 30 </select>
31 31
32 32
33 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
34 - delete from coupon_type  
35 - where id = #{id,jdbcType=INTEGER}  
36 - </delete>  
37 33
38 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.CouponType" > 34 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.CouponType" >
39 insert into coupon_type (id, caption) 35 insert into coupon_type (id, caption)
@@ -77,10 +77,7 @@ @@ -77,10 +77,7 @@
77 <include refid="CouponsLogsQueryUsable"/> 77 <include refid="CouponsLogsQueryUsable"/>
78 </select> 78 </select>
79 79
80 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >  
81 - delete from user_coupon  
82 - where id = #{id,jdbcType=INTEGER}  
83 - </delete> 80 +
84 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.UserCoupon" > 81 <insert id="insert" parameterType="com.yohoufo.dal.promotion.model.UserCoupon" >
85 insert into user_coupon (id, uid, coupon_id, 82 insert into user_coupon (id, uid, coupon_id,
86 coupon_type, coupon_code, status, 83 coupon_type, coupon_code, status,
@@ -26,10 +26,7 @@ @@ -26,10 +26,7 @@
26 where status = 1 26 where status = 1
27 </select> 27 </select>
28 28
29 - <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">  
30 - delete from config_type  
31 - where id = #{id,jdbcType=INTEGER}  
32 - </delete> 29 +
33 <insert id="insert" parameterType="com.yohoufo.dal.resource.model.ConfigType"> 30 <insert id="insert" parameterType="com.yohoufo.dal.resource.model.ConfigType">
34 insert into config_type (id, code, name, 31 insert into config_type (id, code, name,
35 content, status, create_time 32 content, status, create_time