Helius
2022-05-28 75daf06e97c38964971624aa386f2f852f950893
fix goods add category
3 files modified
10 ■■■■■ changed files
src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java 3 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html 3 ●●●●● patch | view | raw | blame | history
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html 4 ●●● patch | view | raw | blame | history
src/main/java/cc/mrbird/febs/mall/service/impl/MemberProfitServiceImpl.java
@@ -118,6 +118,9 @@
        for (MallOrderItem item : items) {
            // 减去成本后算收益
            BigDecimal amount = item.getPrice().subtract(item.getCostPrice()).multiply(BigDecimal.valueOf(item.getCnt()));
            if (amount.compareTo(BigDecimal.ZERO) < 1) {
                continue;
            }
            // =======直推返利== start =====
            // 直接奖励收益
src/main/resources/templates/febs/views/modules/goods/goodsAddNew.html
@@ -294,6 +294,9 @@
                value : 'id',
                children : 'child'
            },
            iconfont: {
                parent: 'hidden',
            },
            radio: true,
            clickClose: true,
            tree: {
src/main/resources/templates/febs/views/modules/goods/goodsUpdateNew.html
@@ -322,6 +322,9 @@
                value : 'id',
                children : 'child'
            },
            iconfont: {
                parent: 'hidden',
            },
            radio: true,
            clickClose: true,
            tree: {
@@ -552,7 +555,6 @@
                "thumbs": thumbs
            });
            console.log(goodsInfo.categoryId);
            var arr = [];
            arr.push(goodsInfo.categoryId)
            category.setValue(arr);