Merge remote-tracking branch 'origin/master-prod-new' into master-prod-new
| | |
| | | /** 平台来源 因为是his助手取消订单的话就要自动确认退款单 必填*/ |
| | | private Integer platformSource; |
| | | |
| | | /** 取消订单备注 */ |
| | | private String remarks; |
| | | |
| | | /**his助手*/ |
| | | public static final Integer HIS_ASSISTANT = 0; |
| | | /**his后台*/ |
New file |
| | |
| | | package com.hz.his.dto.order; |
| | | |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 订单计算应付金额 |
| | | * @USER: fhx |
| | | * @DATE: 2023/6/13 |
| | | **/ |
| | | @Data |
| | | public class OrderCountShouldTotalDto { |
| | | |
| | | //门店id |
| | | private String shopId; |
| | | //用户优惠券 |
| | | private String couponNumberId; |
| | | //订单应付金额 |
| | | private BigDecimal shouldTotal; |
| | | //商品item信息 |
| | | private List<OrderCountShouldTotalItemDto> itemDtoList; |
| | | } |
New file |
| | |
| | | package com.hz.his.dto.order; |
| | | |
| | | import com.gitee.sunchenbin.mybatis.actable.annotation.Column; |
| | | import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant; |
| | | import lombok.Data; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | | /** |
| | | * 订单计算应付金额item信息 |
| | | * @USER: fhx |
| | | * @DATE: 2023/6/13 |
| | | **/ |
| | | @Data |
| | | public class OrderCountShouldTotalItemDto { |
| | | //商品类型 |
| | | private String type; |
| | | //商品id |
| | | private String commonId; |
| | | //购买数量 |
| | | private Integer buyNum; |
| | | //订单折扣 |
| | | private BigDecimal discount = BigDecimal.ZERO; |
| | | } |
| | |
| | | */ |
| | | @PostMapping(value = "/coupon/order/send/coupon") |
| | | Result orderSendCoupon(@RequestBody OrderSendCouponDto couponDto); |
| | | |
| | | /** |
| | | * 开放平台-检查优惠券是否可用 - 开单结账同时执行使用 |
| | | */ |
| | | @PostMapping(value = "/coupon/check/coupon/to/orderAndPay") |
| | | Result checkCouponToOrderAndPay(@RequestBody CouponDto couponDto); |
| | | } |
| | |
| | | @PostMapping(value = "/order/refund/cancel") |
| | | Result refundCancel(@RequestBody RefundCancelVo refundCancelVo); |
| | | |
| | | |
| | | /** |
| | | * 计算订单应付金额 |
| | | */ |
| | | @PostMapping(value = "/order/countOrderShouldTotal") |
| | | Result countOrderShouldTotal(@RequestBody OrderCountShouldTotalDto dto); |
| | | |
| | | |
| | | } |