Authored by chenchao

optimized query, reduce IO

... ... @@ -77,13 +77,13 @@ public class BuyerOrderDetailService extends AbsOrderDetailService implements IO
resetDynamicProporties(orderDetailInfo,orderRequest.getAppVersion());
return orderDetailInfo;
}
orderDetailInfo = super.getOrderDetail(orderRequest);
BuildNode buildNode = super.prepareBuild(orderRequest);
orderDetailInfo = super.buildOrderDetail(buildNode);
if(Objects.nonNull(orderDetailInfo)){
Integer oac;
if ((oac=orderDetailInfo.getAttributes()) == OrderAttributes.DEPOSITE.getCode()){
BuyerOrderGoods pbog = buyerOrderGoodsMapper.selectOnlyByOrderCode(orderCode);
SellerOrderGoods psog = sellerOrderGoodsMapper.selectByPrimaryKey(pbog.getSkup());
SellerOrderGoods psog = buildNode.sellerOrderGoods;
SkupType skupType = SkupType.getSkupType(psog.getAttributes());
SkupType targetSkupType = SellerGoodsHelper.getTargetSkupType4DepositOrder(oac, skupType);
String depositTips = OrderDetailDescHelper.getDepositTipsOfOrderDetail(targetSkupType);
... ...