瀏覽代碼

更改入库完成判断逻辑

liyuan 7 月之前
父節點
當前提交
e5e2138f4d

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

@@ -1895,7 +1895,7 @@ public class ShipServiceImpl extends ServiceImpl<ShipMapper, PjShip> implements
 				if ("1".equals(goodsDesc.getWhether()) && ObjectUtils.isNull(item.getDot())) {
 					throw new RuntimeException("商品:" + goodsDesc.getCname() + ",请选择批次号");
 				}
-				if (!"TKSHGD".contains(ship.getBizTypeName())) {
+				if (!"TKSHGD".equals(ship.getBizTypeName())) {
 					PjOrderItems orderItems = pjOrderItems.stream().filter(e -> e.getId().equals(item.getSrcItemId())).findFirst().orElse(null);
 					if (orderItems != null) {
 						if (orderItems.getGoodsNum().compareTo(orderItems.getSendNum().add(item.getSendNum())) < 0) {