Browse Source

2024年11月28日09:05:17

纪新园 1 year ago
parent
commit
3c02ea9922

+ 6 - 4
blade-service/blade-sales-part/src/main/java/org/springblade/salesPart/ship/service/impl/ShipServiceImpl.java

@@ -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) {