|
|
@ -26,6 +26,7 @@ |
|
|
<result column="sales_week" jdbcType="VARCHAR" property="salesWeek" /> |
|
|
<result column="sales_week" jdbcType="VARCHAR" 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" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -89,7 +90,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 |
|
|
print_barcode, stock_count, stock_warn_count |
|
|
</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 |
|
|
@ -129,8 +130,8 @@ |
|
|
supplier_id, product_sn, barcode, |
|
|
supplier_id, product_sn, barcode, |
|
|
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) |
|
|
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}, |
|
|
@ -138,8 +139,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=VARCHAR}, #{printBarcode,jdbcType=VARCHAR}, #{stockCount,jdbcType=INTEGER}, |
|
|
) |
|
|
#{stockWarnCount,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 |
|
|
@ -216,6 +217,9 @@ |
|
|
<if test="stockCount != null"> |
|
|
<if test="stockCount != null"> |
|
|
stock_count, |
|
|
stock_count, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="stockWarnCount != null"> |
|
|
|
|
|
stock_warn_count, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -290,6 +294,9 @@ |
|
|
<if test="stockCount != null"> |
|
|
<if test="stockCount != null"> |
|
|
#{stockCount,jdbcType=INTEGER}, |
|
|
#{stockCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="stockWarnCount != null"> |
|
|
|
|
|
#{stockWarnCount,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"> |
|
|
@ -373,6 +380,9 @@ |
|
|
<if test="record.stockCount != null"> |
|
|
<if test="record.stockCount != null"> |
|
|
stock_count = #{record.stockCount,jdbcType=INTEGER}, |
|
|
stock_count = #{record.stockCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.stockWarnCount != null"> |
|
|
|
|
|
stock_warn_count = #{record.stockWarnCount,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" /> |
|
|
@ -403,7 +413,8 @@ |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{record.productIntro,jdbcType=VARCHAR}, |
|
|
sales_week = #{record.salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{record.salesWeek,jdbcType=VARCHAR}, |
|
|
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} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -480,6 +491,9 @@ |
|
|
<if test="stockCount != null"> |
|
|
<if test="stockCount != null"> |
|
|
stock_count = #{stockCount,jdbcType=INTEGER}, |
|
|
stock_count = #{stockCount,jdbcType=INTEGER}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="stockWarnCount != null"> |
|
|
|
|
|
stock_warn_count = #{stockWarnCount,jdbcType=INTEGER}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
@ -507,7 +521,8 @@ |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
product_intro = #{productIntro,jdbcType=VARCHAR}, |
|
|
sales_week = #{salesWeek,jdbcType=VARCHAR}, |
|
|
sales_week = #{salesWeek,jdbcType=VARCHAR}, |
|
|
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} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |