商品新增 追加提成额字段

This commit is contained in:
donqi 2023-02-01 20:47:31 +08:00
parent 0dbeb14265
commit bbfc76472b
2 changed files with 7 additions and 2 deletions

View File

@ -23,6 +23,9 @@ public class GoodsStandard extends BaseEntity {
private BigDecimal goodsPrice;
@Excel(name = "追加提成额")
private BigDecimal extMoney;
@Excel(name = "优惠价")
private BigDecimal discountPrice;

View File

@ -8,6 +8,7 @@
<result property="goodsId" column="goods_id"/>
<result property="deptGoodsCategoryId" column="dept_goods_category_id"/>
<result property="goodsPrice" column="goods_price"/>
<result property="extMoney" column="ext_money"/>
<result property="discountPrice" column="discount_price"/>
<result property="groupPrice" column="group_price"/>
<result property="goodsNum" column="goods_num"/>
@ -28,6 +29,7 @@
goods_id,
dept_goods_category_id,
goods_price,
ext_money,
discount_price,
group_price,
goods_num,
@ -79,12 +81,12 @@
<insert id="batchInsert" parameterType="list">
INSERT INTO goods_standard (
goods_standard_name, goods_id, dept_goods_category_id, goods_price, discount_price, group_price, goods_unit, goods_num,
goods_standard_name, goods_id, dept_goods_category_id, goods_price, ext_money, discount_price, group_price, goods_unit, goods_num,
sale_num, status, remark, create_by, create_time )
VALUES
<foreach collection="goodsStandards" separator="," item="goodsStandard">
(
#{goodsStandard.goodsStandardName}, #{goodsStandard.goodsId}, #{goodsStandard.deptGoodsCategoryId}, #{goodsStandard.goodsPrice}, #{goodsStandard.discountPrice},
#{goodsStandard.goodsStandardName}, #{goodsStandard.goodsId}, #{goodsStandard.deptGoodsCategoryId}, #{goodsStandard.goodsPrice}, #{goodsStandard.extMoney}, #{goodsStandard.discountPrice},
#{goodsStandard.groupPrice}, #{goodsStandard.goodsUnit}, #{goodsStandard.goodsNum}, 0, #{goodsStandard.status}, #{goodsStandard.remark}, #{goodsStandard.createBy}, sysdate()
)
</foreach>