| | |
| | | @DictTrans(target = "salesTypeStr", codeType = "after_sale_type") |
| | | private String salesType; |
| | | private String salesTypeStr; |
| | | |
| | | @ApiModelProperty(value = "真实成交价格/每扎") |
| | | private BigDecimal realPrice; |
| | | |
| | | @ApiModelProperty(value = "真实成交总价格") |
| | | private BigDecimal realTotal; |
| | | } |
| | |
| | | rr.setTotal(oi.getTotal()); |
| | | rr.setSupplierPrice(oi.getSupplierPrice()); |
| | | rr.setMarkupPartner(oi.getMarkupPartner()); |
| | | rr.setRealPrice(oi.getRealPrice()); |
| | | rr.setRealTotal(oi.getRealTotal()); |
| | | |
| | | Long stationId = oi.getStationId(); |
| | | if(stationId != null) { |
| | |
| | | BigDecimal totalFee = feeSupplier.add(feePartner).add(feePlatform).add(feePlatformPack) |
| | | .add(feePlatformCheck).add(feePlatformTransport); |
| | | |
| | | BigDecimal st = oi.getPrice().multiply(new BigDecimal(sl.getNum()));//申请售后的花的金额 |
| | | BigDecimal st = oi.getRealPrice().multiply(new BigDecimal(sl.getNum()));//申请售后的花的金额,使用券后的单价 |
| | | if(totalFee.doubleValue() > st.doubleValue()){ |
| | | throw new ValidationException("退款金额不能大于商品申请数量的售价"); |
| | | } |
| | |
| | | } |
| | | } |
| | | preFee = preFee.add(totalFee); |
| | | if(preFee.doubleValue() > oi.getTotal().doubleValue()){ |
| | | if(preFee.doubleValue() > oi.getRealTotal().doubleValue()){//使用券后的总价 |
| | | throw new ValidationException("退款总金额不能大于商品总价"); |
| | | } |
| | | |
| | |
| | | , oi.flower_level, oi.flower_category, o.customer, o.customer_tel, o.customer_province, o.customer_city |
| | | , o.customer_region, o.customer_address, oi.num flowerNum, oi.supplier_name, oi.price, oi.total |
| | | , o.order_no, si.sales_no, si.title, si.num, si.reason, si.total_fee, si.status, si.create_time |
| | | , si.remarks, oi.supplier_price, oi.markup_partner, si.audit_time,si.sales_type |
| | | , si.remarks, oi.supplier_price, oi.markup_partner, si.audit_time,si.sales_type, oi.real_price, oi.real_total |
| | | FROM t_order_item_sales si |
| | | join t_order_item oi on oi.id = si.order_item_id |
| | | join t_order o on si.order_id = o.id |