Authored by chenchao

change data construct

... ... @@ -6,6 +6,7 @@ import com.yohobuy.ufo.model.order.req.*;
import com.yohobuy.ufo.model.order.resp.BatchChangePriceResp;
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
import com.yohobuy.ufo.model.order.resp.PageResp;
import com.yohobuy.ufo.model.order.resp.SellerOrderListResp;
import com.yohoufo.common.ApiResponse;
import com.yohoufo.common.annotation.IgnoreSession;
import com.yohoufo.common.annotation.IgnoreSignature;
... ... @@ -271,7 +272,7 @@ public class SellerOrderController {
.orderCode(orderCode)
.build();
logger.info("in ufo.order.refresh, req {}", orderRequest);
List<OrderListInfo> orderListInfoRsp = null;
SellerOrderListResp orderListInfoRsp = null;
switch (actor){
case BUY:
... ...
... ... @@ -9,10 +9,7 @@ import com.yohobuy.ufo.model.order.bo.OrderInfo;
import com.yohobuy.ufo.model.order.bo.SoldPrdComputeBo;
import com.yohobuy.ufo.model.order.common.*;
import com.yohobuy.ufo.model.order.req.*;
import com.yohobuy.ufo.model.order.resp.BatchChangePriceResp;
import com.yohobuy.ufo.model.order.resp.OrderCntResp;
import com.yohobuy.ufo.model.order.resp.OrderListInfo;
import com.yohobuy.ufo.model.order.resp.PageResp;
import com.yohobuy.ufo.model.order.resp.*;
import com.yohoufo.common.alarm.EventBusPublisher;
import com.yohoufo.common.alarm.SmsAlarmEvent;
import com.yohoufo.common.exception.GatewayException;
... ... @@ -728,7 +725,7 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
return total;
}
public List<OrderListInfo> refresh(OrderRequest req){
public SellerOrderListResp refresh(OrderRequest req){
int uid = req.getUid();
if(uid <= 0){
log.warn("seller refresh uid illegal , req {}", req);
... ... @@ -768,7 +765,8 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServi
boolean isEntry = userProxyService.isEntryShop(uid);
final SellerType sellerType = isEntry ? SellerType.ENTRY : SellerType.COMMON;
log.info("seller refresh ready 2 buildOrderList req {}", req);
return sellerOrderListService.buildOrderList(psogList,sellerType);
List<OrderListInfo> list = sellerOrderListService.buildOrderList(psogList,sellerType);
return SellerOrderListResp.builder().orderListInfos(list).batchNo(bn).build();
}
return null;
}
... ...