修改 excel导入 航班号承运人 一起 安检bug 预配列表 航班号展示完善
正在显示
4 个修改的文件
包含
122 行增加
和
112 行删除
@@ -530,7 +530,7 @@ public class ManifestController extends BasicController { | @@ -530,7 +530,7 @@ public class ManifestController extends BasicController { | ||
530 | manifestVo.setShpcusid(mani.getShpcusid()); | 530 | manifestVo.setShpcusid(mani.getShpcusid()); |
531 | manifestVo.setShpaeo(mani.getShpaeo()); | 531 | manifestVo.setShpaeo(mani.getShpaeo()); |
532 | manifestVo.setCneaeo(mani.getCneaeo()); | 532 | manifestVo.setCneaeo(mani.getCneaeo()); |
533 | - manifestVo.setFlightno(mani.getFlightno()); | 533 | + manifestVo.setFlightno(mani.getCarrier()+mani.getFlightno()); |
534 | manifestVo.setFlightdate(mani.getFlightdate()); | 534 | manifestVo.setFlightdate(mani.getFlightdate()); |
535 | manifestVo.setOriginatingstation(mani.getOriginatingstation()); | 535 | manifestVo.setOriginatingstation(mani.getOriginatingstation()); |
536 | manifestVo.setDestinationstation(mani.getDestinationstation()); | 536 | manifestVo.setDestinationstation(mani.getDestinationstation()); |
@@ -2301,119 +2301,129 @@ public class ManifestController extends BasicController { | @@ -2301,119 +2301,129 @@ public class ManifestController extends BasicController { | ||
2301 | // 主单号 | 2301 | // 主单号 |
2302 | manifestEntity.setWaybillnomaster(wbm); | 2302 | manifestEntity.setWaybillnomaster(wbm); |
2303 | // 航班号 | 2303 | // 航班号 |
2304 | - manifestEntity.setFlightno(arr.get(3)); | 2304 | + manifestEntity.setFlightno(arr.get(3).substring(2)); |
2305 | // 航班日期 | 2305 | // 航班日期 |
2306 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd"); | 2306 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd"); |
2307 | String s = arr.get(4); | 2307 | String s = arr.get(4); |
2308 | Date parse = simpleDateFormat.parse(s); | 2308 | Date parse = simpleDateFormat.parse(s); |
2309 | manifestEntity.setFlightdate(parse); | 2309 | manifestEntity.setFlightdate(parse); |
2310 | // 承运人代码 | 2310 | // 承运人代码 |
2311 | - manifestEntity.setCarrier(arr.get(5)); | 2311 | + manifestEntity.setCarrier(arr.get(3).substring(0, 2)); |
2312 | // 运费支付方式 | 2312 | // 运费支付方式 |
2313 | - manifestEntity.setPaymode(arr.get(6)); | 2313 | + manifestEntity.setPaymode(arr.get(5)); |
2314 | // 装货地代码 | 2314 | // 装货地代码 |
2315 | - manifestEntity.setOriginatingstation(arr.get(7)); | 2315 | + manifestEntity.setOriginatingstation(arr.get(6)); |
2316 | // 卸货地代码 | 2316 | // 卸货地代码 |
2317 | - manifestEntity.setDestinationstation(arr.get(8)); | 2317 | + manifestEntity.setDestinationstation(arr.get(7)); |
2318 | // 货物装载运输时间 | 2318 | // 货物装载运输时间 |
2319 | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyyMMddHHmmss"); | 2319 | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyyMMddHHmmss"); |
2320 | - manifestEntity.setStowagedate(simpleDateFormat1.parse(arr.get(9))); | 2320 | + manifestEntity.setStowagedate(simpleDateFormat1.parse(arr.get(8))); |
2321 | // 海关关区代码 | 2321 | // 海关关区代码 |
2322 | - manifestEntity.setCustomscode(arr.get(10)); | 2322 | + manifestEntity.setCustomscode(arr.get(9)); |
2323 | // 货物件数 | 2323 | // 货物件数 |
2324 | // String s3 = arr.get(11); | 2324 | // String s3 = arr.get(11); |
2325 | - manifestEntity.setTotalpiece(arr.get(11)); | 2325 | + manifestEntity.setTotalpiece(arr.get(10)); |
2326 | // 货物毛重 | 2326 | // 货物毛重 |
2327 | // String s1 = arr.get(12); | 2327 | // String s1 = arr.get(12); |
2328 | - manifestEntity.setTotalweight(arr.get(12)); | 2328 | + manifestEntity.setTotalweight(arr.get(11)); |
2329 | // 货物简要描述 | 2329 | // 货物简要描述 |
2330 | - manifestEntity.setProductname(arr.get(13)); | 2330 | + manifestEntity.setProductname(arr.get(12)); |
2331 | // 发货人代码 | 2331 | // 发货人代码 |
2332 | - manifestEntity.setShpcusid(arr.get(14)); | ||
2333 | - // 发货人名称 | ||
2334 | - manifestEntity.setCo_name(arr.get(15)); | 2332 | + manifestEntity.setShpcusid(arr.get(13)); |
2333 | + // 发货人公司 | ||
2334 | + manifestEntity.setCo_company(arr.get(14)); | ||
2335 | // 发货人地址 | 2335 | // 发货人地址 |
2336 | - manifestEntity.setCo_address(arr.get(16)); | 2336 | + manifestEntity.setCo_address(arr.get(15)); |
2337 | // 发货人国家代码 | 2337 | // 发货人国家代码 |
2338 | - manifestEntity.setSh_country(arr.get(17)); | 2338 | + manifestEntity.setSh_country(arr.get(16)); |
2339 | // 发货人传真 | 2339 | // 发货人传真 |
2340 | - manifestEntity.setSh_fax(arr.get(18)); | 2340 | + manifestEntity.setSh_fax(arr.get(17)); |
2341 | // 发货人联系号码 | 2341 | // 发货人联系号码 |
2342 | - manifestEntity.setCo_telephone(arr.get(19)); | 2342 | + manifestEntity.setCo_telephone(arr.get(18)); |
2343 | // 收货人代码 | 2343 | // 收货人代码 |
2344 | - manifestEntity.setCnecusid(arr.get(20)); | ||
2345 | - // 收货人名称 | ||
2346 | - manifestEntity.setSh_name(arr.get(21)); | 2344 | + manifestEntity.setCnecusid(arr.get(19)); |
2345 | + // 收货人公司 | ||
2346 | + manifestEntity.setSh_company(arr.get(20)); | ||
2347 | // 收货人地址 | 2347 | // 收货人地址 |
2348 | - manifestEntity.setSh_address(arr.get(22)); | 2348 | + manifestEntity.setSh_address(arr.get(21)); |
2349 | // 收货人城市 | 2349 | // 收货人城市 |
2350 | - manifestEntity.setSh_city(arr.get(23)); | 2350 | + manifestEntity.setSh_city(arr.get(22)); |
2351 | // 收货人国家代码 | 2351 | // 收货人国家代码 |
2352 | - manifestEntity.setSh_country(arr.get(24)); | 2352 | + manifestEntity.setSh_country(arr.get(23)); |
2353 | // 收货人传真 | 2353 | // 收货人传真 |
2354 | - manifestEntity.setSh_fax(arr.get(25)); | 2354 | + manifestEntity.setSh_fax(arr.get(24)); |
2355 | // 收货人联系号码 | 2355 | // 收货人联系号码 |
2356 | - manifestEntity.setSh_telephone(arr.get(26)); | 2356 | + manifestEntity.setSh_telephone(arr.get(25)); |
2357 | 2357 | ||
2358 | // 货物海关状态代码 | 2358 | // 货物海关状态代码 |
2359 | - manifestEntity.setCustomsstatus(arr.get(27)); | 2359 | + manifestEntity.setCustomsstatus(arr.get(26)); |
2360 | 2360 | ||
2361 | // 安检申报 | 2361 | // 安检申报 |
2362 | - SecurityDeclarationEntity sd = new SecurityDeclarationEntity(); | ||
2363 | - sd.setSd_waybill(wbm); | ||
2364 | - // 航空货物托运人名称 | ||
2365 | - sd.setSd_cargo_shipper_name(arr.get(28)); | ||
2366 | - // 航空货物销售代理人名称 | ||
2367 | - sd.setSd_cargo_agent_name(arr.get(29)); | ||
2368 | - // 航协资质编号 | ||
2369 | - if (!StringUtils.isBlank(arr.get(30))) { | ||
2370 | - sd.setSd_iata_number(arr.get(30)); | ||
2371 | - } | ||
2372 | - | ||
2373 | - sd.setSd_static("1"); | ||
2374 | - // 发布时间 | ||
2375 | - SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
2376 | - String format = simpleDateFormat2.format(new Date()); | ||
2377 | - sd.setOperation_time(format); | ||
2378 | - // 运输条件鉴定书 | ||
2379 | - if (!StringUtils.isBlank(arr.get(31))) { | ||
2380 | - | ||
2381 | - String certificate = arr.get(31); | ||
2382 | - if (certificate != null) { | ||
2383 | - String s2 = certificate.replaceAll(",", ","); | ||
2384 | - sd.setSd_transportation_prove(s2); | ||
2385 | - } | ||
2386 | - } | ||
2387 | 2362 | ||
2388 | - // 航空公司同意运输证明 | ||
2389 | - if (!StringUtils.isBlank(arr.get(32))) { | 2363 | + if (StringUtils.isNotBlank(arr.get(27)) && StringUtils.isNotBlank(arr.get(28)) && StringUtils.isNotBlank(arr.get(29)) |
2364 | + && StringUtils.isNotBlank(arr.get(32)) && StringUtils.isNotBlank(arr.get(33))){ | ||
2365 | + SecurityDeclarationEntity sd = new SecurityDeclarationEntity(); | ||
2366 | + sd.setSd_waybill(wbm); | ||
2367 | + // 航空货物托运人名称 | ||
2368 | + sd.setSd_cargo_shipper_name(arr.get(27)); | ||
2369 | + // 航空货物销售代理人名称 | ||
2370 | + sd.setSd_cargo_agent_name(arr.get(28)); | ||
2371 | + // 航协资质编号 | ||
2372 | + if (!StringUtils.isBlank(arr.get(29))) { | ||
2373 | + sd.setSd_iata_number(arr.get(29)); | ||
2374 | + } | ||
2375 | + | ||
2376 | + sd.setSd_static("1"); | ||
2377 | + // 发布时间 | ||
2378 | + SimpleDateFormat simpleDateFormat2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); | ||
2379 | + String format = simpleDateFormat2.format(new Date()); | ||
2380 | + sd.setOperation_time(format); | ||
2381 | + | ||
2382 | + // 运输条件鉴定书 | ||
2383 | + if (!StringUtils.isBlank(arr.get(30))) { | ||
2384 | + | ||
2385 | + String certificate = arr.get(30); | ||
2386 | + if (certificate != null) { | ||
2387 | + String s2 = certificate.replaceAll(",", ","); | ||
2388 | + sd.setSd_transport_certificate(s2); | ||
2389 | + } | ||
2390 | + } | ||
2391 | + | ||
2392 | + // 航空公司同意运输证明 | ||
2393 | + if (!StringUtils.isBlank(arr.get(31))) { | ||
2394 | + | ||
2395 | + String prove = arr.get(31); | ||
2396 | + if (prove != null) { | ||
2397 | + String s2 = prove.replaceAll(",", ","); | ||
2398 | + sd.setSd_transportation_prove(s2); | ||
2399 | + } | ||
2400 | + } | ||
2401 | + | ||
2402 | + | ||
2403 | + | ||
2404 | + | ||
2405 | + // 用户ID | ||
2406 | + sd.setUSER_ID(userId); | ||
2407 | + | ||
2408 | + // 航空货物性质 | ||
2409 | + SDCargoTypeEntity sdCargoTypeEntity = new SDCargoTypeEntity(); | ||
2410 | + sdCargoTypeEntity.setSd_waybill(wbm); | ||
2411 | + sdCargoTypeEntity.setSd_cargo_type(arr.get(32)); | ||
2412 | + sdCargoTypeService.save(sdCargoTypeEntity); | ||
2413 | + | ||
2414 | + // 航空货物品名 | ||
2415 | + String replace = arr.get(33).replace(",", ","); | ||
2416 | + | ||
2417 | + String[] cargoName = replace.split(","); | ||
2418 | + for (int i = 0; i < cargoName.length; i++) { | ||
2419 | + SDCargoNameEntity sdCargoNameEntity = new SDCargoNameEntity(); | ||
2420 | + sdCargoNameEntity.setSd_waybill(wbm); | ||
2421 | + sdCargoNameEntity.setSd_cargo_name(cargoName[i]); | ||
2422 | + sdCargoNameService.save(sdCargoNameEntity); | ||
2423 | + } | ||
2424 | + securityDeclarationService.save(sd); | ||
2425 | + } | ||
2390 | 2426 | ||
2391 | - String prove = arr.get(32); | ||
2392 | - if (prove != null) { | ||
2393 | - String s2 = prove.replaceAll(",", ","); | ||
2394 | - sd.setSd_transportation_prove(s2); | ||
2395 | - } | ||
2396 | - } | ||
2397 | - // 用户ID | ||
2398 | - sd.setUSER_ID(userId); | ||
2399 | - | ||
2400 | - // 航空货物性质 | ||
2401 | - SDCargoTypeEntity sdCargoTypeEntity = new SDCargoTypeEntity(); | ||
2402 | - sdCargoTypeEntity.setSd_waybill(wbm); | ||
2403 | - sdCargoTypeEntity.setSd_cargo_type(arr.get(33)); | ||
2404 | - sdCargoTypeService.save(sdCargoTypeEntity); | ||
2405 | - | ||
2406 | - // 航空货物品名 | ||
2407 | - String replace = arr.get(34).replace(",", ","); | ||
2408 | - | ||
2409 | - String[] cargoName = replace.split(","); | ||
2410 | - for (int i = 0; i < cargoName.length; i++) { | ||
2411 | - SDCargoNameEntity sdCargoNameEntity = new SDCargoNameEntity(); | ||
2412 | - sdCargoNameEntity.setSd_waybill(wbm); | ||
2413 | - sdCargoNameEntity.setSd_cargo_name(cargoName[i]); | ||
2414 | - sdCargoNameService.save(sdCargoNameEntity); | ||
2415 | - } | ||
2416 | - securityDeclarationService.save(sd); | ||
2417 | 2427 | ||
2418 | manifestService.save(manifestEntity); | 2428 | manifestService.save(manifestEntity); |
2419 | 2429 | ||
@@ -2440,65 +2450,65 @@ public class ManifestController extends BasicController { | @@ -2440,65 +2450,65 @@ public class ManifestController extends BasicController { | ||
2440 | 2450 | ||
2441 | PreparesecondaryEntity seconday = new PreparesecondaryEntity(); | 2451 | PreparesecondaryEntity seconday = new PreparesecondaryEntity(); |
2442 | seconday.setPreparemasterid(wbm1.getId()); | 2452 | seconday.setPreparemasterid(wbm1.getId()); |
2443 | - // 主单 | 2453 | + // 主单号 |
2444 | seconday.setWaybillnomaster(wbm); | 2454 | seconday.setWaybillnomaster(wbm); |
2445 | - // 分单 | ||
2446 | - seconday.setWaybillnosecondary(arr.get(2)); | ||
2447 | // 航班号 | 2455 | // 航班号 |
2448 | - seconday.setFlightno(arr.get(3)); | 2456 | + seconday.setFlightno(arr.get(3).substring(2)); |
2449 | // 航班日期 | 2457 | // 航班日期 |
2450 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd"); | 2458 | SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd"); |
2451 | String s = arr.get(4); | 2459 | String s = arr.get(4); |
2452 | Date parse = simpleDateFormat.parse(s); | 2460 | Date parse = simpleDateFormat.parse(s); |
2453 | seconday.setFlightdate(parse); | 2461 | seconday.setFlightdate(parse); |
2454 | // 承运人代码 | 2462 | // 承运人代码 |
2455 | - seconday.setCarrier(arr.get(5)); | 2463 | + seconday.setCarrier(arr.get(3).substring(0, 2)); |
2456 | // 运费支付方式 | 2464 | // 运费支付方式 |
2457 | - seconday.setPaymode(arr.get(6)); | 2465 | + seconday.setPaymode(arr.get(5)); |
2458 | // 装货地代码 | 2466 | // 装货地代码 |
2459 | - seconday.setOriginatingstation(arr.get(7)); | 2467 | + seconday.setOriginatingstation(arr.get(6)); |
2460 | // 卸货地代码 | 2468 | // 卸货地代码 |
2461 | - seconday.setDestinationstation(arr.get(8)); | 2469 | + seconday.setDestinationstation(arr.get(7)); |
2462 | // 货物装载运输时间 | 2470 | // 货物装载运输时间 |
2463 | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyyMMddHHmmss"); | 2471 | SimpleDateFormat simpleDateFormat1 = new SimpleDateFormat("yyyyMMddHHmmss"); |
2464 | - seconday.setStowagedate(simpleDateFormat1.parse(arr.get(9))); | 2472 | + seconday.setStowagedate(simpleDateFormat1.parse(arr.get(8))); |
2465 | // 海关关区代码 | 2473 | // 海关关区代码 |
2466 | - seconday.setCustomscode(arr.get(10)); | 2474 | + seconday.setCustomscode(arr.get(9)); |
2467 | // 货物件数 | 2475 | // 货物件数 |
2468 | - seconday.setTotalpiece(arr.get(11)); | 2476 | +// String s3 = arr.get(11); |
2477 | + seconday.setTotalpiece(arr.get(10)); | ||
2469 | // 货物毛重 | 2478 | // 货物毛重 |
2470 | - seconday.setTotalweight(arr.get(12)); | 2479 | +// String s1 = arr.get(12); |
2480 | + seconday.setTotalweight(arr.get(11)); | ||
2471 | // 货物简要描述 | 2481 | // 货物简要描述 |
2472 | - seconday.setProductname(arr.get(13)); | 2482 | + seconday.setProductname(arr.get(12)); |
2473 | // 发货人代码 | 2483 | // 发货人代码 |
2474 | - seconday.setShpcusid(arr.get(14)); | ||
2475 | - // 发货人名称 | ||
2476 | - seconday.setCo_name(arr.get(15)); | 2484 | + seconday.setShpcusid(arr.get(13)); |
2485 | + // 发货人公司 | ||
2486 | + seconday.setCo_company(arr.get(14)); | ||
2477 | // 发货人地址 | 2487 | // 发货人地址 |
2478 | - seconday.setCo_address(arr.get(16)); | 2488 | + seconday.setCo_address(arr.get(15)); |
2479 | // 发货人国家代码 | 2489 | // 发货人国家代码 |
2480 | - seconday.setSh_country(arr.get(17)); | 2490 | + seconday.setSh_country(arr.get(16)); |
2481 | // 发货人传真 | 2491 | // 发货人传真 |
2482 | - seconday.setSh_fax(arr.get(18)); | 2492 | + seconday.setSh_fax(arr.get(17)); |
2483 | // 发货人联系号码 | 2493 | // 发货人联系号码 |
2484 | - seconday.setCo_telephone(arr.get(19)); | 2494 | + seconday.setCo_telephone(arr.get(18)); |
2485 | // 收货人代码 | 2495 | // 收货人代码 |
2486 | - seconday.setCnecusid(arr.get(20)); | ||
2487 | - // 收货人名称 | ||
2488 | - seconday.setSh_name(arr.get(21)); | 2496 | + seconday.setCnecusid(arr.get(19)); |
2497 | + // 收货人公司 | ||
2498 | + seconday.setSh_company(arr.get(20)); | ||
2489 | // 收货人地址 | 2499 | // 收货人地址 |
2490 | - seconday.setSh_address(arr.get(22)); | 2500 | + seconday.setSh_address(arr.get(21)); |
2491 | // 收货人城市 | 2501 | // 收货人城市 |
2492 | - seconday.setSh_city(arr.get(23)); | 2502 | + seconday.setSh_city(arr.get(22)); |
2493 | // 收货人国家代码 | 2503 | // 收货人国家代码 |
2494 | - seconday.setSh_country(arr.get(24)); | 2504 | + seconday.setSh_country(arr.get(23)); |
2495 | // 收货人传真 | 2505 | // 收货人传真 |
2496 | - seconday.setSh_fax(arr.get(25)); | 2506 | + seconday.setSh_fax(arr.get(24)); |
2497 | // 收货人联系号码 | 2507 | // 收货人联系号码 |
2498 | - seconday.setSh_telephone(arr.get(26)); | 2508 | + seconday.setSh_telephone(arr.get(25)); |
2499 | 2509 | ||
2500 | // 货物海关状态代码 | 2510 | // 货物海关状态代码 |
2501 | - seconday.setCustomsstatus(arr.get(27)); | 2511 | + seconday.setCustomsstatus(arr.get(26)); |
2502 | seconday.setCreateDate(new Date()); | 2512 | seconday.setCreateDate(new Date()); |
2503 | preparesecondaryServer.save(seconday); | 2513 | preparesecondaryServer.save(seconday); |
2504 | model.setStatus(200); | 2514 | model.setStatus(200); |
@@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
12 | 12 | ||
13 | # 69 | 13 | # 69 |
14 | jdbc.driverClassName=oracle.jdbc.driver.OracleDriver | 14 | jdbc.driverClassName=oracle.jdbc.driver.OracleDriver |
15 | -#jdbc.url=jdbc:oracle:thin:@10.50.3.70:1521:CGODB | 15 | +#jdbc.url=jdbc:oracle:thin:@10.50.3.69:1521:CGODB |
16 | jdbc.url=jdbc:oracle:thin:@218.28.199.134:8004:CGODB | 16 | jdbc.url=jdbc:oracle:thin:@218.28.199.134:8004:CGODB |
17 | jdbc.username=CGOASM | 17 | jdbc.username=CGOASM |
18 | jdbc.password=vmvnv1v2 | 18 | jdbc.password=vmvnv1v2 |
不能预览此文件类型
-
请 注册 或 登录 后发表评论