|
@@ -60,11 +60,11 @@ public class BoatController extends CommonController {
|
|
}
|
|
}
|
|
String paramJsonData = getParamJsonData(vo.getData());
|
|
String paramJsonData = getParamJsonData(vo.getData());
|
|
ShipDataRequest req = JSONObject.parseObject(paramJsonData, ShipDataRequest.class);
|
|
ShipDataRequest req = JSONObject.parseObject(paramJsonData, ShipDataRequest.class);
|
|
- if (StringUtils.isBlank(req.getShipId()) && StringUtils.isBlank(req.getShipNameCn())
|
|
|
|
- && StringUtils.isBlank(req.getMmsi()) && StringUtils.isBlank(req.getShipTypeName())) {
|
|
|
|
- throw new EnumException("请至少输入一个查询参数");
|
|
|
|
- }
|
|
|
|
- if (StringUtils.isBlank(req.getMmsi()) && req.getMmsi().length() < 6) {
|
|
|
|
|
|
+// if (StringUtils.isBlank(req.getShipId()) && StringUtils.isBlank(req.getShipNameCn())
|
|
|
|
+// && StringUtils.isBlank(req.getMmsi()) && StringUtils.isBlank(req.getShipTypeName())) {
|
|
|
|
+// throw new EnumException("请至少输入一个查询参数");
|
|
|
|
+// }
|
|
|
|
+ if (!StringUtils.isBlank(req.getMmsi()) && req.getMmsi().length() < 6) {
|
|
throw new EnumException("mmsi不足六位");
|
|
throw new EnumException("mmsi不足六位");
|
|
}
|
|
}
|
|
List<ShipDataVo> voList = commonService.selectBoatInfoList(req);
|
|
List<ShipDataVo> voList = commonService.selectBoatInfoList(req);
|