上架编辑接口 问题修复
This commit is contained in:
parent
2be3c62d62
commit
06378c983b
|
|
@ -180,6 +180,9 @@ public class GoodsServiceImpl implements GoodsService {
|
||||||
if (goodsStandard.getExtMoney() == null) {
|
if (goodsStandard.getExtMoney() == null) {
|
||||||
goodsStandard.setExtMoney(BigDecimal.ZERO);
|
goodsStandard.setExtMoney(BigDecimal.ZERO);
|
||||||
}
|
}
|
||||||
|
if (goodsStandard.getGroupPrice() == null) {
|
||||||
|
goodsStandard.setGroupPrice(BigDecimal.ZERO);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// 批量删除各组件
|
// 批量删除各组件
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
UPDATE goods
|
UPDATE goods
|
||||||
<set>
|
<set>
|
||||||
<if test="goodsName != null and goodsName != ''">goods_name = #{goodsName},</if>
|
<if test="goodsName != null and goodsName != ''">goods_name = #{goodsName},</if>
|
||||||
|
<if test="goodsDesc != null and goodsDesc != ''">goods_desc = #{goodsDesc},</if>
|
||||||
<if test="goodsSort != null and goodsSort != ''">goods_sort = #{goodsSort},</if>
|
<if test="goodsSort != null and goodsSort != ''">goods_sort = #{goodsSort},</if>
|
||||||
<if test="deptGoodsCategoryId != null and deptGoodsCategoryId != ''">dept_goods_category_id = #{deptGoodsCategoryId},</if>
|
<if test="deptGoodsCategoryId != null and deptGoodsCategoryId != ''">dept_goods_category_id = #{deptGoodsCategoryId},</if>
|
||||||
<if test="goodsImgUrl != null and goodsImgUrl != ''">goods_img_url = #{goodsImgUrl},</if>
|
<if test="goodsImgUrl != null and goodsImgUrl != ''">goods_img_url = #{goodsImgUrl},</if>
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,8 @@
|
||||||
<if test="extMoney != null">ext_money = #{extMoney},</if>
|
<if test="extMoney != null">ext_money = #{extMoney},</if>
|
||||||
<if test="discountPrice != null">discount_price = #{discountPrice},</if>
|
<if test="discountPrice != null">discount_price = #{discountPrice},</if>
|
||||||
<if test="groupPrice != null">group_price = #{groupPrice},</if>
|
<if test="groupPrice != null">group_price = #{groupPrice},</if>
|
||||||
<if test="goodsUnit != null and goodsUnit != ''">goods_unit = #{goodsUnit},</if>
|
<if test="goodsUnit != null">goods_unit = #{goodsUnit},</if>
|
||||||
|
<if test="goodsNum != null">goods_num = #{goodsNum},</if>
|
||||||
<if test="status != null">`status` = #{status},</if>
|
<if test="status != null">`status` = #{status},</if>
|
||||||
<if test="remark != null">remark = #{remark},</if>
|
<if test="remark != null">remark = #{remark},</if>
|
||||||
update_time = sysdate()
|
update_time = sysdate()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue