Browse Source

1.处理工厂数据serviceNum为空的情况

test
zhenghaoyu 2 years ago
parent
commit
48de08de04
  1. 6
      blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/service/impl/ServiceNumServiceImpl.java

6
blade-service/logpm-old-project/src/main/java/com/logpm/oldproject/service/impl/ServiceNumServiceImpl.java

@ -23,6 +23,7 @@ import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Objects;
/**
* 包内产品明细 服务实现类
@ -38,6 +39,9 @@ public class ServiceNumServiceImpl implements IServiceNumService {
@Override
public Boolean addServiceNum(List<ServiceNumEntity> serviceNum) {
return serviceNumMapper.addAll(serviceNum);
if(!Objects.isNull(serviceNum)&&serviceNum.size()>0){
return serviceNumMapper.addAll(serviceNum);
}
return true;
}
}

Loading…
Cancel
Save