|
|
@ -23,10 +23,11 @@ |
|
|
<result column="product_picture" jdbcType="VARCHAR" property="productPicture" /> |
|
|
<result column="product_picture" jdbcType="VARCHAR" property="productPicture" /> |
|
|
<result column="product_video" jdbcType="VARCHAR" property="productVideo" /> |
|
|
<result column="product_video" jdbcType="VARCHAR" property="productVideo" /> |
|
|
<result column="product_intro" jdbcType="VARCHAR" property="productIntro" /> |
|
|
<result column="product_intro" jdbcType="VARCHAR" property="productIntro" /> |
|
|
<result column="sales_week" jdbcType="VARCHAR" property="salesWeek" /> |
|
|
<result column="sales_week" jdbcType="TIMESTAMP" property="salesWeek" /> |
|
|
<result column="print_barcode" jdbcType="VARCHAR" property="printBarcode" /> |
|
|
<result column="print_barcode" jdbcType="VARCHAR" property="printBarcode" /> |
|
|
<result column="stock_count" jdbcType="INTEGER" property="stockCount" /> |
|
|
<result column="stock_count" jdbcType="INTEGER" property="stockCount" /> |
|
|
<result column="stock_warn_count" jdbcType="INTEGER" property="stockWarnCount" /> |
|
|
<result column="stock_warn_count" jdbcType="INTEGER" property="stockWarnCount" /> |
|
|
|
|
|
<result column="tail_warn" jdbcType="INTEGER" property="tailWarn" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -90,7 +91,7 @@ |
|
|
id, create_by, create_time, del_flag, update_by, update_time, product_id, product_name, |
|
|
id, create_by, create_time, del_flag, update_by, update_time, product_id, product_name, |
|
|
unit, shop_id, category_id, attribute_list, supplier_id, product_sn, barcode, price, |
|
|
unit, shop_id, category_id, attribute_list, supplier_id, product_sn, barcode, price, |
|
|
purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, |
|
|
purchase_price, wholesale_price, product_picture, product_video, product_intro, sales_week, |
|
|
print_barcode, stock_count, stock_warn_count |
|
|
print_barcode, stock_count, stock_warn_count, tail_warn |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="cc.hiver.mall.entity.StockExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="cc.hiver.mall.entity.StockExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -131,7 +132,7 @@ |
|
|
price, purchase_price, wholesale_price, |
|
|
price, purchase_price, wholesale_price, |
|
|
product_picture, product_video, product_intro, |
|
|
product_picture, product_video, product_intro, |
|
|
sales_week, print_barcode, stock_count, |
|
|
sales_week, print_barcode, stock_count, |
|
|
stock_warn_count) |
|
|
stock_warn_count, tail_warn) |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, |
|
|
#{productId,jdbcType=VARCHAR}, #{productName,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, |
|
|
@ -139,8 +140,8 @@ |
|
|
#{supplierId,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR}, #{barcode,jdbcType=VARCHAR}, |
|
|
#{supplierId,jdbcType=VARCHAR}, #{productSn,jdbcType=VARCHAR}, #{barcode,jdbcType=VARCHAR}, |
|
|
#{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL}, #{wholesalePrice,jdbcType=DECIMAL}, |
|
|
#{price,jdbcType=DECIMAL}, #{purchasePrice,jdbcType=DECIMAL}, #{wholesalePrice,jdbcType=DECIMAL}, |
|
|
#{productPicture,jdbcType=VARCHAR}, #{productVideo,jdbcType=VARCHAR}, #{productIntro,jdbcType=VARCHAR}, |
|
|
#{productPicture,jdbcType=VARCHAR}, #{productVideo,jdbcType=VARCHAR}, #{productIntro,jdbcType=VARCHAR}, |
|
|
#{salesWeek,jdbcType=VARCHAR}, #{printBarcode,jdbcType=VARCHAR}, #{stockCount,jdbcType=INTEGER}, |
|
|
#{salesWeek,jdbcType=TIMESTAMP}, #{printBarcode,jdbcType=VARCHAR}, #{stockCount,jdbcType=INTEGER}, |
|
|
#{stockWarnCount,jdbcType=INTEGER}) |
|
|
#{stockWarnCount,jdbcType=INTEGER}, #{tailWarn,jdbcType=INTEGER}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Stock"> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Stock"> |
|
|
insert into t_stock |
|
|
insert into t_stock |
|
|
@ -220,6 +221,9 @@ |
|
|
<if test="stockWarnCount != null"> |
|
|
<if test="stockWarnCount != null"> |
|
|
stock_warn_count, |
|
|
stock_warn_count, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="tailWarn != null"> |
|
|
|
|
|
tail_warn, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -286,7 +290,7 @@ |
|
|
#{productIntro,jdbcType=VARCHAR}, |
|
|
#{productIntro,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="salesWeek != null"> |
|
|
<if test="salesWeek != null"> |
|
|
#{salesWeek,jdbcType=VARCHAR}, |
|
|
#{salesWeek,jdbcType=TIMESTAMP}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="printBarcode != null"> |
|
|
<if test="printBarcode != null"> |
|
|
#{printBarcode,jdbcType=VARCHAR}, |
|
|
#{printBarcode,jdbcType=VARCHAR}, |
|
|
@ -297,6 +301,9 @@ |
|
|
<if test="stockWarnCount != null"> |
|
|
<if test="stockWarnCount != null"> |
|
|
#{stockWarnCount,jdbcType=INTEGER}, |
|
|
#{stockWarnCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="tailWarn != null"> |
|
|
|
|
|
#{tailWarn,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="cc.hiver.mall.entity.StockExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="cc.hiver.mall.entity.StockExample" resultType="java.lang.Long"> |
|
|
@ -372,7 +379,7 @@ |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.salesWeek != null"> |
|
|
<if test="record.salesWeek != null"> |
|
|
sales_week = #{record.salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{record.salesWeek,jdbcType=TIMESTAMP}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.printBarcode != null"> |
|
|
<if test="record.printBarcode != null"> |
|
|
print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, |
|
|
print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, |
|
|
@ -383,6 +390,9 @@ |
|
|
<if test="record.stockWarnCount != null"> |
|
|
<if test="record.stockWarnCount != null"> |
|
|
stock_warn_count = #{record.stockWarnCount,jdbcType=INTEGER}, |
|
|
stock_warn_count = #{record.stockWarnCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.tailWarn != null"> |
|
|
|
|
|
tail_warn = #{record.tailWarn,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -411,10 +421,11 @@ |
|
|
product_picture = #{record.productPicture,jdbcType=VARCHAR}, |
|
|
product_picture = #{record.productPicture,jdbcType=VARCHAR}, |
|
|
product_video = #{record.productVideo,jdbcType=VARCHAR}, |
|
|
product_video = #{record.productVideo,jdbcType=VARCHAR}, |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
sales_week = #{record.salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{record.salesWeek,jdbcType=TIMESTAMP}, |
|
|
print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, |
|
|
print_barcode = #{record.printBarcode,jdbcType=VARCHAR}, |
|
|
stock_count = #{record.stockCount,jdbcType=INTEGER}, |
|
|
stock_count = #{record.stockCount,jdbcType=INTEGER}, |
|
|
stock_warn_count = #{record.stockWarnCount,jdbcType=INTEGER} |
|
|
stock_warn_count = #{record.stockWarnCount,jdbcType=INTEGER}, |
|
|
|
|
|
tail_warn = #{record.tailWarn,jdbcType=INTEGER} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -483,7 +494,7 @@ |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="salesWeek != null"> |
|
|
<if test="salesWeek != null"> |
|
|
sales_week = #{salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{salesWeek,jdbcType=TIMESTAMP}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="printBarcode != null"> |
|
|
<if test="printBarcode != null"> |
|
|
print_barcode = #{printBarcode,jdbcType=VARCHAR}, |
|
|
print_barcode = #{printBarcode,jdbcType=VARCHAR}, |
|
|
@ -494,6 +505,9 @@ |
|
|
<if test="stockWarnCount != null"> |
|
|
<if test="stockWarnCount != null"> |
|
|
stock_warn_count = #{stockWarnCount,jdbcType=INTEGER}, |
|
|
stock_warn_count = #{stockWarnCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="tailWarn != null"> |
|
|
|
|
|
tail_warn = #{tailWarn,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
@ -519,10 +533,11 @@ |
|
|
product_picture = #{productPicture,jdbcType=VARCHAR}, |
|
|
product_picture = #{productPicture,jdbcType=VARCHAR}, |
|
|
product_video = #{productVideo,jdbcType=VARCHAR}, |
|
|
product_video = #{productVideo,jdbcType=VARCHAR}, |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
sales_week = #{salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{salesWeek,jdbcType=TIMESTAMP}, |
|
|
print_barcode = #{printBarcode,jdbcType=VARCHAR}, |
|
|
print_barcode = #{printBarcode,jdbcType=VARCHAR}, |
|
|
stock_count = #{stockCount,jdbcType=INTEGER}, |
|
|
stock_count = #{stockCount,jdbcType=INTEGER}, |
|
|
stock_warn_count = #{stockWarnCount,jdbcType=INTEGER} |
|
|
stock_warn_count = #{stockWarnCount,jdbcType=INTEGER}, |
|
|
|
|
|
tail_warn = #{tailWarn,jdbcType=INTEGER} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |