Sfoglia il codice sorgente

学生端商品列表修改

zouxuan 5 anni fa
parent
commit
ca44192df1

+ 12 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/StudentPaymentOrderDto.java

@@ -2,6 +2,8 @@ package com.ym.mec.biz.dal.dto;
 
 import com.ym.mec.biz.dal.entity.StudentPaymentOrder;
 
+import java.math.BigDecimal;
+
 public class StudentPaymentOrderDto extends StudentPaymentOrder {
 
     private String image;
@@ -12,6 +14,16 @@ public class StudentPaymentOrderDto extends StudentPaymentOrder {
 
     private Integer autoAffirmReceiveTime;
 
+    private BigDecimal goodsAmount = BigDecimal.ZERO;
+
+    public BigDecimal getGoodsAmount() {
+        return goodsAmount;
+    }
+
+    public void setGoodsAmount(BigDecimal goodsAmount) {
+        this.goodsAmount = goodsAmount;
+    }
+
     public Integer getAutoAffirmReceiveTime() {
         return autoAffirmReceiveTime;
     }

+ 3 - 1
mec-biz/src/main/resources/config/mybatis/StudentGoodsSellMapper.xml

@@ -151,6 +151,7 @@
 		<result column="goods_image_" property="image" />
 		<result column="goods_name_" property="goodsName" />
 		<result column="goods_num_" property="goodsNum" />
+		<result column="goods_amount_" property="goodsAmount" />
 	</resultMap>
 	<sql id="queryStudentPaymentOrdersSql">
 		<where>
@@ -166,12 +167,13 @@
 		</where>
 	</sql>
     <select id="queryStudentPaymentOrders" resultMap="StudentPaymentOrderDto">
-		SELECT spo.*,g.image_ goods_image_,g.name_ goods_name_,so.num_ goods_num_
+		SELECT spo.*,g.image_ goods_image_,g.name_ goods_name_,so.num_ goods_num_,so.expect_amount_ goods_amount_
 		FROM student_payment_order spo
 		LEFT JOIN sell_order so ON so.order_no_ = spo.order_no_
 		LEFT JOIN goods g ON g.id_ = so.goods_id_
 		<include refid="queryStudentPaymentOrdersSql"/>
 		ORDER BY spo.pay_time_ DESC
+		<include refid="global.limit"/>
 	</select>
 	<select id="countStudentPaymentOrders" resultType="java.lang.Integer">
 		SELECT COUNT(DISTINCT spo.id_)