作者 朱兆平

更新航班信息

@@ -18,6 +18,7 @@ @@ -18,6 +18,7 @@
18 <properties> 18 <properties>
19 <druid.version>1.1.9</druid.version> 19 <druid.version>1.1.9</druid.version>
20 <spring-cloud.version>Greenwich.BUILD-SNAPSHOT</spring-cloud.version> 20 <spring-cloud.version>Greenwich.BUILD-SNAPSHOT</spring-cloud.version>
  21 + <lombok_sersion>1.18.6</lombok_sersion>
21 </properties> 22 </properties>
22 <dependencies> 23 <dependencies>
23 <!--spring boot--> 24 <!--spring boot-->
@@ -50,7 +51,13 @@ @@ -50,7 +51,13 @@
50 <groupId>org.springframework.cloud</groupId> 51 <groupId>org.springframework.cloud</groupId>
51 <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> 52 <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
52 </dependency> 53 </dependency>
53 - 54 + <!--lombok-->
  55 + <dependency>
  56 + <groupId>org.projectlombok</groupId>
  57 + <artifactId>lombok</artifactId>
  58 + <version>${lombok_sersion}</version>
  59 + <scope>provided</scope>
  60 + </dependency>
54 <!--数据库--> 61 <!--数据库-->
55 <dependency> 62 <dependency>
56 <groupId>com.alibaba</groupId> 63 <groupId>com.alibaba</groupId>
  1 +package com.tianbo.imfClient.controller;
  2 +
  3 +import com.tianbo.imfClient.dao.ORIGINMANIFESTMASTERMapper;
  4 +import com.tianbo.imfClient.model.ResultJson;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.PostMapping;
  7 +import org.springframework.web.bind.annotation.RequestMapping;
  8 +import org.springframework.web.bind.annotation.RequestParam;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +import java.util.HashMap;
  12 +
  13 +@RestController
  14 +@RequestMapping("/flight")
  15 +public class FlightController {
  16 +
  17 + @Autowired
  18 + ORIGINMANIFESTMASTERMapper originmanifestmasterMapper;
  19 +
  20 + /**
  21 + * 修改航班日期
  22 + * @param currDate 修改前日期
  23 + * @param flightNo 航班号
  24 + * @param setDate 修改后日期
  25 + */
  26 + @PostMapping("/changeDate")
  27 + public ResultJson changeFlightDate(@RequestParam(value = "currDate",required = true) String currDate,
  28 + @RequestParam(value = "flightNo",required = true) String flightNo,
  29 + @RequestParam(value = "setDate", required = true) String setDate
  30 + ){
  31 + HashMap<String ,String> map = new HashMap();
  32 + map.put("currDate",currDate);
  33 + map.put("flightNo",flightNo);
  34 + map.put("setDate",setDate);
  35 + int i = originmanifestmasterMapper.changeFlightDate(map);
  36 + if (i>0)
  37 + {
  38 + return new ResultJson("200","更新成功",i);
  39 +// return "航班日期更新成功"+i;
  40 + }
  41 + return new ResultJson("500","更新失败或航班信息不正确",i);
  42 + }
  43 +}
  1 +package com.tianbo.imfClient.dao;
  2 +
  3 +import com.tianbo.imfClient.model.ORIGINMANIFESTMASTER;
  4 +
  5 +import java.util.HashMap;
  6 +
  7 +public interface ORIGINMANIFESTMASTERMapper {
  8 + int insert(ORIGINMANIFESTMASTER record);
  9 +
  10 + int insertSelective(ORIGINMANIFESTMASTER record);
  11 +
  12 + int changeFlightDate(HashMap map);
  13 +}
  1 +package com.tianbo.imfClient.model;
  2 +
  3 +import java.util.Date;
  4 +
  5 +public class ORIGINMANIFESTMASTER {
  6 + private String autoid;
  7 +
  8 + private String waybillnomaster;
  9 +
  10 + private String segment;
  11 +
  12 + private String originatingstation;
  13 +
  14 + private String destinationstation;
  15 +
  16 + private String totalweight;
  17 +
  18 + private String totalpiece;
  19 +
  20 + private String manifesttotalpiece;
  21 +
  22 + private String manifesttotalweight;
  23 +
  24 + private String flightno;
  25 +
  26 + private String productname;
  27 +
  28 + private String customsstatus;
  29 +
  30 + private String carrier1;
  31 +
  32 + private String arrivalstation1;
  33 +
  34 + private String carrier2;
  35 +
  36 + private String arrivalstation2;
  37 +
  38 + private String carrier3;
  39 +
  40 + private String arrivalstation3;
  41 +
  42 + private String paymode;
  43 +
  44 + private String specialgoodscode;
  45 +
  46 + private String customscode;
  47 +
  48 + private String shippername;
  49 +
  50 + private String shipperaddress;
  51 +
  52 + private String consigneename;
  53 +
  54 + private String consigneeaddress;
  55 +
  56 + private String receiptinformation;
  57 +
  58 + private Date createdate;
  59 +
  60 + private Date flightDate;
  61 +
  62 + private String status;
  63 +
  64 + private String isbatch;
  65 +
  66 + private String originatingstationBill;
  67 +
  68 + private String destinationstationBill;
  69 +
  70 + private String reportorder;
  71 +
  72 + private String islast;
  73 +
  74 + private String shipperCode;
  75 +
  76 + private String shipperCountrycode;
  77 +
  78 + private String shipperPhone;
  79 +
  80 + private String shipperFax;
  81 +
  82 + private String consigneeCode;
  83 +
  84 + private String consigneeCountrycode;
  85 +
  86 + private String consigneeFax;
  87 +
  88 + private String specificConsigneename;
  89 +
  90 + private String specificConsigneePhone;
  91 +
  92 + private String consigneePhone;
  93 +
  94 + public String getAutoid() {
  95 + return autoid;
  96 + }
  97 +
  98 + public void setAutoid(String autoid) {
  99 + this.autoid = autoid == null ? null : autoid.trim();
  100 + }
  101 +
  102 + public String getWaybillnomaster() {
  103 + return waybillnomaster;
  104 + }
  105 +
  106 + public void setWaybillnomaster(String waybillnomaster) {
  107 + this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
  108 + }
  109 +
  110 + public String getSegment() {
  111 + return segment;
  112 + }
  113 +
  114 + public void setSegment(String segment) {
  115 + this.segment = segment == null ? null : segment.trim();
  116 + }
  117 +
  118 + public String getOriginatingstation() {
  119 + return originatingstation;
  120 + }
  121 +
  122 + public void setOriginatingstation(String originatingstation) {
  123 + this.originatingstation = originatingstation == null ? null : originatingstation.trim();
  124 + }
  125 +
  126 + public String getDestinationstation() {
  127 + return destinationstation;
  128 + }
  129 +
  130 + public void setDestinationstation(String destinationstation) {
  131 + this.destinationstation = destinationstation == null ? null : destinationstation.trim();
  132 + }
  133 +
  134 + public String getTotalweight() {
  135 + return totalweight;
  136 + }
  137 +
  138 + public void setTotalweight(String totalweight) {
  139 + this.totalweight = totalweight == null ? null : totalweight.trim();
  140 + }
  141 +
  142 + public String getTotalpiece() {
  143 + return totalpiece;
  144 + }
  145 +
  146 + public void setTotalpiece(String totalpiece) {
  147 + this.totalpiece = totalpiece == null ? null : totalpiece.trim();
  148 + }
  149 +
  150 + public String getManifesttotalpiece() {
  151 + return manifesttotalpiece;
  152 + }
  153 +
  154 + public void setManifesttotalpiece(String manifesttotalpiece) {
  155 + this.manifesttotalpiece = manifesttotalpiece == null ? null : manifesttotalpiece.trim();
  156 + }
  157 +
  158 + public String getManifesttotalweight() {
  159 + return manifesttotalweight;
  160 + }
  161 +
  162 + public void setManifesttotalweight(String manifesttotalweight) {
  163 + this.manifesttotalweight = manifesttotalweight == null ? null : manifesttotalweight.trim();
  164 + }
  165 +
  166 + public String getFlightno() {
  167 + return flightno;
  168 + }
  169 +
  170 + public void setFlightno(String flightno) {
  171 + this.flightno = flightno == null ? null : flightno.trim();
  172 + }
  173 +
  174 + public String getProductname() {
  175 + return productname;
  176 + }
  177 +
  178 + public void setProductname(String productname) {
  179 + this.productname = productname == null ? null : productname.trim();
  180 + }
  181 +
  182 + public String getCustomsstatus() {
  183 + return customsstatus;
  184 + }
  185 +
  186 + public void setCustomsstatus(String customsstatus) {
  187 + this.customsstatus = customsstatus == null ? null : customsstatus.trim();
  188 + }
  189 +
  190 + public String getCarrier1() {
  191 + return carrier1;
  192 + }
  193 +
  194 + public void setCarrier1(String carrier1) {
  195 + this.carrier1 = carrier1 == null ? null : carrier1.trim();
  196 + }
  197 +
  198 + public String getArrivalstation1() {
  199 + return arrivalstation1;
  200 + }
  201 +
  202 + public void setArrivalstation1(String arrivalstation1) {
  203 + this.arrivalstation1 = arrivalstation1 == null ? null : arrivalstation1.trim();
  204 + }
  205 +
  206 + public String getCarrier2() {
  207 + return carrier2;
  208 + }
  209 +
  210 + public void setCarrier2(String carrier2) {
  211 + this.carrier2 = carrier2 == null ? null : carrier2.trim();
  212 + }
  213 +
  214 + public String getArrivalstation2() {
  215 + return arrivalstation2;
  216 + }
  217 +
  218 + public void setArrivalstation2(String arrivalstation2) {
  219 + this.arrivalstation2 = arrivalstation2 == null ? null : arrivalstation2.trim();
  220 + }
  221 +
  222 + public String getCarrier3() {
  223 + return carrier3;
  224 + }
  225 +
  226 + public void setCarrier3(String carrier3) {
  227 + this.carrier3 = carrier3 == null ? null : carrier3.trim();
  228 + }
  229 +
  230 + public String getArrivalstation3() {
  231 + return arrivalstation3;
  232 + }
  233 +
  234 + public void setArrivalstation3(String arrivalstation3) {
  235 + this.arrivalstation3 = arrivalstation3 == null ? null : arrivalstation3.trim();
  236 + }
  237 +
  238 + public String getPaymode() {
  239 + return paymode;
  240 + }
  241 +
  242 + public void setPaymode(String paymode) {
  243 + this.paymode = paymode == null ? null : paymode.trim();
  244 + }
  245 +
  246 + public String getSpecialgoodscode() {
  247 + return specialgoodscode;
  248 + }
  249 +
  250 + public void setSpecialgoodscode(String specialgoodscode) {
  251 + this.specialgoodscode = specialgoodscode == null ? null : specialgoodscode.trim();
  252 + }
  253 +
  254 + public String getCustomscode() {
  255 + return customscode;
  256 + }
  257 +
  258 + public void setCustomscode(String customscode) {
  259 + this.customscode = customscode == null ? null : customscode.trim();
  260 + }
  261 +
  262 + public String getShippername() {
  263 + return shippername;
  264 + }
  265 +
  266 + public void setShippername(String shippername) {
  267 + this.shippername = shippername == null ? null : shippername.trim();
  268 + }
  269 +
  270 + public String getShipperaddress() {
  271 + return shipperaddress;
  272 + }
  273 +
  274 + public void setShipperaddress(String shipperaddress) {
  275 + this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
  276 + }
  277 +
  278 + public String getConsigneename() {
  279 + return consigneename;
  280 + }
  281 +
  282 + public void setConsigneename(String consigneename) {
  283 + this.consigneename = consigneename == null ? null : consigneename.trim();
  284 + }
  285 +
  286 + public String getConsigneeaddress() {
  287 + return consigneeaddress;
  288 + }
  289 +
  290 + public void setConsigneeaddress(String consigneeaddress) {
  291 + this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
  292 + }
  293 +
  294 + public String getReceiptinformation() {
  295 + return receiptinformation;
  296 + }
  297 +
  298 + public void setReceiptinformation(String receiptinformation) {
  299 + this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
  300 + }
  301 +
  302 + public Date getCreatedate() {
  303 + return createdate;
  304 + }
  305 +
  306 + public void setCreatedate(Date createdate) {
  307 + this.createdate = createdate;
  308 + }
  309 +
  310 + public Date getFlightDate() {
  311 + return flightDate;
  312 + }
  313 +
  314 + public void setFlightDate(Date flightDate) {
  315 + this.flightDate = flightDate;
  316 + }
  317 +
  318 + public String getStatus() {
  319 + return status;
  320 + }
  321 +
  322 + public void setStatus(String status) {
  323 + this.status = status == null ? null : status.trim();
  324 + }
  325 +
  326 + public String getIsbatch() {
  327 + return isbatch;
  328 + }
  329 +
  330 + public void setIsbatch(String isbatch) {
  331 + this.isbatch = isbatch == null ? null : isbatch.trim();
  332 + }
  333 +
  334 + public String getOriginatingstationBill() {
  335 + return originatingstationBill;
  336 + }
  337 +
  338 + public void setOriginatingstationBill(String originatingstationBill) {
  339 + this.originatingstationBill = originatingstationBill == null ? null : originatingstationBill.trim();
  340 + }
  341 +
  342 + public String getDestinationstationBill() {
  343 + return destinationstationBill;
  344 + }
  345 +
  346 + public void setDestinationstationBill(String destinationstationBill) {
  347 + this.destinationstationBill = destinationstationBill == null ? null : destinationstationBill.trim();
  348 + }
  349 +
  350 + public String getReportorder() {
  351 + return reportorder;
  352 + }
  353 +
  354 + public void setReportorder(String reportorder) {
  355 + this.reportorder = reportorder == null ? null : reportorder.trim();
  356 + }
  357 +
  358 + public String getIslast() {
  359 + return islast;
  360 + }
  361 +
  362 + public void setIslast(String islast) {
  363 + this.islast = islast == null ? null : islast.trim();
  364 + }
  365 +
  366 + public String getShipperCode() {
  367 + return shipperCode;
  368 + }
  369 +
  370 + public void setShipperCode(String shipperCode) {
  371 + this.shipperCode = shipperCode == null ? null : shipperCode.trim();
  372 + }
  373 +
  374 + public String getShipperCountrycode() {
  375 + return shipperCountrycode;
  376 + }
  377 +
  378 + public void setShipperCountrycode(String shipperCountrycode) {
  379 + this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
  380 + }
  381 +
  382 + public String getShipperPhone() {
  383 + return shipperPhone;
  384 + }
  385 +
  386 + public void setShipperPhone(String shipperPhone) {
  387 + this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
  388 + }
  389 +
  390 + public String getShipperFax() {
  391 + return shipperFax;
  392 + }
  393 +
  394 + public void setShipperFax(String shipperFax) {
  395 + this.shipperFax = shipperFax == null ? null : shipperFax.trim();
  396 + }
  397 +
  398 + public String getConsigneeCode() {
  399 + return consigneeCode;
  400 + }
  401 +
  402 + public void setConsigneeCode(String consigneeCode) {
  403 + this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
  404 + }
  405 +
  406 + public String getConsigneeCountrycode() {
  407 + return consigneeCountrycode;
  408 + }
  409 +
  410 + public void setConsigneeCountrycode(String consigneeCountrycode) {
  411 + this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
  412 + }
  413 +
  414 + public String getConsigneeFax() {
  415 + return consigneeFax;
  416 + }
  417 +
  418 + public void setConsigneeFax(String consigneeFax) {
  419 + this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
  420 + }
  421 +
  422 + public String getSpecificConsigneename() {
  423 + return specificConsigneename;
  424 + }
  425 +
  426 + public void setSpecificConsigneename(String specificConsigneename) {
  427 + this.specificConsigneename = specificConsigneename == null ? null : specificConsigneename.trim();
  428 + }
  429 +
  430 + public String getSpecificConsigneePhone() {
  431 + return specificConsigneePhone;
  432 + }
  433 +
  434 + public void setSpecificConsigneePhone(String specificConsigneePhone) {
  435 + this.specificConsigneePhone = specificConsigneePhone == null ? null : specificConsigneePhone.trim();
  436 + }
  437 +
  438 + public String getConsigneePhone() {
  439 + return consigneePhone;
  440 + }
  441 +
  442 + public void setConsigneePhone(String consigneePhone) {
  443 + this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
  444 + }
  445 +}
  1 +package com.tianbo.imfClient.model;
  2 +
  3 +import lombok.Data;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +@Data
  8 +public class ResultJson<T> implements Serializable{
  9 + private static final long serialVersionUID = 1L;
  10 +
  11 + // 状态码 正确为200
  12 + private String code = "200";
  13 + // 描述
  14 + private String msg = "";
  15 +
  16 + private String error;
  17 + // 返回对象
  18 + private T data;
  19 + //返回的JWT
  20 + private String jwtToken;
  21 +
  22 + public ResultJson() {
  23 + }
  24 +
  25 + public ResultJson(String code) {
  26 + this.code = code;
  27 + }
  28 +
  29 + public ResultJson(String code, String msg) {
  30 + this.code = code;
  31 + this.msg = msg;
  32 + }
  33 +
  34 + public ResultJson(T data) {
  35 + this.data = data;
  36 + }
  37 +
  38 + public ResultJson(String code, String msg, T data) {
  39 + this.code = code;
  40 + this.msg = msg;
  41 + this.data = data;
  42 + }
  43 +}
@@ -27,7 +27,7 @@ public class IMF_Task { @@ -27,7 +27,7 @@ public class IMF_Task {
27 private RestOperations restTemplate; 27 private RestOperations restTemplate;
28 28
29 29
30 - @Scheduled(fixedRate = 5000) 30 +// @Scheduled(fixedRate = 5000)
31 public void start() throws Exception { 31 public void start() throws Exception {
32 PropertyConfigurator.configure("config/log4j.properties"); 32 PropertyConfigurator.configure("config/log4j.properties");
33 client = IMFClientFactory.createInstance(); 33 client = IMFClientFactory.createInstance();
1 1
2 #服务端口 2 #服务端口
3 -server.port=7003 3 +server.port=8001
4 server.servlet.context-path=${SERVER_CONTEXTPATH:} 4 server.servlet.context-path=${SERVER_CONTEXTPATH:}
5 5
6 #静态资源,设置上传文件的访问,上传文件的路径,要带斜杠 6 #静态资源,设置上传文件的访问,上传文件的路径,要带斜杠
@@ -12,9 +12,9 @@ spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/stat @@ -12,9 +12,9 @@ spring.resources.static-locations=classpath:/META-INF/resources/,classpath:/stat
12 #springcloud 基本配置 12 #springcloud 基本配置
13 13
14 #eureka主机名,会在控制页面中显示 14 #eureka主机名,会在控制页面中显示
15 -spring.cloud.features.enabled=true  
16 -spring.cloud.discovery.enabled=true  
17 -spring.cloud.service-registry.auto-registration.enabled=true 15 +spring.cloud.features.enabled=false
  16 +spring.cloud.discovery.enabled=false
  17 +spring.cloud.service-registry.auto-registration.enabled=false
18 eureka.instance.hostname=${spring.cloud.client.ip-address} 18 eureka.instance.hostname=${spring.cloud.client.ip-address}
19 #eureka服务器页面中status的请求路径 19 #eureka服务器页面中status的请求路径
20 eureka.instance.status-page-url=http://${eureka.instance.hostname}:${server.port}/index 20 eureka.instance.status-page-url=http://${eureka.instance.hostname}:${server.port}/index
@@ -28,7 +28,7 @@ eureka.instance.lease-renewal-interval-in-seconds=15 @@ -28,7 +28,7 @@ eureka.instance.lease-renewal-interval-in-seconds=15
28 eureka.instance.lease-expiration-duration-in-seconds=45 28 eureka.instance.lease-expiration-duration-in-seconds=45
29 29
30 #服务名 30 #服务名
31 -spring.application.name=fimsAgentClient 31 +spring.application.name=changeManifestInfomation
32 32
33 spring.jackson.serialization.fail-on-empty-beans=false 33 spring.jackson.serialization.fail-on-empty-beans=false
34 34
@@ -45,16 +45,16 @@ spring.mvc.view.suffix=.html @@ -45,16 +45,16 @@ spring.mvc.view.suffix=.html
45 45
46 #spring.datasource oracle 46 #spring.datasource oracle
47 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource 47 spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
48 -#spring.datasource.driver-class-name=oracle.jdbc.OracleDriver  
49 -#spring.datasource.url=jdbc:oracle:thin:@10.50.3.68:1521:CGODW  
50 -#spring.datasource.username=CGOETL  
51 -#spring.datasource.password=1q2w3e4r 48 +spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
  49 +spring.datasource.url=jdbc:oracle:thin:@218.28.199.134:8004:CGODB
  50 +spring.datasource.username=CGONMS
  51 +spring.datasource.password=1q2w3e4r
52 52
53 #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码 53 #spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码
54 -spring.datasource.url=jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8  
55 -spring.datasource.username=root  
56 -spring.datasource.password=  
57 -spring.datasource.driver-class-name=com.mysql.jdbc.Driver 54 +#spring.datasource.url=jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8
  55 +#spring.datasource.username=root
  56 +#spring.datasource.password=
  57 +#spring.datasource.driver-class-name=com.mysql.jdbc.Driver
58 spring.datasource.max-idle=10 58 spring.datasource.max-idle=10
59 spring.datasource.max-wait=10000 59 spring.datasource.max-wait=10000
60 spring.datasource.min-idle=5 60 spring.datasource.min-idle=5
@@ -71,9 +71,9 @@ spring.datasource.druid.min-evictable-idle-time-millis=300000 @@ -71,9 +71,9 @@ spring.datasource.druid.min-evictable-idle-time-millis=300000
71 #间隔多久进行一次检测,检测需要关闭的空闲连接 71 #间隔多久进行一次检测,检测需要关闭的空闲连接
72 spring.datasource.druid.time-between-eviction-runs-millis=60000 72 spring.datasource.druid.time-between-eviction-runs-millis=60000
73 #oracle 73 #oracle
74 -#spring.datasource.druid.validation-query=SELECT 'x' FROM DUAL 74 +spring.datasource.druid.validation-query=SELECT 'x' FROM DUAL
75 #mysql 75 #mysql
76 -spring.datasource.druid.validation-query=SELECT 1 FROM DUAL 76 +#spring.datasource.druid.validation-query=SELECT 1 FROM DUAL
77 spring.datasource.druid.test-while-idle=true 77 spring.datasource.druid.test-while-idle=true
78 spring.datasource.druid.test-on-borrow=false 78 spring.datasource.druid.test-on-borrow=false
79 spring.datasource.druid.test-on-return=false 79 spring.datasource.druid.test-on-return=false
@@ -86,7 +86,7 @@ mybatis.type-aliases-package=com.tianbo.imfClient.model @@ -86,7 +86,7 @@ mybatis.type-aliases-package=com.tianbo.imfClient.model
86 86
87 87
88 88
89 -pagehelper.helper-dialect=mysql 89 +pagehelper.helper-dialect=oracle
90 #pagehelper.auto-dialect=true 90 #pagehelper.auto-dialect=true
91 #pagehelper.auto-runtime-dialect=true 91 #pagehelper.auto-runtime-dialect=true
92 pagehelper.reasonable=true 92 pagehelper.reasonable=true
@@ -4,8 +4,8 @@ @@ -4,8 +4,8 @@
4 "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> 4 "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
5 <generatorConfiguration> 5 <generatorConfiguration>
6 <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包--> 6 <!-- 数据库驱动:选择你的本地硬盘上面的数据库驱动包-->
7 - <classPathEntry location="/Users/mrz/Downloads/mybatis-generator-core-1.3.2/lib/mysql-connector-java-5.1.25-bin.jar"/>  
8 - <!--<classPathEntry location="/Users/mrz/Documents/maven/ojdbc6.jar"/>--> 7 + <!--<classPathEntry location="/Users/mrz/Downloads/mybatis-generator-core-1.3.2/lib/mysql-connector-java-5.1.25-bin.jar"/>-->
  8 + <classPathEntry location="/Users/mrz/Documents/maven/ojdbc6.jar"/>
9 <context id="DB2Tables" targetRuntime="MyBatis3"> 9 <context id="DB2Tables" targetRuntime="MyBatis3">
10 <commentGenerator> 10 <commentGenerator>
11 <property name="suppressDate" value="true"/> 11 <property name="suppressDate" value="true"/>
@@ -13,16 +13,16 @@ @@ -13,16 +13,16 @@
13 <property name="suppressAllComments" value="true"/> 13 <property name="suppressAllComments" value="true"/>
14 </commentGenerator> 14 </commentGenerator>
15 <!--数据库链接URL,用户名、密码 --> 15 <!--数据库链接URL,用户名、密码 -->
16 - <jdbcConnection driverClass="com.mysql.jdbc.Driver"  
17 - connectionURL="jdbc:mysql://127.0.0.1:3307/statistics"  
18 - userId="root"  
19 - password="">  
20 - </jdbcConnection>  
21 - <!--<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"-->  
22 - <!--connectionURL="jdbc:oracle:thin:@10.50.3.68:1521:CGODW"-->  
23 - <!--userId="CGOETL"-->  
24 - <!--password="1q2w3e4r">--> 16 + <!--<jdbcConnection driverClass="com.mysql.jdbc.Driver"-->
  17 + <!--connectionURL="jdbc:mysql://127.0.0.1:3307/statistics"-->
  18 + <!--userId="root"-->
  19 + <!--password="">-->
25 <!--</jdbcConnection>--> 20 <!--</jdbcConnection>-->
  21 + <jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
  22 + connectionURL="jdbc:oracle:thin:@218.28.199.134:8004:CGODB"
  23 + userId="CGONMS"
  24 + password="1q2w3e4r">
  25 + </jdbcConnection>
26 <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 26 <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
27 NUMERIC 类型解析为java.math.BigDecimal --> 27 NUMERIC 类型解析为java.math.BigDecimal -->
28 <!--<javaTypeResolver>--> 28 <!--<javaTypeResolver>-->
@@ -45,6 +45,6 @@ @@ -45,6 +45,6 @@
45 <property name="enableSubPackages" value="true"/> 45 <property name="enableSubPackages" value="true"/>
46 </javaClientGenerator> 46 </javaClientGenerator>
47 <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名--> 47 <!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
48 - <table tableName="attachment" domainObjectName="Attachment" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table> 48 + <table tableName="ORIGINMANIFESTMASTER" domainObjectName="ORIGINMANIFESTMASTER" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
49 </context> 49 </context>
50 </generatorConfiguration> 50 </generatorConfiguration>
  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.tianbo.imfClient.dao.ORIGINMANIFESTMASTERMapper" >
  4 + <resultMap id="BaseResultMap" type="com.tianbo.imfClient.model.ORIGINMANIFESTMASTER" >
  5 + <result column="AUTOID" property="autoid" jdbcType="VARCHAR" />
  6 + <result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
  7 + <result column="SEGMENT" property="segment" jdbcType="VARCHAR" />
  8 + <result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
  9 + <result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
  10 + <result column="TOTALWEIGHT" property="totalweight" jdbcType="VARCHAR" />
  11 + <result column="TOTALPIECE" property="totalpiece" jdbcType="VARCHAR" />
  12 + <result column="MANIFESTTOTALPIECE" property="manifesttotalpiece" jdbcType="VARCHAR" />
  13 + <result column="MANIFESTTOTALWEIGHT" property="manifesttotalweight" jdbcType="VARCHAR" />
  14 + <result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
  15 + <result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
  16 + <result column="CUSTOMSSTATUS" property="customsstatus" jdbcType="VARCHAR" />
  17 + <result column="CARRIER1" property="carrier1" jdbcType="VARCHAR" />
  18 + <result column="ARRIVALSTATION1" property="arrivalstation1" jdbcType="VARCHAR" />
  19 + <result column="CARRIER2" property="carrier2" jdbcType="VARCHAR" />
  20 + <result column="ARRIVALSTATION2" property="arrivalstation2" jdbcType="VARCHAR" />
  21 + <result column="CARRIER3" property="carrier3" jdbcType="VARCHAR" />
  22 + <result column="ARRIVALSTATION3" property="arrivalstation3" jdbcType="VARCHAR" />
  23 + <result column="PAYMODE" property="paymode" jdbcType="VARCHAR" />
  24 + <result column="SPECIALGOODSCODE" property="specialgoodscode" jdbcType="VARCHAR" />
  25 + <result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
  26 + <result column="SHIPPERNAME" property="shippername" jdbcType="VARCHAR" />
  27 + <result column="SHIPPERADDRESS" property="shipperaddress" jdbcType="VARCHAR" />
  28 + <result column="CONSIGNEENAME" property="consigneename" jdbcType="VARCHAR" />
  29 + <result column="CONSIGNEEADDRESS" property="consigneeaddress" jdbcType="VARCHAR" />
  30 + <result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
  31 + <result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
  32 + <result column="FLIGHT_DATE" property="flightDate" jdbcType="TIMESTAMP" />
  33 + <result column="STATUS" property="status" jdbcType="VARCHAR" />
  34 + <result column="ISBATCH" property="isbatch" jdbcType="VARCHAR" />
  35 + <result column="ORIGINATINGSTATION_BILL" property="originatingstationBill" jdbcType="VARCHAR" />
  36 + <result column="DESTINATIONSTATION_BILL" property="destinationstationBill" jdbcType="VARCHAR" />
  37 + <result column="REPORTORDER" property="reportorder" jdbcType="VARCHAR" />
  38 + <result column="ISLAST" property="islast" jdbcType="VARCHAR" />
  39 + <result column="SHIPPER_CODE" property="shipperCode" jdbcType="VARCHAR" />
  40 + <result column="SHIPPER_COUNTRYCODE" property="shipperCountrycode" jdbcType="VARCHAR" />
  41 + <result column="SHIPPER_PHONE" property="shipperPhone" jdbcType="VARCHAR" />
  42 + <result column="SHIPPER_FAX" property="shipperFax" jdbcType="VARCHAR" />
  43 + <result column="CONSIGNEE_CODE" property="consigneeCode" jdbcType="VARCHAR" />
  44 + <result column="CONSIGNEE_COUNTRYCODE" property="consigneeCountrycode" jdbcType="VARCHAR" />
  45 + <result column="CONSIGNEE_FAX" property="consigneeFax" jdbcType="VARCHAR" />
  46 + <result column="SPECIFIC_CONSIGNEENAME" property="specificConsigneename" jdbcType="VARCHAR" />
  47 + <result column="SPECIFIC_CONSIGNEE_PHONE" property="specificConsigneePhone" jdbcType="VARCHAR" />
  48 + <result column="CONSIGNEE_PHONE" property="consigneePhone" jdbcType="VARCHAR" />
  49 + </resultMap>
  50 + <insert id="insert" parameterType="com.tianbo.imfClient.model.ORIGINMANIFESTMASTER" >
  51 + insert into ORIGINMANIFESTMASTER (AUTOID, WAYBILLNOMASTER, SEGMENT,
  52 + ORIGINATINGSTATION, DESTINATIONSTATION,
  53 + TOTALWEIGHT, TOTALPIECE, MANIFESTTOTALPIECE,
  54 + MANIFESTTOTALWEIGHT, FLIGHTNO, PRODUCTNAME,
  55 + CUSTOMSSTATUS, CARRIER1, ARRIVALSTATION1,
  56 + CARRIER2, ARRIVALSTATION2, CARRIER3,
  57 + ARRIVALSTATION3, PAYMODE, SPECIALGOODSCODE,
  58 + CUSTOMSCODE, SHIPPERNAME, SHIPPERADDRESS,
  59 + CONSIGNEENAME, CONSIGNEEADDRESS, RECEIPTINFORMATION,
  60 + CREATEDATE, FLIGHT_DATE, STATUS,
  61 + ISBATCH, ORIGINATINGSTATION_BILL, DESTINATIONSTATION_BILL,
  62 + REPORTORDER, ISLAST, SHIPPER_CODE,
  63 + SHIPPER_COUNTRYCODE, SHIPPER_PHONE, SHIPPER_FAX,
  64 + CONSIGNEE_CODE, CONSIGNEE_COUNTRYCODE, CONSIGNEE_FAX,
  65 + SPECIFIC_CONSIGNEENAME, SPECIFIC_CONSIGNEE_PHONE,
  66 + CONSIGNEE_PHONE)
  67 + values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{segment,jdbcType=VARCHAR},
  68 + #{originatingstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR},
  69 + #{totalweight,jdbcType=VARCHAR}, #{totalpiece,jdbcType=VARCHAR}, #{manifesttotalpiece,jdbcType=VARCHAR},
  70 + #{manifesttotalweight,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR},
  71 + #{customsstatus,jdbcType=VARCHAR}, #{carrier1,jdbcType=VARCHAR}, #{arrivalstation1,jdbcType=VARCHAR},
  72 + #{carrier2,jdbcType=VARCHAR}, #{arrivalstation2,jdbcType=VARCHAR}, #{carrier3,jdbcType=VARCHAR},
  73 + #{arrivalstation3,jdbcType=VARCHAR}, #{paymode,jdbcType=VARCHAR}, #{specialgoodscode,jdbcType=VARCHAR},
  74 + #{customscode,jdbcType=VARCHAR}, #{shippername,jdbcType=VARCHAR}, #{shipperaddress,jdbcType=VARCHAR},
  75 + #{consigneename,jdbcType=VARCHAR}, #{consigneeaddress,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
  76 + #{createdate,jdbcType=TIMESTAMP}, #{flightDate,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR},
  77 + #{isbatch,jdbcType=VARCHAR}, #{originatingstationBill,jdbcType=VARCHAR}, #{destinationstationBill,jdbcType=VARCHAR},
  78 + #{reportorder,jdbcType=VARCHAR}, #{islast,jdbcType=VARCHAR}, #{shipperCode,jdbcType=VARCHAR},
  79 + #{shipperCountrycode,jdbcType=VARCHAR}, #{shipperPhone,jdbcType=VARCHAR}, #{shipperFax,jdbcType=VARCHAR},
  80 + #{consigneeCode,jdbcType=VARCHAR}, #{consigneeCountrycode,jdbcType=VARCHAR}, #{consigneeFax,jdbcType=VARCHAR},
  81 + #{specificConsigneename,jdbcType=VARCHAR}, #{specificConsigneePhone,jdbcType=VARCHAR},
  82 + #{consigneePhone,jdbcType=VARCHAR})
  83 + </insert>
  84 + <insert id="insertSelective" parameterType="com.tianbo.imfClient.model.ORIGINMANIFESTMASTER" >
  85 + insert into ORIGINMANIFESTMASTER
  86 + <trim prefix="(" suffix=")" suffixOverrides="," >
  87 + <if test="autoid != null" >
  88 + AUTOID,
  89 + </if>
  90 + <if test="waybillnomaster != null" >
  91 + WAYBILLNOMASTER,
  92 + </if>
  93 + <if test="segment != null" >
  94 + SEGMENT,
  95 + </if>
  96 + <if test="originatingstation != null" >
  97 + ORIGINATINGSTATION,
  98 + </if>
  99 + <if test="destinationstation != null" >
  100 + DESTINATIONSTATION,
  101 + </if>
  102 + <if test="totalweight != null" >
  103 + TOTALWEIGHT,
  104 + </if>
  105 + <if test="totalpiece != null" >
  106 + TOTALPIECE,
  107 + </if>
  108 + <if test="manifesttotalpiece != null" >
  109 + MANIFESTTOTALPIECE,
  110 + </if>
  111 + <if test="manifesttotalweight != null" >
  112 + MANIFESTTOTALWEIGHT,
  113 + </if>
  114 + <if test="flightno != null" >
  115 + FLIGHTNO,
  116 + </if>
  117 + <if test="productname != null" >
  118 + PRODUCTNAME,
  119 + </if>
  120 + <if test="customsstatus != null" >
  121 + CUSTOMSSTATUS,
  122 + </if>
  123 + <if test="carrier1 != null" >
  124 + CARRIER1,
  125 + </if>
  126 + <if test="arrivalstation1 != null" >
  127 + ARRIVALSTATION1,
  128 + </if>
  129 + <if test="carrier2 != null" >
  130 + CARRIER2,
  131 + </if>
  132 + <if test="arrivalstation2 != null" >
  133 + ARRIVALSTATION2,
  134 + </if>
  135 + <if test="carrier3 != null" >
  136 + CARRIER3,
  137 + </if>
  138 + <if test="arrivalstation3 != null" >
  139 + ARRIVALSTATION3,
  140 + </if>
  141 + <if test="paymode != null" >
  142 + PAYMODE,
  143 + </if>
  144 + <if test="specialgoodscode != null" >
  145 + SPECIALGOODSCODE,
  146 + </if>
  147 + <if test="customscode != null" >
  148 + CUSTOMSCODE,
  149 + </if>
  150 + <if test="shippername != null" >
  151 + SHIPPERNAME,
  152 + </if>
  153 + <if test="shipperaddress != null" >
  154 + SHIPPERADDRESS,
  155 + </if>
  156 + <if test="consigneename != null" >
  157 + CONSIGNEENAME,
  158 + </if>
  159 + <if test="consigneeaddress != null" >
  160 + CONSIGNEEADDRESS,
  161 + </if>
  162 + <if test="receiptinformation != null" >
  163 + RECEIPTINFORMATION,
  164 + </if>
  165 + <if test="createdate != null" >
  166 + CREATEDATE,
  167 + </if>
  168 + <if test="flightDate != null" >
  169 + FLIGHT_DATE,
  170 + </if>
  171 + <if test="status != null" >
  172 + STATUS,
  173 + </if>
  174 + <if test="isbatch != null" >
  175 + ISBATCH,
  176 + </if>
  177 + <if test="originatingstationBill != null" >
  178 + ORIGINATINGSTATION_BILL,
  179 + </if>
  180 + <if test="destinationstationBill != null" >
  181 + DESTINATIONSTATION_BILL,
  182 + </if>
  183 + <if test="reportorder != null" >
  184 + REPORTORDER,
  185 + </if>
  186 + <if test="islast != null" >
  187 + ISLAST,
  188 + </if>
  189 + <if test="shipperCode != null" >
  190 + SHIPPER_CODE,
  191 + </if>
  192 + <if test="shipperCountrycode != null" >
  193 + SHIPPER_COUNTRYCODE,
  194 + </if>
  195 + <if test="shipperPhone != null" >
  196 + SHIPPER_PHONE,
  197 + </if>
  198 + <if test="shipperFax != null" >
  199 + SHIPPER_FAX,
  200 + </if>
  201 + <if test="consigneeCode != null" >
  202 + CONSIGNEE_CODE,
  203 + </if>
  204 + <if test="consigneeCountrycode != null" >
  205 + CONSIGNEE_COUNTRYCODE,
  206 + </if>
  207 + <if test="consigneeFax != null" >
  208 + CONSIGNEE_FAX,
  209 + </if>
  210 + <if test="specificConsigneename != null" >
  211 + SPECIFIC_CONSIGNEENAME,
  212 + </if>
  213 + <if test="specificConsigneePhone != null" >
  214 + SPECIFIC_CONSIGNEE_PHONE,
  215 + </if>
  216 + <if test="consigneePhone != null" >
  217 + CONSIGNEE_PHONE,
  218 + </if>
  219 + </trim>
  220 + <trim prefix="values (" suffix=")" suffixOverrides="," >
  221 + <if test="autoid != null" >
  222 + #{autoid,jdbcType=VARCHAR},
  223 + </if>
  224 + <if test="waybillnomaster != null" >
  225 + #{waybillnomaster,jdbcType=VARCHAR},
  226 + </if>
  227 + <if test="segment != null" >
  228 + #{segment,jdbcType=VARCHAR},
  229 + </if>
  230 + <if test="originatingstation != null" >
  231 + #{originatingstation,jdbcType=VARCHAR},
  232 + </if>
  233 + <if test="destinationstation != null" >
  234 + #{destinationstation,jdbcType=VARCHAR},
  235 + </if>
  236 + <if test="totalweight != null" >
  237 + #{totalweight,jdbcType=VARCHAR},
  238 + </if>
  239 + <if test="totalpiece != null" >
  240 + #{totalpiece,jdbcType=VARCHAR},
  241 + </if>
  242 + <if test="manifesttotalpiece != null" >
  243 + #{manifesttotalpiece,jdbcType=VARCHAR},
  244 + </if>
  245 + <if test="manifesttotalweight != null" >
  246 + #{manifesttotalweight,jdbcType=VARCHAR},
  247 + </if>
  248 + <if test="flightno != null" >
  249 + #{flightno,jdbcType=VARCHAR},
  250 + </if>
  251 + <if test="productname != null" >
  252 + #{productname,jdbcType=VARCHAR},
  253 + </if>
  254 + <if test="customsstatus != null" >
  255 + #{customsstatus,jdbcType=VARCHAR},
  256 + </if>
  257 + <if test="carrier1 != null" >
  258 + #{carrier1,jdbcType=VARCHAR},
  259 + </if>
  260 + <if test="arrivalstation1 != null" >
  261 + #{arrivalstation1,jdbcType=VARCHAR},
  262 + </if>
  263 + <if test="carrier2 != null" >
  264 + #{carrier2,jdbcType=VARCHAR},
  265 + </if>
  266 + <if test="arrivalstation2 != null" >
  267 + #{arrivalstation2,jdbcType=VARCHAR},
  268 + </if>
  269 + <if test="carrier3 != null" >
  270 + #{carrier3,jdbcType=VARCHAR},
  271 + </if>
  272 + <if test="arrivalstation3 != null" >
  273 + #{arrivalstation3,jdbcType=VARCHAR},
  274 + </if>
  275 + <if test="paymode != null" >
  276 + #{paymode,jdbcType=VARCHAR},
  277 + </if>
  278 + <if test="specialgoodscode != null" >
  279 + #{specialgoodscode,jdbcType=VARCHAR},
  280 + </if>
  281 + <if test="customscode != null" >
  282 + #{customscode,jdbcType=VARCHAR},
  283 + </if>
  284 + <if test="shippername != null" >
  285 + #{shippername,jdbcType=VARCHAR},
  286 + </if>
  287 + <if test="shipperaddress != null" >
  288 + #{shipperaddress,jdbcType=VARCHAR},
  289 + </if>
  290 + <if test="consigneename != null" >
  291 + #{consigneename,jdbcType=VARCHAR},
  292 + </if>
  293 + <if test="consigneeaddress != null" >
  294 + #{consigneeaddress,jdbcType=VARCHAR},
  295 + </if>
  296 + <if test="receiptinformation != null" >
  297 + #{receiptinformation,jdbcType=VARCHAR},
  298 + </if>
  299 + <if test="createdate != null" >
  300 + #{createdate,jdbcType=TIMESTAMP},
  301 + </if>
  302 + <if test="flightDate != null" >
  303 + #{flightDate,jdbcType=TIMESTAMP},
  304 + </if>
  305 + <if test="status != null" >
  306 + #{status,jdbcType=VARCHAR},
  307 + </if>
  308 + <if test="isbatch != null" >
  309 + #{isbatch,jdbcType=VARCHAR},
  310 + </if>
  311 + <if test="originatingstationBill != null" >
  312 + #{originatingstationBill,jdbcType=VARCHAR},
  313 + </if>
  314 + <if test="destinationstationBill != null" >
  315 + #{destinationstationBill,jdbcType=VARCHAR},
  316 + </if>
  317 + <if test="reportorder != null" >
  318 + #{reportorder,jdbcType=VARCHAR},
  319 + </if>
  320 + <if test="islast != null" >
  321 + #{islast,jdbcType=VARCHAR},
  322 + </if>
  323 + <if test="shipperCode != null" >
  324 + #{shipperCode,jdbcType=VARCHAR},
  325 + </if>
  326 + <if test="shipperCountrycode != null" >
  327 + #{shipperCountrycode,jdbcType=VARCHAR},
  328 + </if>
  329 + <if test="shipperPhone != null" >
  330 + #{shipperPhone,jdbcType=VARCHAR},
  331 + </if>
  332 + <if test="shipperFax != null" >
  333 + #{shipperFax,jdbcType=VARCHAR},
  334 + </if>
  335 + <if test="consigneeCode != null" >
  336 + #{consigneeCode,jdbcType=VARCHAR},
  337 + </if>
  338 + <if test="consigneeCountrycode != null" >
  339 + #{consigneeCountrycode,jdbcType=VARCHAR},
  340 + </if>
  341 + <if test="consigneeFax != null" >
  342 + #{consigneeFax,jdbcType=VARCHAR},
  343 + </if>
  344 + <if test="specificConsigneename != null" >
  345 + #{specificConsigneename,jdbcType=VARCHAR},
  346 + </if>
  347 + <if test="specificConsigneePhone != null" >
  348 + #{specificConsigneePhone,jdbcType=VARCHAR},
  349 + </if>
  350 + <if test="consigneePhone != null" >
  351 + #{consigneePhone,jdbcType=VARCHAR},
  352 + </if>
  353 + </trim>
  354 + </insert>
  355 + <update id="changeFlightDate" parameterType="hashmap">
  356 + UPDATE ORIGINMANIFESTMASTER
  357 + set FLIGHT_DATE = "TO_DATE"(#{setDate},'yyyy-mm-dd')
  358 + WHERE
  359 + FLIGHT_DATE = "TO_DATE"(#{currDate},'yyyy-mm-dd')
  360 + AND FLIGHTNO=#{flightNo}
  361 + </update>
  362 +</mapper>