Browse Source

船舶联系人查询接口:单船查询问题优化

sbj 4 days ago
parent
commit
bb4681381f

+ 1 - 1
ghjg-item-datashare-server/src/main/java/com/shanghaichengdi/ghjgitem/service/impl/CommonServiceImpl.java

@@ -177,7 +177,7 @@ public class CommonServiceImpl implements CommonService {
     @Override
     public List<BoatContactVo> selectBoatContactByMmsi(ShipDataRequest param) throws Exception{
         String[] mmsis = param.getMmsi().split(",");
-        if (mmsis != null && mmsis.length > 1){
+        if (mmsis != null && mmsis.length > 0){
             if(mmsis.length > 500){
                 throw new EnumException("mmsi批量查询不得超过500条");
             }