...
|
...
|
@@ -485,8 +485,9 @@ public class SkupListService { |
|
|
* @return
|
|
|
*/
|
|
|
public OrderListInfo getOrderListInfo(SellerGoodsRequest req){
|
|
|
SkupListType skupListType = SkupListType.ENTIRELY_NEW;
|
|
|
List<Integer> skupTypeCodes = skupListType.getSkupTypeCodes(true);
|
|
|
SkupListType skupListType = req.getSkupListType();
|
|
|
boolean isEntryNecessary = SkupListType.QUICK_DELIVER.equals(skupListType) ? false : true;
|
|
|
List<Integer> skupTypeCodes = skupListType.getSkupTypeCodes(isEntryNecessary);
|
|
|
SkupStatus ss = SkupStatus.CAN_SELL;
|
|
|
Integer status = ss.getCode();
|
|
|
Integer uid = req.getUid();
|
...
|
...
|
@@ -495,13 +496,13 @@ public class SkupListService { |
|
|
sogCondition.setProductId(productId=req.getProductId());
|
|
|
sogCondition.setUid(uid);
|
|
|
sogCondition.setStatus(status);
|
|
|
boolean isEntry = true;
|
|
|
List<SellerOrderGoods> sogList = sellerOrderGoodsViewMapper.selectEntryListByUidStatusGBSku(sogCondition, skupTypeCodes , 0, 1, isEntry);
|
|
|
|
|
|
List<SellerOrderGoods> sogList = sellerOrderGoodsViewMapper.selectEntryListByUidStatusGBSku(sogCondition, skupTypeCodes , 0, 1, isEntryNecessary);
|
|
|
if (CollectionUtils.isEmpty(sogList)){
|
|
|
logger.warn("in getOrderListInfo soglist is empty req {}", req);
|
|
|
return null;
|
|
|
}
|
|
|
return buildEntryOrderListInfo(sogList.get(0), ss, skupTypeCodes, isEntry);
|
|
|
return buildEntryOrderListInfo(sogList.get(0), ss, skupTypeCodes, isEntryNecessary);
|
|
|
}
|
|
|
|
|
|
OrderListInfo buildEntryOrderListInfo(SellerOrderGoods sellerOrderGoods, SkupStatus skupStatus,
|
...
|
...
|
|