|
|
@@ -299,7 +299,12 @@ public class EsNetworkEntryServiceImpl extends ServiceImpl<EsNetworkEntryMapper,
|
|
299
|
299
|
|
|
300
|
300
|
EsNetworkEntry.setHeadquarterCreditCode(strings[11]);//所属总公司企业信用代码
|
|
301
|
301
|
EsNetworkEntry.setEnterpriseName(strings[12]);//企业名称
|
|
302
|
|
- EsNetworkEntry.setCreditCode(strings[13]);//统一社会信用代码
|
|
|
302
|
+
|
|
|
303
|
+ if (strings[13] != null && strings[13].length() > 18) {
|
|
|
304
|
+ throw new IllegalArgumentException(strings[13]+"统一社会信用代码长度不能超过18位");
|
|
|
305
|
+ } else {
|
|
|
306
|
+ EsNetworkEntry.setCreditCode(strings[13]);//统一社会信用代码
|
|
|
307
|
+ }
|
|
303
|
308
|
EsNetworkEntry.setActualBusinessAddress(strings[14]);//实际经营地址(省、市、县、乡镇街道门牌号)
|
|
304
|
309
|
|
|
305
|
310
|
QueryWrapper<BizDict> queryWrapper7 = new QueryWrapper<>();
|
|
|
@@ -311,9 +316,31 @@ public class EsNetworkEntryServiceImpl extends ServiceImpl<EsNetworkEntryMapper,
|
|
311
|
316
|
List<BizDict> list8 = BizDictServiceImpl.list(queryWrapper8);
|
|
312
|
317
|
EsNetworkEntry.setEnterpriseType(strings[16]);//企业类型
|
|
313
|
318
|
|
|
314
|
|
- EsNetworkEntry.setLongitude(new BigDecimal(strings[17]));//经度
|
|
|
319
|
+// EsNetworkEntry.setLongitude(new BigDecimal(strings[17]));//经度
|
|
|
320
|
+//
|
|
|
321
|
+// EsNetworkEntry.setLatitude(new BigDecimal(strings[18]));//纬度
|
|
|
322
|
+
|
|
|
323
|
+ if (strings[17] != null) {
|
|
|
324
|
+ try {
|
|
|
325
|
+ BigDecimal longitude = new BigDecimal(strings[17]);
|
|
|
326
|
+ // 进行后续的处理
|
|
|
327
|
+ EsNetworkEntry.setLongitude(longitude);
|
|
|
328
|
+ } catch (NumberFormatException e) {
|
|
|
329
|
+ throw new NumberFormatException(strings[17] + " 经度格式不正确");
|
|
|
330
|
+ }
|
|
|
331
|
+ }
|
|
|
332
|
+
|
|
|
333
|
+
|
|
|
334
|
+ if (strings[18] != null) {
|
|
|
335
|
+ try {
|
|
|
336
|
+ BigDecimal latitude = new BigDecimal(strings[18]);
|
|
|
337
|
+ // 进行后续的处理
|
|
|
338
|
+ EsNetworkEntry.setLatitude(latitude);
|
|
|
339
|
+ } catch (NumberFormatException e) {
|
|
|
340
|
+ throw new NumberFormatException(strings[18] + " 纬度格式不正确");
|
|
|
341
|
+ }
|
|
|
342
|
+ }
|
|
315
|
343
|
|
|
316
|
|
- EsNetworkEntry.setLatitude(new BigDecimal(strings[18]));//纬度
|
|
317
|
344
|
|
|
318
|
345
|
|
|
319
|
346
|
EsNetworkEntry.setLegalRepresentative(strings[19]);//法人姓名
|