Authored by mali

去除删除的功能

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