zouxuan 4 éve
szülő
commit
53a9de94f4

+ 10 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/dto/StudentGoodsSellDto.java

@@ -10,10 +10,20 @@ public class StudentGoodsSellDto extends StudentPaymentOrder {
 
     private String userName;
 
+    private Integer authorUser;
+
     private BigDecimal totalAmount;
 
     private BigDecimal marketAmount;
 
+    public Integer getAuthorUser() {
+        return authorUser;
+    }
+
+    public void setAuthorUser(Integer authorUser) {
+        this.authorUser = authorUser;
+    }
+
     public String getUserName() {
         return userName;
     }

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

@@ -95,6 +95,7 @@
 		<result column="total_amount_" property="totalAmount" />
 		<result column="market_amount_" property="marketAmount" />
 		<result column="username_" property="userName" />
+		<result column="author_user_" property="authorUser" />
 	</resultMap>
 	<sql id="queryStudentGoodsOrdersSql">
 		<where>
@@ -113,7 +114,8 @@
 		</where>
 	</sql>
 	<select id="queryStudentGoodsOrders" resultMap="StudentGoodsSellDto">
-		SELECT spo.*,sgs.goods_json_,sgs.total_amount_,sgs.market_amount_,su.username_ FROM student_payment_order spo
+		SELECT spo.*,sgs.goods_json_,sgs.total_amount_,sgs.market_amount_,su.username_,sgs.author_user_
+		FROM student_payment_order spo
 		LEFT JOIN student_goods_sell sgs ON spo.order_no_ = sgs.order_no_
 		LEFT JOIN sys_user su ON sgs.user_id_ = su.id_
 		<include refid="queryStudentGoodsOrdersSql"/>