Authored by LUOXC

refacotr

... ... @@ -1262,25 +1262,36 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
}
private List<Byte> getStatusListByNavStatus(Integer navStatus) {
switch(navStatus) {
case 1: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_BUYER_NOT_PAY.getByteVal());
case 2: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_BUYER_PAYED.getByteVal());
case 3: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_ALLOCATING.getByteVal());
case 4: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_JUDGING.getByteVal());
case 5: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_TO_BE_RECEIVED.getByteVal());
case 6: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_FINISHED.getByteVal());
case 7: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_CANCEL_AFTER_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_CANCEL_SENDGOODS_TIMEOUT.getByteVal(),
Constant.BUYER_ORDER_STATUS_JUDGE_NOT_PASS.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_BEFORE_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_CANCEL_PAY_TIMEOUT.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_AFTER_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_AFTER_SELLER_DELIVERY.getByteVal()
);
case 8: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal());
case 9: return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_JUDGE_PASS.getByteVal());
default:return Lists.newArrayList();
}
switch (navStatus) {
case 1:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_BUYER_NOT_PAY.getByteVal());
case 2:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_BUYER_PAYED.getByteVal());
case 3:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_ALLOCATING.getByteVal());
case 4:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_JUDGING.getByteVal());
case 5:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_TO_BE_RECEIVED.getByteVal());
case 6:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_FINISHED.getByteVal());
case 7:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_CANCEL_AFTER_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_CANCEL_SENDGOODS_TIMEOUT.getByteVal(),
Constant.BUYER_ORDER_STATUS_JUDGE_NOT_PASS.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_BEFORE_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_CANCEL_PAY_TIMEOUT.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_AFTER_PAY.getByteVal(),
Constant.BUYER_ORDER_STATUS_BUYER_CANCEL_AFTER_SELLER_DELIVERY.getByteVal(),
Constant.CS_CANCEL_BEFORE_DEPOT_RECEIVE.getByteVal()
);
case 8:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_PLATFORM_RECEIVE.getByteVal());
case 9:
return Lists.newArrayList(Constant.BUYER_ORDER_STATUS_JUDGE_PASS.getByteVal());
default:
return Lists.newArrayList();
}
}
private void buildParam(BuyerOrderReq req) {
... ...