Bläddra i källkod

增加主键id Long类型序列化注解

loovi 1 år sedan
förälder
incheckning
7b06c0b905

+ 1 - 0
sp-service/level-one-server/src/main/java/com/pj/tb_order/TbOrder.java

@@ -52,6 +52,7 @@ public class TbOrder extends Model<TbOrder> implements Serializable {
 	/**
 	 *  
 	 */
+	@JsonSerialize(using = ToStringSerializer.class)
 	private Long tradeAreaId;	
 
 	/**

+ 1 - 1
sp-service/level-one-server/src/main/java/com/pj/tb_order/TbOrderMapper.xml

@@ -13,7 +13,7 @@
 	
 	<!-- 公共查询sql片段 -->
 	<sql id="select_sql">
-		select trade_no,trade_area_name,buy_user_name,buy_user_type,enterprise_name,total_weight,total_price,
+		select id,trade_area_id,trade_no,trade_area_name,buy_user_name,buy_user_type,enterprise_name,total_weight,total_price,
 			   trade_time, trade_status, real_price,pay_type,should_price,goods_names,apply,confirm,pick,pick_time,
 			   send,send_time,level_two_order_id
 		from tb_order