正在显示
29 个修改的文件
包含
1043 行增加
和
143 行删除
@@ -16,9 +16,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; | @@ -16,9 +16,7 @@ import org.springframework.transaction.annotation.EnableTransactionManagement; | ||
16 | @EnableEurekaClient | 16 | @EnableEurekaClient |
17 | @EnableTransactionManagement | 17 | @EnableTransactionManagement |
18 | public class CgonmsProvideApplication { | 18 | public class CgonmsProvideApplication { |
19 | - | ||
20 | public static void main(String[] args) { | 19 | public static void main(String[] args) { |
21 | SpringApplication.run(CgonmsProvideApplication.class, args); | 20 | SpringApplication.run(CgonmsProvideApplication.class, args); |
22 | } | 21 | } |
23 | - | ||
24 | } | 22 | } |
1 | +package com.sunyo.wlpt.cgonms.provide.controller; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.*; | ||
4 | +import com.sunyo.wlpt.cgonms.provide.service.*; | ||
5 | +import org.springframework.web.bind.annotation.*; | ||
6 | + | ||
7 | +import javax.annotation.Resource; | ||
8 | +import java.util.Date; | ||
9 | +import java.util.List; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 14:58 | ||
15 | + */ | ||
16 | + | ||
17 | +@CrossOrigin | ||
18 | +@RequestMapping("cgonms") | ||
19 | +@RestController | ||
20 | +public class CgoNmsController { | ||
21 | + @Resource | ||
22 | + private ResultExitDataService resultExitDataService; | ||
23 | + | ||
24 | + @Resource | ||
25 | + private PrepareMasterService prepareMasterService; | ||
26 | + | ||
27 | + @Resource | ||
28 | + private BasAirportService basAirportService; | ||
29 | + | ||
30 | + @Resource | ||
31 | + private TbAirportCodeService tbAirportCodeService; | ||
32 | + | ||
33 | + @Resource | ||
34 | + private BasAreaService basAreaService; | ||
35 | + | ||
36 | + /** | ||
37 | + * 根据航班日期获取出新舱单服务中的响应数据 | ||
38 | + * | ||
39 | + * @param flightDate 航班日期 | ||
40 | + * @return {@link ResultExitData} | ||
41 | + */ | ||
42 | + @GetMapping("/getData") | ||
43 | + public List<ResultExitData> getData( | ||
44 | + @RequestParam(value = "flightDate", required = false) Date flightDate, | ||
45 | + @RequestParam(value = "flightNo", required = false) String flightNo) { | ||
46 | + | ||
47 | + //设置查询条件 | ||
48 | + ResultExitData resultExitData = new ResultExitData(); | ||
49 | + resultExitData.setFlightDate(flightDate); | ||
50 | + resultExitData.setFlightNo(flightNo); | ||
51 | + /** | ||
52 | + * 1.先获取出 新舱单——理货信息 中的相应数据 | ||
53 | + * | ||
54 | + * 运单号; 航班号; 航班日期; 航班起始站; 航班目的站 | ||
55 | + * 航段(在数据库里面为null,所以只能 起始站 > 目的站 ) | ||
56 | + * 理货件数; 理货重量 | ||
57 | + */ | ||
58 | + | ||
59 | + List<ResultExitData> resultList = resultExitDataService.getResultExitDataInfo(resultExitData); | ||
60 | + //遍历获取出所有需要的信息 | ||
61 | + for (int i = 0; i < resultList.size(); i++) { | ||
62 | + ResultExitData result = resultList.get(i); | ||
63 | + //设置航班 | ||
64 | + result.setSegment(result.getOriginatingStation() + " — " + result.getDestinationStation()); | ||
65 | + | ||
66 | + /** | ||
67 | + * 2.根据 理货信息 中的运单号,获取预配表中的相应数据 | ||
68 | + * | ||
69 | + * 承运人二字码 | ||
70 | + * 发货人名称 | ||
71 | + * 收货人名称 | ||
72 | + */ | ||
73 | + System.out.println(result.getWaybillNoMaster()); | ||
74 | + PrepareMaster pm = prepareMasterService.getPrepareMasterInfo(result.getWaybillNoMaster()); | ||
75 | + | ||
76 | + //发货人名称 | ||
77 | + result.setShipperName(pm.getShipperName()); | ||
78 | + //收货人名称 | ||
79 | + result.setConsigneeName(pm.getConsigneeName()); | ||
80 | + //承运人二字码 | ||
81 | + result.setCarrier(pm.getCarrier()); | ||
82 | + /** | ||
83 | + * 3.根据 理货信息 中的目的站代码,获取 新舱单机场代码表 中的相应数据 | ||
84 | + * | ||
85 | + * 机场所属城市代码 | ||
86 | + */ | ||
87 | + System.out.println(result.getDestinationStation()); | ||
88 | + BasAirport ba = basAirportService.getBasAirportInfo(result.getDestinationStation()); | ||
89 | + | ||
90 | + /** | ||
91 | + * 4.根据 新舱单机场代码表 中的 机场所属城市代码 ,获取 天博——机场代码表 的相应数据 | ||
92 | + * | ||
93 | + * 城市代码 | ||
94 | + * 区域id | ||
95 | + * 国家代码 | ||
96 | + */ | ||
97 | + System.out.println(ba.getCityId()); | ||
98 | + TbAirportCode ta = tbAirportCodeService.getTbAirportCodeInfo(ba.getCityId()); | ||
99 | + // 航班目的城市代码 | ||
100 | + result.setCityCode(ta.getCityCode()); | ||
101 | + // 所属国家 | ||
102 | + result.setCountry(ta.getCountry()); | ||
103 | + | ||
104 | + /** | ||
105 | + * 5.根据 天博——机场代码表 中的 区域id,获取 新舱单——区域代码表 的相应数据 | ||
106 | + * | ||
107 | + * 区域id | ||
108 | + * 国际国内标识;1,国外;2,国内 | ||
109 | + * 区域描述,中文 | ||
110 | + */ | ||
111 | + System.out.println(ta.getArea()); | ||
112 | + BasArea basArea = basAreaService.getBasAreaInfo(ta.getArea()); | ||
113 | + //航班目的区域,中文描述,所属洲 | ||
114 | + result.setAreaDescChn(basArea.getAreaDescChn()); | ||
115 | + } | ||
116 | + return resultList; | ||
117 | + } | ||
118 | + | ||
119 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +import lombok.AllArgsConstructor; | ||
7 | +import lombok.Data; | ||
8 | +import lombok.NoArgsConstructor; | ||
9 | + | ||
10 | +/** | ||
11 | + * @author 子诚 | ||
12 | + * Description:实体类:新舱单机场代码表 | ||
13 | + * 时间:2020/5/20 11:28 | ||
14 | + */ | ||
15 | +@Data | ||
16 | +@AllArgsConstructor | ||
17 | +@NoArgsConstructor | ||
18 | +public class BasAirport implements Serializable { | ||
19 | + | ||
20 | + private static final long serialVersionUID = -5011627541236150393L; | ||
21 | + | ||
22 | + /** | ||
23 | + * 机场站代码 | ||
24 | + */ | ||
25 | + private String airportId; | ||
26 | + /** | ||
27 | + * 机场所属城市代码 | ||
28 | + */ | ||
29 | + private String cityId; | ||
30 | + | ||
31 | + | ||
32 | + /** | ||
33 | + * 我也不知道啥意思 | ||
34 | + * 机场4代码 | ||
35 | + */ | ||
36 | + private String airport4Code; | ||
37 | + | ||
38 | + /** | ||
39 | + * 机场描述,中文 | ||
40 | + */ | ||
41 | + private String airportDescChn; | ||
42 | + | ||
43 | + /** | ||
44 | + * 机场描述,英文 | ||
45 | + */ | ||
46 | + private String airportDescEng; | ||
47 | + | ||
48 | + /** | ||
49 | + * 操作时间 | ||
50 | + */ | ||
51 | + private Date operationTime; | ||
52 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +import lombok.AllArgsConstructor; | ||
7 | +import lombok.Data; | ||
8 | +import lombok.NoArgsConstructor; | ||
9 | + | ||
10 | +/** | ||
11 | + * @author 子诚 | ||
12 | + * Description:实体类:新舱单——区域代码表 | ||
13 | + * 时间:2020/5/20 11:47 | ||
14 | + */ | ||
15 | +@Data | ||
16 | +@AllArgsConstructor | ||
17 | +@NoArgsConstructor | ||
18 | +public class BasArea implements Serializable { | ||
19 | + | ||
20 | + private static final long serialVersionUID = -1060565664409722759L; | ||
21 | + | ||
22 | + /** | ||
23 | + * 区域id | ||
24 | + */ | ||
25 | + private String areaId; | ||
26 | + | ||
27 | + /** | ||
28 | + * 国际国内标识;1,国外;2,国内 | ||
29 | + */ | ||
30 | + private String netId; | ||
31 | + | ||
32 | + /** | ||
33 | + * 区域描述,中文 | ||
34 | + */ | ||
35 | + private String areaDescChn; | ||
36 | + | ||
37 | + private String areaDescEng; | ||
38 | + | ||
39 | + private Date operationTime; | ||
40 | + | ||
41 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +import lombok.AllArgsConstructor; | ||
7 | +import lombok.Data; | ||
8 | +import lombok.NoArgsConstructor; | ||
9 | + | ||
10 | +/** | ||
11 | + * @author 子诚 | ||
12 | + * Description:实体类:新舱单——预配表 | ||
13 | + * 时间:2020/5/20 11:12 | ||
14 | + */ | ||
15 | +@Data | ||
16 | +@AllArgsConstructor | ||
17 | +@NoArgsConstructor | ||
18 | +public class PrepareMaster implements Serializable { | ||
19 | + | ||
20 | + private static final long serialVersionUID = 7073373008863847070L; | ||
21 | + | ||
22 | + /** | ||
23 | + * id | ||
24 | + */ | ||
25 | + private String autoId; | ||
26 | + /** | ||
27 | + * 承运人二字码 | ||
28 | + */ | ||
29 | + private String carrier; | ||
30 | + | ||
31 | + /** | ||
32 | + * 发货人名称 | ||
33 | + */ | ||
34 | + private String shipperName; | ||
35 | + | ||
36 | + /** | ||
37 | + * 收货人名称 | ||
38 | + */ | ||
39 | + private String consigneeName; | ||
40 | + | ||
41 | + /** | ||
42 | + * 运单号 | ||
43 | + */ | ||
44 | + private String waybillNoMaster; | ||
45 | + | ||
46 | + /** | ||
47 | + * 航班号 | ||
48 | + */ | ||
49 | + private String flightNo; | ||
50 | + | ||
51 | + /** | ||
52 | + * 航班日期 | ||
53 | + */ | ||
54 | + private Date flightDate; | ||
55 | + | ||
56 | + /** | ||
57 | + * 航班起始站 | ||
58 | + */ | ||
59 | + private String originatingStation; | ||
60 | + | ||
61 | + /** | ||
62 | + * 航班目的站 | ||
63 | + */ | ||
64 | + private String destinationStation; | ||
65 | + | ||
66 | + | ||
67 | + | ||
68 | + private String totalWeight; | ||
69 | + | ||
70 | + private String totalPiece; | ||
71 | + | ||
72 | + /** | ||
73 | + * 预配,理货件数 | ||
74 | + */ | ||
75 | + private String prepareTotalPiece; | ||
76 | + | ||
77 | + /** | ||
78 | + * 预配,理货重量 | ||
79 | + */ | ||
80 | + private String prepareTotalWeight; | ||
81 | + | ||
82 | + private Date stowageDate; | ||
83 | + | ||
84 | + private String status; | ||
85 | + | ||
86 | + private String customsStatus; | ||
87 | + | ||
88 | + private String payMode; | ||
89 | + | ||
90 | + private String customsCode; | ||
91 | + | ||
92 | + /** | ||
93 | + * 代理人代码 | ||
94 | + */ | ||
95 | + private String agentCode; | ||
96 | + | ||
97 | + /** | ||
98 | + * 代理人姓名 | ||
99 | + */ | ||
100 | + private String agentName; | ||
101 | + | ||
102 | + private String shipperCity; | ||
103 | + | ||
104 | + private String shipperAddress; | ||
105 | + | ||
106 | + private String consigneeCity; | ||
107 | + | ||
108 | + private String consigneeAddress; | ||
109 | + | ||
110 | + private String receiptInformation; | ||
111 | + | ||
112 | + private Date createDate; | ||
113 | + | ||
114 | + private String productName; | ||
115 | + | ||
116 | + private String shipperCode; | ||
117 | + | ||
118 | + private String shipperCountrycode; | ||
119 | + | ||
120 | + private String shipperPhone; | ||
121 | + | ||
122 | + private String shipperFax; | ||
123 | + | ||
124 | + private String consigneeCode; | ||
125 | + | ||
126 | + private String consigneeCountrycode; | ||
127 | + | ||
128 | + private String consigneeFax; | ||
129 | + | ||
130 | + private String consigneePhone; | ||
131 | + | ||
132 | + private String shipperAeo; | ||
133 | + | ||
134 | + private String consigneeAeo; | ||
135 | + | ||
136 | + private String unloadingStation; | ||
137 | + | ||
138 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | +import java.util.Date; | ||
5 | + | ||
6 | +import com.fasterxml.jackson.annotation.JsonFormat; | ||
7 | +import lombok.AllArgsConstructor; | ||
8 | +import lombok.Data; | ||
9 | +import lombok.NoArgsConstructor; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description:实体类:新舱单——理货信息.最终返回结果类 | ||
14 | + * 时间:2020/5/20 10:40 | ||
15 | + */ | ||
16 | +@Data | ||
17 | +@AllArgsConstructor | ||
18 | +@NoArgsConstructor | ||
19 | +public class ResultExitData implements Serializable { | ||
20 | + | ||
21 | + private static final long serialVersionUID = -260680809813827352L; | ||
22 | + | ||
23 | + /** | ||
24 | + * id | ||
25 | + */ | ||
26 | + private String autoId; | ||
27 | + | ||
28 | + /** | ||
29 | + * 运单号 | ||
30 | + */ | ||
31 | + private String waybillNoMaster; | ||
32 | + | ||
33 | + /** | ||
34 | + * 航班号 | ||
35 | + */ | ||
36 | + private String flightNo; | ||
37 | + | ||
38 | + /** | ||
39 | + * 航班日期 | ||
40 | + */ | ||
41 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
42 | + private Date flightDate; | ||
43 | + | ||
44 | + /** | ||
45 | + * 航班时间 | ||
46 | + */ | ||
47 | + @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | ||
48 | + private Date dischargeDate; | ||
49 | + | ||
50 | + /** | ||
51 | + * 航段 | ||
52 | + */ | ||
53 | + private String segment; | ||
54 | + | ||
55 | + /** | ||
56 | + * 航班起始站 | ||
57 | + */ | ||
58 | + private String originatingStation; | ||
59 | + | ||
60 | + /** | ||
61 | + * 航班目的站 | ||
62 | + */ | ||
63 | + private String destinationStation; | ||
64 | + | ||
65 | + /** | ||
66 | + * 理货件数 | ||
67 | + */ | ||
68 | + private String tallyTotalPiece; | ||
69 | + | ||
70 | + /** | ||
71 | + * 理货重量 | ||
72 | + */ | ||
73 | + private String tallyTotalWeight; | ||
74 | + | ||
75 | + /** | ||
76 | + * 承运人二字码 | ||
77 | + */ | ||
78 | + private String carrier; | ||
79 | + | ||
80 | + /** | ||
81 | + * 发货人名称 | ||
82 | + */ | ||
83 | + private String shipperName; | ||
84 | + | ||
85 | + /** | ||
86 | + * 收货人名称 | ||
87 | + */ | ||
88 | + private String consigneeName; | ||
89 | + | ||
90 | + /** | ||
91 | + * 航班目的城市代码 | ||
92 | + */ | ||
93 | + private String cityCode; | ||
94 | + /** | ||
95 | + * 国家代码 | ||
96 | + */ | ||
97 | + private String country; | ||
98 | + | ||
99 | + /** | ||
100 | + * 航班目的区域,中文描述,所属洲 | ||
101 | + */ | ||
102 | + private String areaDescChn; | ||
103 | + | ||
104 | + private String tcdName; | ||
105 | + | ||
106 | + private String tcdTypeCode; | ||
107 | + | ||
108 | + private String tallType; | ||
109 | + | ||
110 | + private String oName; | ||
111 | + | ||
112 | + private String fdName; | ||
113 | + | ||
114 | + private String totalWeight; | ||
115 | + | ||
116 | + private String totalGrossWeightMeasureuc; | ||
117 | + | ||
118 | + private String totalPiece; | ||
119 | + | ||
120 | + private String grossWeightMeasureuc; | ||
121 | + | ||
122 | + private Date loadStartTime; | ||
123 | + | ||
124 | + private Date loadEndTime; | ||
125 | + | ||
126 | + private String status; | ||
127 | + | ||
128 | + private String customsCode; | ||
129 | + | ||
130 | + private String productName; | ||
131 | + | ||
132 | + private String receiptInformation; | ||
133 | + | ||
134 | + private Date createDate; | ||
135 | + | ||
136 | + private String dealFlag; | ||
137 | + | ||
138 | + private String billTallyFlag; | ||
139 | + | ||
140 | + private Date dealTime; | ||
141 | + | ||
142 | + private String transportSplitDescription; | ||
143 | + | ||
144 | +} |
1 | -package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | - | ||
3 | -import java.io.Serializable; | ||
4 | -import java.util.Date; | ||
5 | - | ||
6 | -import lombok.AllArgsConstructor; | ||
7 | -import lombok.Data; | ||
8 | -import lombok.NoArgsConstructor; | ||
9 | - | ||
10 | -/** | ||
11 | - * @author 子诚 | ||
12 | - * Description: | ||
13 | - * 时间:2020/5/19 18:15 | ||
14 | - */ | ||
15 | -@Data | ||
16 | -@AllArgsConstructor | ||
17 | -@NoArgsConstructor | ||
18 | -public class Tallymaster implements Serializable { | ||
19 | - | ||
20 | - private static final long serialVersionUID = 4102023605187440591L; | ||
21 | - | ||
22 | - private String autoid; | ||
23 | - | ||
24 | - private String waybillnomaster; | ||
25 | - | ||
26 | - private String tcdName; | ||
27 | - | ||
28 | - private String tcdTypecode; | ||
29 | - | ||
30 | - private String talltype; | ||
31 | - | ||
32 | - private String flightno; | ||
33 | - | ||
34 | - private Date flightdate; | ||
35 | - | ||
36 | - private String segment; | ||
37 | - | ||
38 | - private String originatingstation; | ||
39 | - | ||
40 | - private String oName; | ||
41 | - | ||
42 | - private String destinationstation; | ||
43 | - | ||
44 | - private String fdName; | ||
45 | - | ||
46 | - private String totalweight; | ||
47 | - | ||
48 | - private String totalgrossweightmeasureuc; | ||
49 | - | ||
50 | - private String totalpiece; | ||
51 | - | ||
52 | - private String tallytotalpiece; | ||
53 | - | ||
54 | - private String tallytotalweight; | ||
55 | - | ||
56 | - private String grossweightmeasureuc; | ||
57 | - | ||
58 | - private Date loadstarttime; | ||
59 | - | ||
60 | - private Date loadendtime; | ||
61 | - | ||
62 | - private String status; | ||
63 | - | ||
64 | - private String customscode; | ||
65 | - | ||
66 | - private String productname; | ||
67 | - | ||
68 | - private Date dischargedate; | ||
69 | - | ||
70 | - private String receiptinformation; | ||
71 | - | ||
72 | - private Date createdate; | ||
73 | - | ||
74 | - private String dealFlag; | ||
75 | - | ||
76 | - private String billTallyFlag; | ||
77 | - | ||
78 | - private Date dealTime; | ||
79 | - | ||
80 | - private String transportsplitdescription; | ||
81 | -} |
1 | +package com.sunyo.wlpt.cgonms.provide.domain; | ||
2 | + | ||
3 | +import java.io.Serializable; | ||
4 | + | ||
5 | +import lombok.AllArgsConstructor; | ||
6 | +import lombok.Data; | ||
7 | +import lombok.NoArgsConstructor; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description:实体类:天博——机场代码表 | ||
12 | + * 时间:2020/5/20 11:41 | ||
13 | + */ | ||
14 | +@Data | ||
15 | +@AllArgsConstructor | ||
16 | +@NoArgsConstructor | ||
17 | +public class TbAirportCode implements Serializable { | ||
18 | + | ||
19 | + private static final long serialVersionUID = -5787801791887231439L; | ||
20 | + | ||
21 | + /** | ||
22 | + * 城市代码 | ||
23 | + */ | ||
24 | + private String cityCode; | ||
25 | + | ||
26 | + /** | ||
27 | + * 区域id | ||
28 | + */ | ||
29 | + private String area; | ||
30 | + | ||
31 | + /** | ||
32 | + * 国家代码 | ||
33 | + */ | ||
34 | + private String country; | ||
35 | + | ||
36 | + private String civilCode; | ||
37 | + | ||
38 | + private String chineseDescription; | ||
39 | + | ||
40 | + private String englishDescription; | ||
41 | + | ||
42 | + /** | ||
43 | + * 城市 | ||
44 | + */ | ||
45 | + private String city; | ||
46 | + | ||
47 | + /** | ||
48 | + * 时区 | ||
49 | + */ | ||
50 | + private String timeZone; | ||
51 | + | ||
52 | +} |
1 | package com.sunyo.wlpt.cgonms.provide.mapper; | 1 | package com.sunyo.wlpt.cgonms.provide.mapper; |
2 | 2 | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasAirport; | ||
4 | + | ||
3 | /** | 5 | /** |
4 | * @author 子诚 | 6 | * @author 子诚 |
5 | * Description: | 7 | * Description: |
6 | - * 时间:2020/5/19 18:15 | 8 | + * 时间:2020/5/20 11:28 |
7 | */ | 9 | */ |
8 | -public interface TallymasterMapper { | ||
9 | -} | ||
10 | +public interface BasAirportMapper { | ||
11 | + /** | ||
12 | + * 获取 新舱单机场代码表 中的相应数据 | ||
13 | + * | ||
14 | + * @param destinationStation 航班目的站 | ||
15 | + * @return {@link BasAirport} | ||
16 | + */ | ||
17 | + BasAirport getBasAirportInfo(String destinationStation); | ||
18 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasArea; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:47 | ||
9 | + */ | ||
10 | +public interface BasAreaMapper { | ||
11 | + /** | ||
12 | + * 获取 新舱单——区域代码表 的相应数据. | ||
13 | + * | ||
14 | + * @param area 区域id | ||
15 | + * @return {@link BasArea} | ||
16 | + */ | ||
17 | + BasArea getBasAreaInfo(String area); | ||
18 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.PrepareMaster; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:12 | ||
9 | + */ | ||
10 | +public interface PrepareMasterMapper { | ||
11 | + /** | ||
12 | + * 获取预配表中的相应数据. | ||
13 | + * | ||
14 | + * @param waybillNoMaster 运单号 | ||
15 | + * @return {@link PrepareMaster} | ||
16 | + */ | ||
17 | + PrepareMaster getPrepareMasterInfo(String waybillNoMaster); | ||
18 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.ResultExitData; | ||
4 | +import org.apache.ibatis.annotations.Param; | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | +import java.util.List; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description: | ||
12 | + * 时间:2020/5/20 10:40 | ||
13 | + */ | ||
14 | +public interface ResultExitDataMapper { | ||
15 | + /** | ||
16 | + * 获取 新舱单——理货信息 中的相应数据. | ||
17 | + * | ||
18 | + * @param resultExitData | ||
19 | + * @return {@link ResultExitData} | ||
20 | + */ | ||
21 | + List<ResultExitData> getResultExitDataInfo(ResultExitData resultExitData); | ||
22 | + | ||
23 | + | ||
24 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.mapper; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.TbAirportCode; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:41 | ||
9 | + */ | ||
10 | +public interface TbAirportCodeMapper { | ||
11 | + /** | ||
12 | + * 获取 天博——机场代码表 的相应数据. | ||
13 | + * | ||
14 | + * @param cityId 城市id | ||
15 | + * @return {@link TbAirportCode} | ||
16 | + */ | ||
17 | + TbAirportCode getTbAirportCodeInfo(String cityId); | ||
18 | +} |
1 | package com.sunyo.wlpt.cgonms.provide.service; | 1 | package com.sunyo.wlpt.cgonms.provide.service; |
2 | 2 | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasAirport; | ||
4 | + | ||
3 | /** | 5 | /** |
4 | * @author 子诚 | 6 | * @author 子诚 |
5 | * Description: | 7 | * Description: |
6 | - * 时间:2020/5/19 18:13 | 8 | + * 时间:2020/5/20 11:28 |
7 | */ | 9 | */ |
8 | -public interface TallymasterService { | ||
9 | - | 10 | +public interface BasAirportService { |
10 | 11 | ||
12 | + /** | ||
13 | + * 获取 新舱单机场代码表 中的相应数据 | ||
14 | + * | ||
15 | + * @param destinationStation 航班目的站 | ||
16 | + * @return {@link BasAirport} | ||
17 | + */ | ||
18 | + BasAirport getBasAirportInfo(String destinationStation); | ||
11 | } | 19 | } |
12 | - |
1 | +package com.sunyo.wlpt.cgonms.provide.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasArea; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:47 | ||
9 | + */ | ||
10 | +public interface BasAreaService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取 新舱单——区域代码表 的相应数据. | ||
14 | + * | ||
15 | + * @param area 区域id | ||
16 | + * @return {@link BasArea} | ||
17 | + */ | ||
18 | + BasArea getBasAreaInfo(String area); | ||
19 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.PrepareMaster; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:12 | ||
9 | + */ | ||
10 | +public interface PrepareMasterService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取预配表中的相应数据. | ||
14 | + * | ||
15 | + * @param waybillNoMaster 运单号 | ||
16 | + * @return {@link PrepareMaster} | ||
17 | + */ | ||
18 | + PrepareMaster getPrepareMasterInfo(String waybillNoMaster); | ||
19 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.ResultExitData; | ||
4 | + | ||
5 | + | ||
6 | +import java.util.Date; | ||
7 | +import java.util.List; | ||
8 | + | ||
9 | +/** | ||
10 | + * @author 子诚 | ||
11 | + * Description: | ||
12 | + * 时间:2020/5/20 10:36 | ||
13 | + */ | ||
14 | +public interface ResultExitDataService { | ||
15 | + | ||
16 | + | ||
17 | + /** | ||
18 | + * 获取 新舱单——理货信息 中的相应数据. | ||
19 | + * | ||
20 | + * @param resultExitData | ||
21 | + * @return {@link ResultExitData} | ||
22 | + */ | ||
23 | + List<ResultExitData> getResultExitDataInfo(ResultExitData resultExitData); | ||
24 | + | ||
25 | +} | ||
26 | + |
1 | +package com.sunyo.wlpt.cgonms.provide.service; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.TbAirportCode; | ||
4 | + | ||
5 | +/** | ||
6 | + * @author 子诚 | ||
7 | + * Description: | ||
8 | + * 时间:2020/5/20 11:41 | ||
9 | + */ | ||
10 | +public interface TbAirportCodeService { | ||
11 | + | ||
12 | + /** | ||
13 | + * 获取 天博——机场代码表 的相应数据. | ||
14 | + * | ||
15 | + * @param cityId 城市id | ||
16 | + * @return {@link TbAirportCode} | ||
17 | + */ | ||
18 | + TbAirportCode getTbAirportCodeInfo(String cityId); | ||
19 | +} |
1 | package com.sunyo.wlpt.cgonms.provide.service.impl; | 1 | package com.sunyo.wlpt.cgonms.provide.service.impl; |
2 | 2 | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasAirport; | ||
3 | import org.springframework.stereotype.Service; | 4 | import org.springframework.stereotype.Service; |
4 | import javax.annotation.Resource; | 5 | import javax.annotation.Resource; |
5 | -import com.sunyo.wlpt.cgonms.provide.mapper.TallymasterMapper; | ||
6 | -import com.sunyo.wlpt.cgonms.provide.service.TallymasterService; | ||
7 | - | 6 | +import com.sunyo.wlpt.cgonms.provide.mapper.BasAirportMapper; |
7 | +import com.sunyo.wlpt.cgonms.provide.service.BasAirportService; | ||
8 | /** | 8 | /** |
9 | * @author 子诚 | 9 | * @author 子诚 |
10 | * Description: | 10 | * Description: |
11 | - * 时间:2020/5/19 18:13 | 11 | + * 时间:2020/5/20 11:28 |
12 | */ | 12 | */ |
13 | @Service | 13 | @Service |
14 | -public class TallymasterServiceImpl implements TallymasterService { | 14 | +public class BasAirportServiceImpl implements BasAirportService { |
15 | 15 | ||
16 | @Resource | 16 | @Resource |
17 | - private TallymasterMapper tallymasterMapper; | 17 | + private BasAirportMapper BasAirportMapper; |
18 | 18 | ||
19 | + @Override | ||
20 | + public BasAirport getBasAirportInfo(String destinationStation) { | ||
21 | + return BasAirportMapper.getBasAirportInfo(destinationStation); | ||
22 | + } | ||
19 | } | 23 | } |
20 | - |
1 | +package com.sunyo.wlpt.cgonms.provide.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.BasArea; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | + | ||
6 | +import javax.annotation.Resource; | ||
7 | + | ||
8 | +import com.sunyo.wlpt.cgonms.provide.mapper.BasAreaMapper; | ||
9 | +import com.sunyo.wlpt.cgonms.provide.service.BasAreaService; | ||
10 | + | ||
11 | +/** | ||
12 | + * @author 子诚 | ||
13 | + * Description: | ||
14 | + * 时间:2020/5/20 11:47 | ||
15 | + */ | ||
16 | +@Service | ||
17 | +public class BasAreaServiceImpl implements BasAreaService { | ||
18 | + | ||
19 | + @Resource | ||
20 | + private BasAreaMapper basAreaMapper; | ||
21 | + | ||
22 | + @Override | ||
23 | + public BasArea getBasAreaInfo(String area) { | ||
24 | + return basAreaMapper.getBasAreaInfo(area); | ||
25 | + } | ||
26 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.PrepareMaster; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | +import javax.annotation.Resource; | ||
6 | +import com.sunyo.wlpt.cgonms.provide.mapper.PrepareMasterMapper; | ||
7 | +import com.sunyo.wlpt.cgonms.provide.service.PrepareMasterService; | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description: | ||
11 | + * 时间:2020/5/20 11:12 | ||
12 | + */ | ||
13 | +@Service | ||
14 | +public class PrepareMasterServiceImpl implements PrepareMasterService{ | ||
15 | + | ||
16 | + @Resource | ||
17 | + private PrepareMasterMapper prepareMasterMapper; | ||
18 | + | ||
19 | + @Override | ||
20 | + public PrepareMaster getPrepareMasterInfo(String waybillNoMaster) { | ||
21 | + return prepareMasterMapper.getPrepareMasterInfo(waybillNoMaster); | ||
22 | + } | ||
23 | +} |
1 | +package com.sunyo.wlpt.cgonms.provide.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.ResultExitData; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | +import javax.annotation.Resource; | ||
6 | +import com.sunyo.wlpt.cgonms.provide.mapper.ResultExitDataMapper; | ||
7 | +import com.sunyo.wlpt.cgonms.provide.service.ResultExitDataService; | ||
8 | + | ||
9 | +import java.util.Date; | ||
10 | +import java.util.List; | ||
11 | + | ||
12 | +/** | ||
13 | + * @author 子诚 | ||
14 | + * Description: | ||
15 | + * 时间:2020/5/20 10:36 | ||
16 | + */ | ||
17 | +@Service | ||
18 | +public class ResultExitDataServiceImpl implements ResultExitDataService { | ||
19 | + | ||
20 | + @Resource | ||
21 | + private ResultExitDataMapper resultExitDataMapper; | ||
22 | + | ||
23 | + @Override | ||
24 | + public List<ResultExitData> getResultExitDataInfo( ResultExitData resultExitData) { | ||
25 | + return resultExitDataMapper.getResultExitDataInfo(resultExitData); | ||
26 | + } | ||
27 | +} | ||
28 | + |
1 | +package com.sunyo.wlpt.cgonms.provide.service.impl; | ||
2 | + | ||
3 | +import com.sunyo.wlpt.cgonms.provide.domain.TbAirportCode; | ||
4 | +import org.springframework.stereotype.Service; | ||
5 | +import javax.annotation.Resource; | ||
6 | +import com.sunyo.wlpt.cgonms.provide.mapper.TbAirportCodeMapper; | ||
7 | +import com.sunyo.wlpt.cgonms.provide.service.TbAirportCodeService; | ||
8 | +/** | ||
9 | + * @author 子诚 | ||
10 | + * Description: | ||
11 | + * 时间:2020/5/20 11:41 | ||
12 | + */ | ||
13 | +@Service | ||
14 | +public class TbAirportCodeServiceImpl implements TbAirportCodeService{ | ||
15 | + | ||
16 | + @Resource | ||
17 | + private TbAirportCodeMapper tbAirportCodeMapper; | ||
18 | + | ||
19 | + @Override | ||
20 | + public TbAirportCode getTbAirportCodeInfo(String cityId) { | ||
21 | + return tbAirportCodeMapper.getTbAirportCodeInfo(cityId); | ||
22 | + } | ||
23 | +} |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.BasAirportMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.BasAirport"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table T_BAS_AIRPORT--> | ||
7 | + <result column="AIRPORTID" jdbcType="VARCHAR" property="airportId"/> | ||
8 | + <result column="AIRPORT4CODE" jdbcType="CHAR" property="airport4Code"/> | ||
9 | + <result column="CITYID" jdbcType="VARCHAR" property="cityId"/> | ||
10 | + <result column="AIRPORTDESCCHN" jdbcType="VARCHAR" property="airportDescChn"/> | ||
11 | + <result column="AIRPORTDESCENG" jdbcType="VARCHAR" property="airportDescEng"/> | ||
12 | + <result column="OPERATIONTIME" jdbcType="TIMESTAMP" property="operationTime"/> | ||
13 | + </resultMap> | ||
14 | + <sql id="Base_Column_List"> | ||
15 | + <!--@mbg.generated--> | ||
16 | + AIRPORTID, AIRPORT4CODE, CITYID, AIRPORTDESCCHN, AIRPORTDESCENG, OPERATIONTIME | ||
17 | + </sql> | ||
18 | + <select id="getBasAirportInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
19 | + select | ||
20 | + <include refid="Base_Column_List"/> | ||
21 | + from T_BAS_AIRPORT | ||
22 | + where | ||
23 | + AIRPORTID = #{destinationStation,jdbcType=VARCHAR} | ||
24 | + </select> | ||
25 | +</mapper> |
src/main/resources/mapper/BasAreaMapper.xml
0 → 100644
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.BasAreaMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.BasArea"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table T_BAS_AREA--> | ||
7 | + <result column="AREAID" jdbcType="VARCHAR" property="areaId"/> | ||
8 | + <result column="NETID" jdbcType="VARCHAR" property="netId"/> | ||
9 | + <result column="AREADESCCHN" jdbcType="VARCHAR" property="areaDescChn"/> | ||
10 | + <result column="AREADESCENG" jdbcType="VARCHAR" property="areaDescEng"/> | ||
11 | + <result column="OPERATIONTIME" jdbcType="TIMESTAMP" property="operationTime"/> | ||
12 | + </resultMap> | ||
13 | + <sql id="Base_Column_List"> | ||
14 | + <!--@mbg.generated--> | ||
15 | + AREAID, NETID, AREADESCCHN, AREADESCENG, OPERATIONTIME | ||
16 | + </sql> | ||
17 | + <select id="getBasAreaInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
18 | + select | ||
19 | + <include refid="Base_Column_List"/> | ||
20 | + from T_BAS_AREA | ||
21 | + where AREAID = #{area,jdbcType=VARCHAR} | ||
22 | + </select> | ||
23 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.PrepareMasterMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.PrepareMaster"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table PREPAREMASTER--> | ||
7 | + <result column="AUTOID" jdbcType="VARCHAR" property="autoId"/> | ||
8 | + <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightNo"/> | ||
9 | + <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightDate"/> | ||
10 | + <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingStation"/> | ||
11 | + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationStation"/> | ||
12 | + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillNoMaster"/> | ||
13 | + <result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalWeight"/> | ||
14 | + <result column="TOTALPIECE" jdbcType="VARCHAR" property="totalPiece"/> | ||
15 | + <result column="PREPARETOTALPIECE" jdbcType="VARCHAR" property="prepareTotalPiece"/> | ||
16 | + <result column="PREPARETOTALWEIGHT" jdbcType="VARCHAR" property="prepareTotalWeight"/> | ||
17 | + <result column="STOWAGEDATE" jdbcType="TIMESTAMP" property="stowageDate"/> | ||
18 | + <result column="STATUS" jdbcType="VARCHAR" property="status"/> | ||
19 | + <result column="CARRIER" jdbcType="VARCHAR" property="carrier"/> | ||
20 | + <result column="CUSTOMSSTATUS" jdbcType="VARCHAR" property="customsStatus"/> | ||
21 | + <result column="PAYMODE" jdbcType="VARCHAR" property="payMode"/> | ||
22 | + <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customsCode"/> | ||
23 | + <result column="AGENTCODE" jdbcType="VARCHAR" property="agentCode"/> | ||
24 | + <result column="AGENTNAME" jdbcType="VARCHAR" property="agentName"/> | ||
25 | + <result column="SHIPPERNAME" jdbcType="VARCHAR" property="shipperName"/> | ||
26 | + <result column="SHIPPERCITY" jdbcType="VARCHAR" property="shipperCity"/> | ||
27 | + <result column="SHIPPERADDRESS" jdbcType="VARCHAR" property="shipperAddress"/> | ||
28 | + <result column="CONSIGNEENAME" jdbcType="VARCHAR" property="consigneeName"/> | ||
29 | + <result column="CONSIGNEECITY" jdbcType="VARCHAR" property="consigneeCity"/> | ||
30 | + <result column="CONSIGNEEADDRESS" jdbcType="VARCHAR" property="consigneeAddress"/> | ||
31 | + <result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptInformation"/> | ||
32 | + <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createDate"/> | ||
33 | + <result column="PRODUCTNAME" jdbcType="VARCHAR" property="productName"/> | ||
34 | + <result column="SHIPPER_CODE" jdbcType="VARCHAR" property="shipperCode"/> | ||
35 | + <result column="SHIPPER_COUNTRYCODE" jdbcType="VARCHAR" property="shipperCountrycode"/> | ||
36 | + <result column="SHIPPER_PHONE" jdbcType="VARCHAR" property="shipperPhone"/> | ||
37 | + <result column="SHIPPER_FAX" jdbcType="VARCHAR" property="shipperFax"/> | ||
38 | + <result column="CONSIGNEE_CODE" jdbcType="VARCHAR" property="consigneeCode"/> | ||
39 | + <result column="CONSIGNEE_COUNTRYCODE" jdbcType="VARCHAR" property="consigneeCountrycode"/> | ||
40 | + <result column="CONSIGNEE_FAX" jdbcType="VARCHAR" property="consigneeFax"/> | ||
41 | + <result column="CONSIGNEE_PHONE" jdbcType="VARCHAR" property="consigneePhone"/> | ||
42 | + <result column="SHIPPER_AEO" jdbcType="VARCHAR" property="shipperAeo"/> | ||
43 | + <result column="CONSIGNEE_AEO" jdbcType="VARCHAR" property="consigneeAeo"/> | ||
44 | + <result column="UNLOADINGSTATION" jdbcType="VARCHAR" property="unloadingStation"/> | ||
45 | + </resultMap> | ||
46 | + <sql id="Base_Column_List"> | ||
47 | + <!--@mbg.generated--> | ||
48 | + AUTOID, FLIGHTNO, FLIGHTDATE, ORIGINATINGSTATION, DESTINATIONSTATION, WAYBILLNOMASTER, | ||
49 | + TOTALWEIGHT, TOTALPIECE, PREPARETOTALPIECE, PREPARETOTALWEIGHT, STOWAGEDATE, "STATUS", | ||
50 | + CARRIER, CUSTOMSSTATUS, PAYMODE, CUSTOMSCODE, AGENTCODE, AGENTNAME, SHIPPERNAME, | ||
51 | + SHIPPERCITY, SHIPPERADDRESS, CONSIGNEENAME, CONSIGNEECITY, CONSIGNEEADDRESS, RECEIPTINFORMATION, | ||
52 | + CREATEDATE, PRODUCTNAME, SHIPPER_CODE, SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX, | ||
53 | + CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX, CONSIGNEE_PHONE, SHIPPER_AEO, | ||
54 | + CONSIGNEE_AEO, UNLOADINGSTATION | ||
55 | + </sql> | ||
56 | + <select id="getPrepareMasterInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
57 | + select | ||
58 | + <include refid="Base_Column_List"/> | ||
59 | + from PREPAREMASTER | ||
60 | + where | ||
61 | + WAYBILLNOMASTER = #{waybillNoMaster,jdbcType=VARCHAR} | ||
62 | + </select> | ||
63 | +</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.ResultExitDataMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.ResultExitData"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table TALLYMASTER--> | ||
7 | + <result column="AUTOID" jdbcType="VARCHAR" property="autoId"/> | ||
8 | + <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillNoMaster"/> | ||
9 | + <result column="TCD_NAME" jdbcType="VARCHAR" property="tcdName"/> | ||
10 | + <result column="TCD_TYPECODE" jdbcType="VARCHAR" property="tcdTypeCode"/> | ||
11 | + <result column="TALLTYPE" jdbcType="VARCHAR" property="tallType"/> | ||
12 | + <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightNo"/> | ||
13 | + <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightDate"/> | ||
14 | + <result column="SEGMENT" jdbcType="VARCHAR" property="segment"/> | ||
15 | + <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingStation"/> | ||
16 | + <result column="O_NAME" jdbcType="VARCHAR" property="oName"/> | ||
17 | + <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationStation"/> | ||
18 | + <result column="FD_NAME" jdbcType="VARCHAR" property="fdName"/> | ||
19 | + <result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalWeight"/> | ||
20 | + <result column="TOTALGROSSWEIGHTMEASUREUC" jdbcType="VARCHAR" property="totalGrossWeightMeasureuc"/> | ||
21 | + <result column="TOTALPIECE" jdbcType="VARCHAR" property="totalPiece"/> | ||
22 | + <result column="TALLYTOTALPIECE" jdbcType="VARCHAR" property="tallyTotalPiece"/> | ||
23 | + <result column="TALLYTOTALWEIGHT" jdbcType="VARCHAR" property="tallyTotalWeight"/> | ||
24 | + <result column="GROSSWEIGHTMEASUREUC" jdbcType="VARCHAR" property="grossWeightMeasureuc"/> | ||
25 | + <result column="LOADSTARTTIME" jdbcType="TIMESTAMP" property="loadStartTime"/> | ||
26 | + <result column="LOADENDTIME" jdbcType="TIMESTAMP" property="loadEndTime"/> | ||
27 | + <result column="STATUS" jdbcType="VARCHAR" property="status"/> | ||
28 | + <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customsCode"/> | ||
29 | + <result column="PRODUCTNAME" jdbcType="VARCHAR" property="productName"/> | ||
30 | + <result column="DISCHARGEDATE" jdbcType="TIMESTAMP" property="dischargeDate"/> | ||
31 | + <result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptInformation"/> | ||
32 | + <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createDate"/> | ||
33 | + <result column="DEAL_FLAG" jdbcType="VARCHAR" property="dealFlag"/> | ||
34 | + <result column="BILL_TALLY_FLAG" jdbcType="VARCHAR" property="billTallyFlag"/> | ||
35 | + <result column="DEAL_TIME" jdbcType="TIMESTAMP" property="dealTime"/> | ||
36 | + <result column="TRANSPORTSPLITDESCRIPTION" jdbcType="VARCHAR" property="transportSplitDescription"/> | ||
37 | + </resultMap> | ||
38 | + <sql id="Base_Column_List"> | ||
39 | + <!--@mbg.generated--> | ||
40 | + AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, TALLTYPE, FLIGHTNO, FLIGHTDATE, | ||
41 | + SEGMENT, ORIGINATINGSTATION, O_NAME, DESTINATIONSTATION, FD_NAME, TOTALWEIGHT, TOTALGROSSWEIGHTMEASUREUC, | ||
42 | + TOTALPIECE, TALLYTOTALPIECE, TALLYTOTALWEIGHT, GROSSWEIGHTMEASUREUC, LOADSTARTTIME, | ||
43 | + LOADENDTIME, "STATUS", CUSTOMSCODE, PRODUCTNAME, DISCHARGEDATE, RECEIPTINFORMATION, | ||
44 | + CREATEDATE, DEAL_FLAG, BILL_TALLY_FLAG, DEAL_TIME, TRANSPORTSPLITDESCRIPTION | ||
45 | + </sql> | ||
46 | + <!-- 获取 新舱单——理货信息 中的相应数据 --> | ||
47 | + <select id="getResultExitDataInfo" parameterType="com.sunyo.wlpt.cgonms.provide.domain.ResultExitData" | ||
48 | + resultMap="BaseResultMap"> | ||
49 | + select | ||
50 | + <include refid="Base_Column_List"/> | ||
51 | + from TALLYMASTER | ||
52 | + where 1=1 | ||
53 | + <!-- 航班号 --> | ||
54 | + <if test="flightNo!=null and flightNo!=''"> | ||
55 | + AND FLIGHTNO= #{flightNo,jdbcType=VARCHAR} | ||
56 | + </if> | ||
57 | + <!-- 航班日期 --> | ||
58 | + <if test="flightDate!=null"> | ||
59 | + AND FLIGHTDATE = #{flightDate,jdbcType=DATE} | ||
60 | + </if> | ||
61 | + </select> | ||
62 | + | ||
63 | + | ||
64 | +</mapper> |
1 | -<?xml version="1.0" encoding="UTF-8"?> | ||
2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | -<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.TallymasterMapper"> | ||
4 | - <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.Tallymaster"> | ||
5 | - <!--@mbg.generated--> | ||
6 | - <!--@Table TALLYMASTER--> | ||
7 | - <result column="AUTOID" jdbcType="VARCHAR" property="autoid" /> | ||
8 | - <result column="WAYBILLNOMASTER" jdbcType="VARCHAR" property="waybillnomaster" /> | ||
9 | - <result column="TCD_NAME" jdbcType="VARCHAR" property="tcdName" /> | ||
10 | - <result column="TCD_TYPECODE" jdbcType="VARCHAR" property="tcdTypecode" /> | ||
11 | - <result column="TALLTYPE" jdbcType="VARCHAR" property="talltype" /> | ||
12 | - <result column="FLIGHTNO" jdbcType="VARCHAR" property="flightno" /> | ||
13 | - <result column="FLIGHTDATE" jdbcType="TIMESTAMP" property="flightdate" /> | ||
14 | - <result column="SEGMENT" jdbcType="VARCHAR" property="segment" /> | ||
15 | - <result column="ORIGINATINGSTATION" jdbcType="VARCHAR" property="originatingstation" /> | ||
16 | - <result column="O_NAME" jdbcType="VARCHAR" property="oName" /> | ||
17 | - <result column="DESTINATIONSTATION" jdbcType="VARCHAR" property="destinationstation" /> | ||
18 | - <result column="FD_NAME" jdbcType="VARCHAR" property="fdName" /> | ||
19 | - <result column="TOTALWEIGHT" jdbcType="VARCHAR" property="totalweight" /> | ||
20 | - <result column="TOTALGROSSWEIGHTMEASUREUC" jdbcType="VARCHAR" property="totalgrossweightmeasureuc" /> | ||
21 | - <result column="TOTALPIECE" jdbcType="VARCHAR" property="totalpiece" /> | ||
22 | - <result column="TALLYTOTALPIECE" jdbcType="VARCHAR" property="tallytotalpiece" /> | ||
23 | - <result column="TALLYTOTALWEIGHT" jdbcType="VARCHAR" property="tallytotalweight" /> | ||
24 | - <result column="GROSSWEIGHTMEASUREUC" jdbcType="VARCHAR" property="grossweightmeasureuc" /> | ||
25 | - <result column="LOADSTARTTIME" jdbcType="TIMESTAMP" property="loadstarttime" /> | ||
26 | - <result column="LOADENDTIME" jdbcType="TIMESTAMP" property="loadendtime" /> | ||
27 | - <result column="STATUS" jdbcType="VARCHAR" property="status" /> | ||
28 | - <result column="CUSTOMSCODE" jdbcType="VARCHAR" property="customscode" /> | ||
29 | - <result column="PRODUCTNAME" jdbcType="VARCHAR" property="productname" /> | ||
30 | - <result column="DISCHARGEDATE" jdbcType="TIMESTAMP" property="dischargedate" /> | ||
31 | - <result column="RECEIPTINFORMATION" jdbcType="VARCHAR" property="receiptinformation" /> | ||
32 | - <result column="CREATEDATE" jdbcType="TIMESTAMP" property="createdate" /> | ||
33 | - <result column="DEAL_FLAG" jdbcType="VARCHAR" property="dealFlag" /> | ||
34 | - <result column="BILL_TALLY_FLAG" jdbcType="VARCHAR" property="billTallyFlag" /> | ||
35 | - <result column="DEAL_TIME" jdbcType="TIMESTAMP" property="dealTime" /> | ||
36 | - <result column="TRANSPORTSPLITDESCRIPTION" jdbcType="VARCHAR" property="transportsplitdescription" /> | ||
37 | - </resultMap> | ||
38 | - <sql id="Base_Column_List"> | ||
39 | - <!--@mbg.generated--> | ||
40 | - AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, TALLTYPE, FLIGHTNO, FLIGHTDATE, | ||
41 | - SEGMENT, ORIGINATINGSTATION, O_NAME, DESTINATIONSTATION, FD_NAME, TOTALWEIGHT, TOTALGROSSWEIGHTMEASUREUC, | ||
42 | - TOTALPIECE, TALLYTOTALPIECE, TALLYTOTALWEIGHT, GROSSWEIGHTMEASUREUC, LOADSTARTTIME, | ||
43 | - LOADENDTIME, "STATUS", CUSTOMSCODE, PRODUCTNAME, DISCHARGEDATE, RECEIPTINFORMATION, | ||
44 | - CREATEDATE, DEAL_FLAG, BILL_TALLY_FLAG, DEAL_TIME, TRANSPORTSPLITDESCRIPTION | ||
45 | - </sql> | ||
46 | -</mapper> |
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.sunyo.wlpt.cgonms.provide.mapper.TbAirportCodeMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.sunyo.wlpt.cgonms.provide.domain.TbAirportCode"> | ||
5 | + <!--@mbg.generated--> | ||
6 | + <!--@Table TB_AIRPORTCODE--> | ||
7 | + <result column="CITYCODE" jdbcType="VARCHAR" property="cityCode"/> | ||
8 | + <result column="CIVILCODE" jdbcType="VARCHAR" property="civilCode"/> | ||
9 | + <result column="CHINESEDESCRIPTION" jdbcType="VARCHAR" property="chineseDescription"/> | ||
10 | + <result column="ENGLISHDESCRIPTION" jdbcType="VARCHAR" property="englishDescription"/> | ||
11 | + <result column="AREA" jdbcType="VARCHAR" property="area"/> | ||
12 | + <result column="COUNTRY" jdbcType="VARCHAR" property="country"/> | ||
13 | + <result column="CITY" jdbcType="VARCHAR" property="city"/> | ||
14 | + <result column="TIMEZONE" jdbcType="VARCHAR" property="timeZone"/> | ||
15 | + </resultMap> | ||
16 | + <sql id="Base_Column_List"> | ||
17 | + <!--@mbg.generated--> | ||
18 | + CITYCODE, CIVILCODE, CHINESEDESCRIPTION, ENGLISHDESCRIPTION, AREA, COUNTRY, CITY, | ||
19 | + TIMEZONE | ||
20 | + </sql> | ||
21 | + <select id="getTbAirportCodeInfo" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
22 | + select | ||
23 | + <include refid="Base_Column_List"/> | ||
24 | + from TB_AIRPORTCODE | ||
25 | + where CITYCODE = #{cityId,jdbcType=VARCHAR} | ||
26 | + | ||
27 | + </select> | ||
28 | +</mapper> |
-
请 注册 或 登录 后发表评论