|
|
|
@ -526,7 +526,7 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
break;
|
|
|
|
|
case Constant.ORDER_STATUS_AUDITED:
|
|
|
|
|
filterOrderRequest.setStatuses(Arrays.asList(7));
|
|
|
|
|
filterOrderRequest.setDealStatuses(Arrays.asList(3,4));
|
|
|
|
|
filterOrderRequest.setDealStatuses(Arrays.asList(3, 4));
|
|
|
|
|
break;
|
|
|
|
|
case Constant.ORDER_STATUS_SUP_SEARCH:
|
|
|
|
|
filterOrderRequest.setStatuses(Arrays.asList(5, 7));
|
|
|
|
@ -537,6 +537,36 @@ public class IoOrderServiceImpl implements IoOrderService {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<String> setActions(FilterOrderRequest filterOrderRequest) {
|
|
|
|
|
List<BasicBussinessTypeEntity> bussinessTypeEntities;
|
|
|
|
|
List<String> actions = null;
|
|
|
|
|
if (filterOrderRequest.getActionType() == null)
|
|
|
|
|
return null;
|
|
|
|
|
switch (filterOrderRequest.getActionType()) {
|
|
|
|
|
|
|
|
|
|
case Constant.ORDER_ACTION_NOR_DETAIL:
|
|
|
|
|
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
|
|
|
|
|
.eq("actionType", 1).eq("inStock", true));
|
|
|
|
|
actions = bussinessTypeEntities.stream().map(BasicBussinessTypeEntity::getAction).collect(Collectors.toList());
|
|
|
|
|
filterOrderRequest.setActions(actions);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
case Constant.ORDER_ACTION_PRE_DETAIL:
|
|
|
|
|
bussinessTypeEntities = basicBussinessTypeDao.selectList(new QueryWrapper<BasicBussinessTypeEntity>()
|
|
|
|
|
.eq("actionType", 3).eq("inStock", true));
|
|
|
|
|
actions = bussinessTypeEntities.stream().map(BasicBussinessTypeEntity::getAction).collect(Collectors.toList());
|
|
|
|
|
filterOrderRequest.setActions(actions);
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
default:
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
;
|
|
|
|
|
return actions;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public List<IoOrderEntity> filterOrderTrace(String billNo) {
|
|
|
|
|
IoOrderEntity order = orderDao.selectOne(new QueryWrapper<IoOrderEntity>().eq("billNo", billNo));
|
|
|
|
|