|
@@ -5359,7 +5359,7 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
TopCostTpItemVo topCostTpItem = tpItems.stream().findFirst().get();
|
|
|
BigDecimal divide = new BigDecimal("0.00");//成本
|
|
|
BigDecimal bigDecimal = new BigDecimal("100");
|
|
|
- if (topCostTpItem.getDockStatus() == 1) {
|
|
|
+ if (ObjectUtil.isNotNull(topCostTpItem.getDockStatus()) && topCostTpItem.getDockStatus() == 1) {
|
|
|
//启用成本扣除项
|
|
|
switch (topCostTpItem.getDockType()) {
|
|
|
case 1://百分比
|
|
@@ -5785,6 +5785,12 @@ public class TopOldOrderServiceImpl extends ServiceImpl<TopOldOrderMapper, TopOl
|
|
|
String businessName = orderGoodsService.getBusinessById(orderGoods.getOrderGoodsId());
|
|
|
//业务层次过滤
|
|
|
List<TopCostTpItemVo> items = itemList.stream().filter(item -> {
|
|
|
+ if (ObjectUtils.isNull(item.getDockStatus())){
|
|
|
+ item.setDockStatus(0);
|
|
|
+ }
|
|
|
+ if (ObjectUtils.isNull(item.getDockType())){
|
|
|
+ item.setDockType(0);
|
|
|
+ }
|
|
|
//教育类型不限
|
|
|
if (item.getEducationTypeId() == -1) {
|
|
|
return true;
|