Kaynağa Gözat

add 已退费

he2802 3 yıl önce
ebeveyn
işleme
ff5b4bda34

+ 2 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/order/vo/OrderInputVo.java

@@ -98,4 +98,6 @@ public class OrderInputVo {
 	private String orderFrom;
 	@ApiModelProperty("订单商品ID")
 	private Long orderGoodsId;
+	@ApiModelProperty("已退费金额")
+	private BigDecimal goodsRefund;
 }

+ 2 - 0
zhongzheng-system/src/main/resources/mapper/modules/order/OrderInputMapper.xml

@@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="userId" column="user_id"/>
         <result property="orderFrom" column="order_from"/>
         <result property="orderGoodsId" column="order_goods_id"/>
+        <result property="goodsRefund" column="goods_refund"/>
     </resultMap>
 
     <select id="selectList" parameterType="com.zhongzheng.modules.order.bo.OrderInputQueryBo" resultMap="OrderInputVoResult">
@@ -52,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         any_value ( cet.education_name ) education_name,
         any_value ( cpt.project_name ) project_name,
         any_value ( cb.business_name ) business_name,
+        (select sum(og.goods_received) from order_goods og LEFT JOIN `order` o on o.order_sn = og.order_sn  where o.input_order_sn = u.input_order_sn and og.refund_status = 2) goods_refund,
         sum( og.goods_received ) goods_received,
         sum(u.order_price ) order_price,
         sum(u.pay_price) pay_price,