| | |
| | | BigDecimal markupPartner = getAmount(oi.getMarkupPartner()); |
| | | lackFeePartner = markupPartner.multiply(new BigDecimal(lackNum)); |
| | | |
| | | BigDecimal markupOne = getAmount(oi.getMarkupOne()); |
| | | BigDecimal markupTwo = getAmount(oi.getMarkupTwo()); |
| | | BigDecimal ppPrice = oi.getMarkupOne().add(markupTwo).subtract(oi.getCouponAmount());//1次加价+2次加价-优惠券金额 |
| | | BigDecimal ppPrice = markupOne.add(markupTwo).subtract(oi.getCouponAmount());//1次加价+2次加价-优惠券金额 |
| | | lackFeePlatform = lackFeePlatform.add(ppPrice.multiply(new BigDecimal(lackNum))); |
| | | } else if (Constants.CHECK_TYPE.replace.name().equals(type)) { |
| | | replaceNum = num == null ? 0 : num; |
| | |
| | | |
| | | private void setPartnerIncome(OrderItem oi, OrderItemSettlement ois){ |
| | | //合伙人结算:合伙人加价-理赔-缺货扣款 = 结算金额 |
| | | BigDecimal markupPartner = oi.getMarkupPartner() == null ? new BigDecimal(0) : oi.getMarkupPartner(); |
| | | BigDecimal markupPartner = getAmount(oi.getMarkupPartner()); |
| | | BigDecimal totalAmount = markupPartner.multiply(new BigDecimal(oi.getNum())); |
| | | BigDecimal settlementAmount = totalAmount.subtract(ois.getSalesFeePartner()).subtract(ois.getLackFeePartner());//结算金额 |
| | | if(settlementAmount.doubleValue() < 0){ |
| | |
| | | |
| | | detail.setOrderId(oi.getOrderId()); |
| | | detail.setOrderItemId(itemId); |
| | | detail.setPrice(oi.getMarkupPartner()); |
| | | detail.setPrice(getAmount(oi.getMarkupPartner())); |
| | | detail.setNum(oi.getNum()); |
| | | detail.setTotalAmount(detail.getPrice().multiply(new BigDecimal(detail.getNum()))); |
| | | detail.setCheckFee(new BigDecimal(0)); |
| | |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.dto.request.payment.OrderQueryDTO; |
| | | import com.mzl.flower.dto.response.partner.PartnerOrderDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderCheckListDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderItemListDTO; |
| | | import com.mzl.flower.dto.response.payment.OrderListDTO; |
| | | import com.mzl.flower.dto.response.payment.*; |
| | | import com.mzl.flower.entity.partner.Partner; |
| | | import com.mzl.flower.service.payment.OrderService; |
| | | import io.swagger.annotations.Api; |
| | |
| | | dto.setPartnerId(partner.getId()); |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderCheckList(dto)); |
| | | } |
| | | |
| | | @PostMapping("/check/location/list") |
| | | @ApiOperation(value = "查询订单清单列表-按库位分商品") |
| | | public ResponseEntity<ReturnDataDTO<List<OrderCheckLocationListDTO>>> selectOrderCheckLocationList( |
| | | @RequestBody OrderQueryDTO dto){ |
| | | return returnData(R.SUCCESS.getCode(), orderService.selectOrderCheckLocationList(dto)); |
| | | } |
| | | } |