|
|
@@ -137,11 +137,25 @@ public class TbIndentController {
|
|
|
return Result.error("商家配送不允许转单!");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
if (!"3".equals(indent.getIndentState()) && !"4".equals(indent.getIndentState())) {
|
|
|
throw new SqxException("订单状态发生变更,请刷新后重试!");
|
|
|
}
|
|
|
|
|
|
+ UserEntity indentuserEntity = userService.selectUserById(indent.getRiderUserId());
|
|
|
+ if(indentuserEntity == null){
|
|
|
+ throw new SqxException("订单骑手已失效,无法发起转单!");
|
|
|
+ }
|
|
|
+
|
|
|
UserEntity userEntity = userService.selectUserById(riderUserId);
|
|
|
+ if(userEntity == null){
|
|
|
+ throw new SqxException("被转单骑手已失效,无法发起转单!");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(userEntity.getRiderStationId().intValue() != indentuserEntity.getRiderStationId().intValue()){
|
|
|
+ throw new SqxException("无法选择其他站点骑手进行转单操作!");
|
|
|
+ }
|
|
|
+
|
|
|
CommonInfo one1 = commonInfoService.findOne(273);
|
|
|
Double cashDeposit = Double.parseDouble(one1.getValue());
|
|
|
if(userEntity.getCashDeposit().doubleValue()<cashDeposit){
|