|
|
@@ -2306,14 +2306,16 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
|
|
|
throw new RuntimeException("请选择自有库");
|
|
|
}
|
|
|
}else{
|
|
|
- if ("1".equals(ship.getWhetherFinancing())){
|
|
|
+ if ("0".equals(ship.getWhetherFinancing())){
|
|
|
throw new RuntimeException("请选择融资库");
|
|
|
- }else{
|
|
|
+ }/*else{
|
|
|
throw new RuntimeException("请选择自有库");
|
|
|
- }
|
|
|
+ }*/
|
|
|
}
|
|
|
}else{
|
|
|
- throw new RuntimeException("请选择自有库");
|
|
|
+ if ("1".equals(ship.getWhetherFinancing())){
|
|
|
+ throw new RuntimeException("请选择自有库");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (ship.getId() == null) {
|