| | |
| | | for (MallOrderItem item : items) { |
| | | // 减去成本后算收益 |
| | | BigDecimal amount = item.getPrice().subtract(item.getCostPrice()).multiply(BigDecimal.valueOf(item.getCnt())); |
| | | if (amount.compareTo(BigDecimal.ZERO) < 1) { |
| | | continue; |
| | | } |
| | | |
| | | // =======直推返利== start ===== |
| | | // 直接奖励收益 |
| | |
| | | value : 'id', |
| | | children : 'child' |
| | | }, |
| | | iconfont: { |
| | | parent: 'hidden', |
| | | }, |
| | | radio: true, |
| | | clickClose: true, |
| | | tree: { |
| | |
| | | value : 'id', |
| | | children : 'child' |
| | | }, |
| | | iconfont: { |
| | | parent: 'hidden', |
| | | }, |
| | | radio: true, |
| | | clickClose: true, |
| | | tree: { |
| | |
| | | "thumbs": thumbs |
| | | }); |
| | | |
| | | console.log(goodsInfo.categoryId); |
| | | var arr = []; |
| | | arr.push(goodsInfo.categoryId) |
| | | category.setValue(arr); |