Authored by chenchao

optimized

... ... @@ -123,4 +123,12 @@ public class SellerController {
return new ApiResponse.ApiResponseBuilder().data(data).code(200).message(msg).build();
}
@RequestMapping(params = "method=ufo.order.isSurperEntrySeller")
@ResponseBody
public ApiResponse isSuperEntrySeller(@RequestParam("uid") int uid) {
boolean isSuper = sellerService.isSuperEntrySeller(uid);
return new ApiResponse.ApiResponseBuilder().code(200).data(isSuper).message("刷新成功").build();
}
}
... ...
... ... @@ -455,16 +455,18 @@ public class SellerOrderController {
return new ApiResponse.ApiResponseBuilder().code(200).data(orderListInfoRsp).message("刷新成功").build();
}
@RequestMapping(params = "method=ufo.order.isSurperEntrySeller")
@ResponseBody
public ApiResponse isSuperEntrySeller(@RequestParam("uid") int uid) {
boolean isSuper = sellerService.isSuperEntrySeller(uid);
return new ApiResponse.ApiResponseBuilder().code(200).data(isSuper).message("刷新成功").build();
}
/**
* @version 6.8.3
* @param type
* @param uid
* @param skupList
* @param page
* @param limit
* @return
*/
@RequestMapping(params = "method=ufo.seller.orderList")
@ResponseBody
@Deprecated
public ApiResponse getOrderList(@RequestParam("type") int type,
@RequestParam("uid") int uid,
@RequestParam(name = "skupList")String skupList,
... ... @@ -514,7 +516,6 @@ public class SellerOrderController {
* @param price
* @param address_id
* @return
* @throws GatewayException
*/
@RequestMapping(params = "method=ufo.seller.publishImperfectPrd")
@ResponseBody
... ...
... ... @@ -775,12 +775,13 @@ public class SellerOrderService implements IOrderListService, IOrderDetailServic
}
List<SellerOrderGoods> psogList = null;
//TODO refresh change price case of not entry seller
psogList = skupListService.getRefreshOfNESCP(pso);
psogList = skupListService.getSingleChangePriceGoods(pso);
int skup = pso.getSkup();
SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(skup);
Long bn = psog.getBatchNo();
if (CollectionUtils.isEmpty(psogList)) {
psogList = sellerOrderGoodsMapper.selectByUidBNStatusGBBPSList(uid, bn, statusList);
psogList = new ArrayList<>(1);
psogList.add(psog);
}
if (CollectionUtils.isEmpty(psogList)){
... ...
... ... @@ -590,8 +590,12 @@ public class SkupListService {
return orderListInfo;
}
public List<SellerOrderGoods> getRefreshOfNESCP(SellerOrder pso){
/**
* 单个商品变价相关商品
* @param pso
* @return
*/
public List<SellerOrderGoods> getSingleChangePriceGoods(SellerOrder pso){
//
long orderCode = pso.getOrderCode();
//变价产生的新订单号
... ...