Showing
5 changed files
with
25 additions
and
2 deletions
@@ -58,7 +58,17 @@ public class BuyerOrder implements Serializable { | @@ -58,7 +58,17 @@ public class BuyerOrder implements Serializable { | ||
58 | private Integer sellerDeliveryDealAgain;//卖家的48小时发货物流 | 58 | private Integer sellerDeliveryDealAgain;//卖家的48小时发货物流 |
59 | private Integer activityType; //活动类型 砍价 18 | 59 | private Integer activityType; //活动类型 砍价 18 |
60 | 60 | ||
61 | - public Integer getId() { | 61 | + private Integer businessClient; //渠道 1代表闲鱼 |
62 | + | ||
63 | + public Integer getBusinessClient() { | ||
64 | + return businessClient; | ||
65 | + } | ||
66 | + | ||
67 | + public void setBusinessClient(Integer businessClient) { | ||
68 | + this.businessClient = businessClient; | ||
69 | + } | ||
70 | + | ||
71 | + public Integer getId() { | ||
62 | return id; | 72 | return id; |
63 | } | 73 | } |
64 | 74 |
@@ -146,4 +146,6 @@ public class BuyerOrderReq extends PageRequestBO{ | @@ -146,4 +146,6 @@ public class BuyerOrderReq extends PageRequestBO{ | ||
146 | private String startTimeStr; | 146 | private String startTimeStr; |
147 | 147 | ||
148 | private String endTimeStr; | 148 | private String endTimeStr; |
149 | + | ||
150 | + private Integer businessClient; //客户端渠道 1:咸鱼 | ||
149 | } | 151 | } |
@@ -22,12 +22,13 @@ | @@ -22,12 +22,13 @@ | ||
22 | <result column="seller_delivery_deal" jdbcType="INTEGER" property="sellerDeliveryDeal" /> | 22 | <result column="seller_delivery_deal" jdbcType="INTEGER" property="sellerDeliveryDeal" /> |
23 | <result column="seller_delivery_deal_again" jdbcType="INTEGER" property="sellerDeliveryDealAgain" /> | 23 | <result column="seller_delivery_deal_again" jdbcType="INTEGER" property="sellerDeliveryDealAgain" /> |
24 | <result column="activity_type" jdbcType="INTEGER" property="activityType" /> | 24 | <result column="activity_type" jdbcType="INTEGER" property="activityType" /> |
25 | + <result column="business_client" jdbcType="INTEGER" property="businessClient" /> | ||
25 | </resultMap> | 26 | </resultMap> |
26 | 27 | ||
27 | <sql id="Base_Column_List"> | 28 | <sql id="Base_Column_List"> |
28 | id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, | 29 | id, uid, order_code, seller_uid, client_type, payment, payment_type, is_cancel, |
29 | amount, ship_fee, status, create_time, update_time, channel_no, attributes ,platform_delivery_status, | 30 | amount, ship_fee, status, create_time, update_time, channel_no, attributes ,platform_delivery_status, |
30 | - seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type | 31 | + seller_delivery_status,seller_delivery_deal,seller_delivery_deal_again,activity_type,business_client |
31 | </sql> | 32 | </sql> |
32 | 33 | ||
33 | <select id="selectByOrderCode" resultMap="BaseResultMap"> | 34 | <select id="selectByOrderCode" resultMap="BaseResultMap"> |
@@ -226,6 +227,9 @@ | @@ -226,6 +227,9 @@ | ||
226 | and a.attributes != 9 | 227 | and a.attributes != 9 |
227 | and c.attributes!=9 | 228 | and c.attributes!=9 |
228 | </if> | 229 | </if> |
230 | + <if test="buyerOrderReq.business_client != null"> | ||
231 | + and a.business_client = #{buyerOrderReq.businessClient} | ||
232 | + </if> | ||
229 | </sql> | 233 | </sql> |
230 | 234 | ||
231 | <select id="selectTotalByCondition" resultType="java.lang.Integer" parameterType="com.yoho.order.model.BuyerOrderReq"> | 235 | <select id="selectTotalByCondition" resultType="java.lang.Integer" parameterType="com.yoho.order.model.BuyerOrderReq"> |
@@ -4442,6 +4442,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -4442,6 +4442,7 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
4442 | resp.setChannel(Objects.equals(item.getAttributes(), 2) ? 2 : 1); //1,线上订单; 2,门店订单 | 4442 | resp.setChannel(Objects.equals(item.getAttributes(), 2) ? 2 : 1); //1,线上订单; 2,门店订单 |
4443 | resp.setProductNum(1);//目前固定为1 | 4443 | resp.setProductNum(1);//目前固定为1 |
4444 | resp.setActivityType(item.getActivityType()); | 4444 | resp.setActivityType(item.getActivityType()); |
4445 | + resp.setBusinessClient(item.getBusinessClient()); | ||
4445 | if(null==sellerGoodsMap.get(skup)){ | 4446 | if(null==sellerGoodsMap.get(skup)){ |
4446 | LOGGER.warn("convertToResp not correct data,sellerGoodsMap get sku p {} is empty ,buyer order {}",skup,item); | 4447 | LOGGER.warn("convertToResp not correct data,sellerGoodsMap get sku p {} is empty ,buyer order {}",skup,item); |
4447 | }else{ | 4448 | }else{ |
@@ -4675,6 +4676,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | @@ -4675,6 +4676,8 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon | ||
4675 | req.setAttributesNotList(Arrays.asList(2)); //排除掉门店自提 | 4676 | req.setAttributesNotList(Arrays.asList(2)); //排除掉门店自提 |
4676 | } else if (req.getChannel().equals("2")) { | 4677 | } else if (req.getChannel().equals("2")) { |
4677 | req.setAttributesList(Arrays.asList(2)); | 4678 | req.setAttributesList(Arrays.asList(2)); |
4679 | + } else if (req.getChannel().equals("3")) { // 查询闲鱼订单 | ||
4680 | + req.setBusinessClient(1); | ||
4678 | } | 4681 | } |
4679 | } | 4682 | } |
4680 | 4683 |
@@ -100,6 +100,7 @@ | @@ -100,6 +100,7 @@ | ||
100 | <option value="">全部</option> | 100 | <option value="">全部</option> |
101 | <option value="1">线上发货</option> | 101 | <option value="1">线上发货</option> |
102 | <option value="2">门店自提</option> | 102 | <option value="2">门店自提</option> |
103 | + <option value="3">闲鱼</option> | ||
103 | </select> | 104 | </select> |
104 | 105 | ||
105 | <br><br> | 106 | <br><br> |
@@ -273,6 +274,9 @@ function getOrderList(){ | @@ -273,6 +274,9 @@ function getOrderList(){ | ||
273 | if (rowData.activityType == 18) { | 274 | if (rowData.activityType == 18) { |
274 | return "[砍价订单]" + rowData.orderCode; | 275 | return "[砍价订单]" + rowData.orderCode; |
275 | } | 276 | } |
277 | + if (rowData.businessClient == 1) { | ||
278 | + return "[闲鱼]" + rowData.orderCode; | ||
279 | + } | ||
276 | 280 | ||
277 | return rowData.orderCode; | 281 | return rowData.orderCode; |
278 | } | 282 | } |
-
Please register or login to post a comment