正在显示
10 个修改的文件
包含
508 行增加
和
42 行删除
META-INF/MANIFEST.MF
已删除
100644 → 0
| 1 | -Manifest-Version: 1.0 | ||
| 2 | -Class-Path: jackson-datatype-jdk8-2.9.7.jar jackson-databind-2.9.7.jar | ||
| 3 | - jsqlparser-1.0.jar druid-spring-boot-starter-1.1.9.jar com.ibm.mq.to | ||
| 4 | - ols.ras.jar pagehelper-spring-boot-starter-1.2.3.jar spring-context-5 | ||
| 5 | - .1.2.RELEASE.jar spring-aop-5.1.2.RELEASE.jar ProcessService.jar drui | ||
| 6 | - d-1.1.9.jar com.ibm.mq.postcard.jar com.ibm.mq.soap.jar commons-loggi | ||
| 7 | - ng-1.1.1.jar wstx-asl-3.2.4.jar commons-lang-2.4.jar returnXml.jar my | ||
| 8 | - batis-spring-1.3.2.jar imfmsg.jar spring-tx-5.1.2.RELEASE.jar jackson | ||
| 9 | - -core-2.9.7.jar cxf-xjc-ts-2.3.2.jar cxf-xjc-dv-2.3.2.jar log4j-to-sl | ||
| 10 | - f4j-2.11.1.jar HeartbeatService.jar javax.annotation-api-1.3.2.jar my | ||
| 11 | - batis-spring-boot-starter-1.3.2.jar xml-apis-1.4.01.jar neethi-2.0.4. | ||
| 12 | - jar commons-io-2.5.jar hibernate-validator-6.0.13.Final.jar com.ibm.m | ||
| 13 | - q.jmqi.jar jackson-datatype-jsr310-2.9.7.jar snakeyaml-1.23.jar slf4j | ||
| 14 | - -api-1.7.25.jar spring-jcl-5.1.2.RELEASE.jar spring-jdbc-5.1.2.RELEAS | ||
| 15 | - E.jar UploadService.jar cxf-2.3.2.jar axiom-impl-1.2.7.jar spring-boo | ||
| 16 | - t-starter-web-2.1.0.RELEASE.jar com.ibm.mqjms.jar com.ibm.mq.headers. | ||
| 17 | - jar jul-to-slf4j-1.7.25.jar com.ibm.mq.commonservices.jar com.ibm.mqe | ||
| 18 | - tclient.jar apiConfig.jar mybatis-3.4.6.jar spring-expression-5.1.2.R | ||
| 19 | - ELEASE.jar wsdl4j-1.6.2.jar xstream-1.4.10.jar com.ibm.mq.fta.jar ger | ||
| 20 | - onimo-javamail_1.4_spec-1.2.jar xmlbeans-2.4.0.jar spring-boot-autoco | ||
| 21 | - nfigure-2.1.0.RELEASE.jar cxf-xjc-boolean-3.2.3.jar dom4j-2.1.0.jar g | ||
| 22 | - eronimo-stax-api_1.0_spec-1.0.1.jar classmate-1.4.0.jar xpp3_min-1.1. | ||
| 23 | - 4c.jar HikariCP-3.2.0.jar CL3Nonexport.jar jboss-logging-3.3.2.Final. | ||
| 24 | - jar spring-beans-5.1.2.RELEASE.jar spring-boot-starter-json-2.1.0.REL | ||
| 25 | - EASE.jar jackson-annotations-2.9.0.jar sigar.jar mybatis-spring-boot- | ||
| 26 | - autoconfigure-1.3.2.jar axiom-api-1.2.7.jar IMFClient.1.0.0.jar com.i | ||
| 27 | - bm.mq.axis2.jar XmlSchema-1.4.7.jar com.ibm.mq.defaultconfig.jar com. | ||
| 28 | - ibm.mq.pcf.jar pagehelper-spring-boot-autoconfigure-1.2.3.jar validat | ||
| 29 | - ion-api-2.0.1.Final.jar mybatis-generator-core-1.3.6.jar com.ibm.mq.j | ||
| 30 | - ms.Nojndi.jar spring-boot-starter-logging-2.1.0.RELEASE.jar spring-we | ||
| 31 | - b-5.1.2.RELEASE.jar mysql-connector-java-8.0.13.jar spring-boot-start | ||
| 32 | - er-jdbc-2.1.0.RELEASE.jar cxf-manifest.jar xmlsec-1.4.4.jar jaxen-1.1 | ||
| 33 | - .6.jar spring-core-5.1.2.RELEASE.jar pagehelper-5.1.2.jar CL3Export.j | ||
| 34 | - ar spring-boot-2.1.0.RELEASE.jar cxf-xjc-bug671-2.3.2.jar geronimo-ac | ||
| 35 | - tivation_1.1_spec-1.0.1.jar log4j-api-2.11.1.jar spring-webmvc-5.1.2. | ||
| 36 | - RELEASE.jar logback-classic-1.2.3.jar com.ibm.mq.jar connector.jar lo | ||
| 37 | - g4j-1.2.17.jar jackson-module-parameter-names-2.9.7.jar spring-boot-s | ||
| 38 | - tarter-2.1.0.RELEASE.jar stax-api-1.0.1.jar xmlpull-1.1.3.1.jar logba | ||
| 39 | - ck-core-1.2.3.jar | ||
| 40 | -Main-Class: com.sy.AnalysisImfApplication | ||
| 41 | - |
| @@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired; | @@ -10,6 +10,7 @@ import org.springframework.beans.factory.annotation.Autowired; | ||
| 10 | import org.springframework.stereotype.Component; | 10 | import org.springframework.stereotype.Component; |
| 11 | 11 | ||
| 12 | import javax.annotation.PostConstruct; | 12 | import javax.annotation.PostConstruct; |
| 13 | +import java.util.Date; | ||
| 13 | import java.util.List; | 14 | import java.util.List; |
| 14 | 15 | ||
| 15 | 16 | ||
| @@ -40,6 +41,9 @@ public class AnalysisRoute { | @@ -40,6 +41,9 @@ public class AnalysisRoute { | ||
| 40 | @Autowired | 41 | @Autowired |
| 41 | private ResMessageService resMessageService; | 42 | private ResMessageService resMessageService; |
| 42 | 43 | ||
| 44 | + @Autowired | ||
| 45 | + private RepertoryService repertoryService; | ||
| 46 | + | ||
| 43 | protected static final Logger logger = Logger.getLogger(AnalysisRoute.class); | 47 | protected static final Logger logger = Logger.getLogger(AnalysisRoute.class); |
| 44 | 48 | ||
| 45 | private static AnalysisRoute route; | 49 | private static AnalysisRoute route; |
| @@ -64,6 +68,7 @@ public class AnalysisRoute { | @@ -64,6 +68,7 @@ public class AnalysisRoute { | ||
| 64 | route.commandService = this.commandService; | 68 | route.commandService = this.commandService; |
| 65 | route.listService = this.listService; | 69 | route.listService = this.listService; |
| 66 | route.resMessageService = this.resMessageService; | 70 | route.resMessageService = this.resMessageService; |
| 71 | + route.repertoryService = this.repertoryService; | ||
| 67 | } | 72 | } |
| 68 | 73 | ||
| 69 | public static void analysis(String string) { | 74 | public static void analysis(String string) { |
| @@ -101,12 +106,62 @@ public class AnalysisRoute { | @@ -101,12 +106,62 @@ public class AnalysisRoute { | ||
| 101 | } | 106 | } |
| 102 | } else if (stype.equals("ES1")) { | 107 | } else if (stype.equals("ES1")) { |
| 103 | airone_ex_stock exStock = exStockAnalysis.toExStock(message); | 108 | airone_ex_stock exStock = exStockAnalysis.toExStock(message); |
| 109 | + T_AIR_REPERTORY repertory = route.repertoryService.selectByPermaryKey(exStock.getMawbNo()); | ||
| 110 | + if(repertory!=null){ | ||
| 111 | + if(repertory.getCnt()>exStock.getCnt().longValue() && repertory.getWt().longValue()>exStock.getWt().longValue()){ | ||
| 112 | + repertory.setCnt(repertory.getCnt()-exStock.getCnt().longValue()); | ||
| 113 | + repertory.setWt(repertory.getWt().subtract(exStock.getWt())); | ||
| 114 | + repertory.setUpdateTime(new Date()); | ||
| 115 | + route.repertoryService.updateEntry(repertory); | ||
| 116 | + } | ||
| 117 | + }else{ | ||
| 118 | + T_AIR_REPERTORY airRepertoryrepertory = new T_AIR_REPERTORY(); | ||
| 119 | + airRepertoryrepertory.setAreaCode(exStock.getAreaCode()); | ||
| 120 | + airRepertoryrepertory.setSupCode(exStock.getSupCode()); | ||
| 121 | + airRepertoryrepertory.setSupName(exStock.getSupName()); | ||
| 122 | + airRepertoryrepertory.setVoyageNo(exStock.getVoyageNo()); | ||
| 123 | + airRepertoryrepertory.setIeDate(exStock.getIeDate()); | ||
| 124 | + airRepertoryrepertory.setMawbNo(exStock.getMawbNo()); | ||
| 125 | + airRepertoryrepertory.setIeFlag(exStock.getIeFlag()); | ||
| 126 | + airRepertoryrepertory.setCnt(exStock.getCnt().longValue()); | ||
| 127 | + airRepertoryrepertory.setWt(exStock.getWt()); | ||
| 128 | + airRepertoryrepertory.setGoodName(exStock.getgName()); | ||
| 129 | + airRepertoryrepertory.setCopCode(exStock.getCopCode()); | ||
| 130 | + airRepertoryrepertory.setCopName(exStock.getCopName()); | ||
| 131 | + airRepertoryrepertory.setOpCode(exStock.getInputCode()); | ||
| 132 | + airRepertoryrepertory.setCreateDate(new Date()); | ||
| 133 | + route.repertoryService.insertEntry(airRepertoryrepertory); | ||
| 134 | + } | ||
| 104 | route.exStockService.save(exStock); | 135 | route.exStockService.save(exStock); |
| 105 | } else if (stype.equals("CLR")) { | 136 | } else if (stype.equals("CLR")) { |
| 106 | v_express_billno billno = clrAnalysis.toBill(message); | 137 | v_express_billno billno = clrAnalysis.toBill(message); |
| 107 | route.clrService.save(billno); | 138 | route.clrService.save(billno); |
| 108 | } else if (stype.equals("IS1")) { | 139 | } else if (stype.equals("IS1")) { |
| 109 | airone_im_stock imStock = imStockAnalysis.toImStock(message); | 140 | airone_im_stock imStock = imStockAnalysis.toImStock(message); |
| 141 | + T_AIR_REPERTORY repertory = route.repertoryService.selectByPermaryKey(imStock.getMawbNo()); | ||
| 142 | + if(repertory!=null){ | ||
| 143 | + repertory.setCnt(repertory.getCnt()+imStock.getCnt()); | ||
| 144 | + repertory.setWt(repertory.getWt().add(imStock.getWt())); | ||
| 145 | + repertory.setUpdateTime(new Date()); | ||
| 146 | + route.repertoryService.updateEntry(repertory); | ||
| 147 | + }else{ | ||
| 148 | + T_AIR_REPERTORY airRepertoryrepertory = new T_AIR_REPERTORY(); | ||
| 149 | + airRepertoryrepertory.setAreaCode(imStock.getAreaCode()); | ||
| 150 | + airRepertoryrepertory.setSupCode(imStock.getSupCode()); | ||
| 151 | + airRepertoryrepertory.setSupName(imStock.getSupName()); | ||
| 152 | + airRepertoryrepertory.setVoyageNo(imStock.getVoyageNo()); | ||
| 153 | + airRepertoryrepertory.setIeDate(imStock.getIeDate()); | ||
| 154 | + airRepertoryrepertory.setMawbNo(imStock.getMawbNo()); | ||
| 155 | + airRepertoryrepertory.setCnt(imStock.getCnt()); | ||
| 156 | + airRepertoryrepertory.setWt(imStock.getWt()); | ||
| 157 | + airRepertoryrepertory.setIeFlag(imStock.getIeFlag()); | ||
| 158 | + airRepertoryrepertory.setGoodName(imStock.getgName()); | ||
| 159 | + airRepertoryrepertory.setCopCode(imStock.getCopCode()); | ||
| 160 | + airRepertoryrepertory.setCopName(imStock.getCopName()); | ||
| 161 | + airRepertoryrepertory.setOpCode(imStock.getInputCode()); | ||
| 162 | + airRepertoryrepertory.setCreateDate(new Date()); | ||
| 163 | + route.repertoryService.insertEntry(airRepertoryrepertory); | ||
| 164 | + } | ||
| 110 | route.imStockService.save(imStock); | 165 | route.imStockService.save(imStock); |
| 111 | } else if (stype.equals("GAT")) { | 166 | } else if (stype.equals("GAT")) { |
| 112 | port_manifest_head portHead = gatAnaluysis.toPortHead(message); | 167 | port_manifest_head portHead = gatAnaluysis.toPortHead(message); |
| @@ -128,6 +183,7 @@ public class AnalysisRoute { | @@ -128,6 +183,7 @@ public class AnalysisRoute { | ||
| 128 | } | 183 | } |
| 129 | } | 184 | } |
| 130 | 185 | ||
| 186 | + | ||
| 131 | } | 187 | } |
| 132 | 188 | ||
| 133 | 189 |
| @@ -485,6 +485,7 @@ public class LogicOperation { | @@ -485,6 +485,7 @@ public class LogicOperation { | ||
| 485 | 485 | ||
| 486 | ENTERCANCCEL entercanccel = logic.enterCancelServer.selectByManifest(list[i]); | 486 | ENTERCANCCEL entercanccel = logic.enterCancelServer.selectByManifest(list[i]); |
| 487 | if (entercanccel != null) { | 487 | if (entercanccel != null) { |
| 488 | + if(entercanccel.getVename().equals(landBusinessTypeList.getTrailerFrameNo())){ | ||
| 488 | if ("0".equals(entercanccel.getIsfreeze())) { | 489 | if ("0".equals(entercanccel.getIsfreeze())) { |
| 489 | entercanccel.setIsfreeze("1"); | 490 | entercanccel.setIsfreeze("1"); |
| 490 | entercanccel.setEndport(landBusinessTypeList.getEndstation()); | 491 | entercanccel.setEndport(landBusinessTypeList.getEndstation()); |
| @@ -492,6 +493,7 @@ public class LogicOperation { | @@ -492,6 +493,7 @@ public class LogicOperation { | ||
| 492 | entercanccel.setUpdateTime(new Date()); | 493 | entercanccel.setUpdateTime(new Date()); |
| 493 | logic.enterCancelServer.updateByPermaryKey(entercanccel); | 494 | logic.enterCancelServer.updateByPermaryKey(entercanccel); |
| 494 | } | 495 | } |
| 496 | + } | ||
| 495 | }else { | 497 | }else { |
| 496 | if("E".equals(landBusinessTypeList.getTurnoverflag())){ | 498 | if("E".equals(landBusinessTypeList.getTurnoverflag())){ |
| 497 | ENTERCANCCEL canccel = new ENTERCANCCEL(); | 499 | ENTERCANCCEL canccel = new ENTERCANCCEL(); |
| 1 | +package com.sy.mapper; | ||
| 2 | + | ||
| 3 | +import com.sy.model.T_AIR_REPERTORY; | ||
| 4 | +import org.springframework.stereotype.Component; | ||
| 5 | + | ||
| 6 | +@Component | ||
| 7 | +public interface T_AIR_REPERTORYMapper { | ||
| 8 | + int deleteByPrimaryKey(String mawbNo); | ||
| 9 | + | ||
| 10 | + int insert(T_AIR_REPERTORY record); | ||
| 11 | + | ||
| 12 | + int insertSelective(T_AIR_REPERTORY record); | ||
| 13 | + | ||
| 14 | + T_AIR_REPERTORY selectByPrimaryKey(String mawbNo); | ||
| 15 | + | ||
| 16 | + int updateByPrimaryKeySelective(T_AIR_REPERTORY record); | ||
| 17 | + | ||
| 18 | + int updateByPrimaryKey(T_AIR_REPERTORY record); | ||
| 19 | +} |
| 1 | +package com.sy.model; | ||
| 2 | + | ||
| 3 | +import java.math.BigDecimal; | ||
| 4 | +import java.util.Date; | ||
| 5 | + | ||
| 6 | +public class T_AIR_REPERTORY { | ||
| 7 | + private String mawbNo; | ||
| 8 | + | ||
| 9 | + private String areaCode; | ||
| 10 | + | ||
| 11 | + private String supName; | ||
| 12 | + | ||
| 13 | + private String supCode; | ||
| 14 | + | ||
| 15 | + private String voyageNo; | ||
| 16 | + | ||
| 17 | + private Date ieDate; | ||
| 18 | + | ||
| 19 | + private String ieFlag; | ||
| 20 | + | ||
| 21 | + private Long cnt; | ||
| 22 | + | ||
| 23 | + private BigDecimal wt; | ||
| 24 | + | ||
| 25 | + private String goodName; | ||
| 26 | + | ||
| 27 | + private Date createDate; | ||
| 28 | + | ||
| 29 | + private Date updateTime; | ||
| 30 | + | ||
| 31 | + private String copCode; | ||
| 32 | + | ||
| 33 | + private String copName; | ||
| 34 | + | ||
| 35 | + private String opCode; | ||
| 36 | + | ||
| 37 | + public String getMawbNo() { | ||
| 38 | + return mawbNo; | ||
| 39 | + } | ||
| 40 | + | ||
| 41 | + public void setMawbNo(String mawbNo) { | ||
| 42 | + this.mawbNo = mawbNo == null ? null : mawbNo.trim(); | ||
| 43 | + } | ||
| 44 | + | ||
| 45 | + public String getAreaCode() { | ||
| 46 | + return areaCode; | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + public void setAreaCode(String areaCode) { | ||
| 50 | + this.areaCode = areaCode == null ? null : areaCode.trim(); | ||
| 51 | + } | ||
| 52 | + | ||
| 53 | + public String getSupName() { | ||
| 54 | + return supName; | ||
| 55 | + } | ||
| 56 | + | ||
| 57 | + public void setSupName(String supName) { | ||
| 58 | + this.supName = supName == null ? null : supName.trim(); | ||
| 59 | + } | ||
| 60 | + | ||
| 61 | + public String getSupCode() { | ||
| 62 | + return supCode; | ||
| 63 | + } | ||
| 64 | + | ||
| 65 | + public void setSupCode(String supCode) { | ||
| 66 | + this.supCode = supCode == null ? null : supCode.trim(); | ||
| 67 | + } | ||
| 68 | + | ||
| 69 | + public String getVoyageNo() { | ||
| 70 | + return voyageNo; | ||
| 71 | + } | ||
| 72 | + | ||
| 73 | + public void setVoyageNo(String voyageNo) { | ||
| 74 | + this.voyageNo = voyageNo == null ? null : voyageNo.trim(); | ||
| 75 | + } | ||
| 76 | + | ||
| 77 | + public Date getIeDate() { | ||
| 78 | + return ieDate; | ||
| 79 | + } | ||
| 80 | + | ||
| 81 | + public void setIeDate(Date ieDate) { | ||
| 82 | + this.ieDate = ieDate; | ||
| 83 | + } | ||
| 84 | + | ||
| 85 | + public String getIeFlag() { | ||
| 86 | + return ieFlag; | ||
| 87 | + } | ||
| 88 | + | ||
| 89 | + public void setIeFlag(String ieFlag) { | ||
| 90 | + this.ieFlag = ieFlag == null ? null : ieFlag.trim(); | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + public Long getCnt() { | ||
| 94 | + return cnt; | ||
| 95 | + } | ||
| 96 | + | ||
| 97 | + public void setCnt(Long cnt) { | ||
| 98 | + this.cnt = cnt; | ||
| 99 | + } | ||
| 100 | + | ||
| 101 | + public BigDecimal getWt() { | ||
| 102 | + return wt; | ||
| 103 | + } | ||
| 104 | + | ||
| 105 | + public void setWt(BigDecimal wt) { | ||
| 106 | + this.wt = wt; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + public String getGoodName() { | ||
| 110 | + return goodName; | ||
| 111 | + } | ||
| 112 | + | ||
| 113 | + public void setGoodName(String goodName) { | ||
| 114 | + this.goodName = goodName == null ? null : goodName.trim(); | ||
| 115 | + } | ||
| 116 | + | ||
| 117 | + public Date getCreateDate() { | ||
| 118 | + return createDate; | ||
| 119 | + } | ||
| 120 | + | ||
| 121 | + public void setCreateDate(Date createDate) { | ||
| 122 | + this.createDate = createDate; | ||
| 123 | + } | ||
| 124 | + | ||
| 125 | + public Date getUpdateTime() { | ||
| 126 | + return updateTime; | ||
| 127 | + } | ||
| 128 | + | ||
| 129 | + public void setUpdateTime(Date updateTime) { | ||
| 130 | + this.updateTime = updateTime; | ||
| 131 | + } | ||
| 132 | + | ||
| 133 | + public String getCopCode() { | ||
| 134 | + return copCode; | ||
| 135 | + } | ||
| 136 | + | ||
| 137 | + public void setCopCode(String copCode) { | ||
| 138 | + this.copCode = copCode == null ? null : copCode.trim(); | ||
| 139 | + } | ||
| 140 | + | ||
| 141 | + public String getCopName() { | ||
| 142 | + return copName; | ||
| 143 | + } | ||
| 144 | + | ||
| 145 | + public void setCopName(String copName) { | ||
| 146 | + this.copName = copName == null ? null : copName.trim(); | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | + public String getOpCode() { | ||
| 150 | + return opCode; | ||
| 151 | + } | ||
| 152 | + | ||
| 153 | + public void setOpCode(String opCode) { | ||
| 154 | + this.opCode = opCode == null ? null : opCode.trim(); | ||
| 155 | + } | ||
| 156 | +} |
| 1 | +package com.sy.service; | ||
| 2 | + | ||
| 3 | +import com.sy.model.T_AIR_REPERTORY; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * @author | ||
| 7 | + * @time 2019-05-28 10:15 | ||
| 8 | + */ | ||
| 9 | +public interface RepertoryService { | ||
| 10 | + | ||
| 11 | + int updateEntry(T_AIR_REPERTORY repertory); | ||
| 12 | + | ||
| 13 | + T_AIR_REPERTORY selectByPermaryKey(String mawb); | ||
| 14 | + | ||
| 15 | + int insertEntry(T_AIR_REPERTORY repertory); | ||
| 16 | +} |
| 1 | +package com.sy.service.impl; | ||
| 2 | + | ||
| 3 | +import com.sy.mapper.T_AIR_REPERTORYMapper; | ||
| 4 | +import com.sy.model.T_AIR_REPERTORY; | ||
| 5 | +import com.sy.service.RepertoryService; | ||
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | +import org.springframework.stereotype.Service; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * @author | ||
| 11 | + * @time 2019-05-28 10:16 | ||
| 12 | + */ | ||
| 13 | +@Service | ||
| 14 | +public class RepertoryServiceImpl implements RepertoryService { | ||
| 15 | + | ||
| 16 | + @Autowired | ||
| 17 | + private T_AIR_REPERTORYMapper mapper; | ||
| 18 | + | ||
| 19 | + @Override | ||
| 20 | + public int updateEntry(T_AIR_REPERTORY repertory) { | ||
| 21 | + return mapper.updateByPrimaryKeySelective(repertory); | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + @Override | ||
| 25 | + public T_AIR_REPERTORY selectByPermaryKey(String mawb) { | ||
| 26 | + return mapper.selectByPrimaryKey(mawb); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + @Override | ||
| 30 | + public int insertEntry(T_AIR_REPERTORY repertory) { | ||
| 31 | + return mapper.insertSelective(repertory); | ||
| 32 | + } | ||
| 33 | +} |
src/main/java/com/sy/test.java
0 → 100644
| 1 | +package com.sy; | ||
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * @author | ||
| 5 | + * @time 2019-${MOUTH}-06 17:59 | ||
| 6 | + */ | ||
| 7 | +public class test { | ||
| 8 | + | ||
| 9 | + // private static LogicOperation logicOperation =new LogicOperation(); | ||
| 10 | + | ||
| 11 | +/* public static void main(String[] args) { | ||
| 12 | + double a = logicOperation.GoodsWt("172-26481560,172-26481593,172-26481604,172-26481545,172-26481582,172-26481556,172-26481571","I"); | ||
| 13 | + System.out.printf("%.1f",a); | ||
| 14 | + }*/ | ||
| 15 | +} |
| @@ -20,7 +20,7 @@ spring.mvc.view.prefix=.jsp | @@ -20,7 +20,7 @@ spring.mvc.view.prefix=.jsp | ||
| 20 | #spring.datasource.url=jdbc:mysql://localhost:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai | 20 | #spring.datasource.url=jdbc:mysql://localhost:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai |
| 21 | #\u8BBE\u7F6E\u7EBF\u4E0A\u6570\u636E\u6E90 | 21 | #\u8BBE\u7F6E\u7EBF\u4E0A\u6570\u636E\u6E90 |
| 22 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver | 22 | spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver |
| 23 | -spring.datasource.url=jdbc:mysql://10.50.7.70:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai | 23 | +spring.datasource.url=jdbc:mysql://localhost:3306/station?useUnicode=true&characterEncoding=utf8&autoReconnect=true&failOverReadOnly=false&allowMultiQueries=true&useSSL=true&serverTimezone=Asia/Shanghai |
| 24 | spring.datasource.username=station | 24 | spring.datasource.username=station |
| 25 | spring.datasource.password=station@10.50.7.70 | 25 | spring.datasource.password=station@10.50.7.70 |
| 26 | #\u8FDE\u63A5\u6C60\u7C7B | 26 | #\u8FDE\u63A5\u6C60\u7C7B |
| 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.sy.mapper.T_AIR_REPERTORYMapper"> | ||
| 4 | + <resultMap id="BaseResultMap" type="com.sy.model.T_AIR_REPERTORY"> | ||
| 5 | + <id column="MAWB_NO" jdbcType="VARCHAR" property="mawbNo" /> | ||
| 6 | + <result column="AREA_CODE" jdbcType="VARCHAR" property="areaCode" /> | ||
| 7 | + <result column="SUP_NAME" jdbcType="VARCHAR" property="supName" /> | ||
| 8 | + <result column="SUP_CODE" jdbcType="VARCHAR" property="supCode" /> | ||
| 9 | + <result column="VOYAGE_NO" jdbcType="VARCHAR" property="voyageNo" /> | ||
| 10 | + <result column="IE_DATE" jdbcType="DATE" property="ieDate" /> | ||
| 11 | + <result column="IE_FLAG" jdbcType="VARCHAR" property="ieFlag" /> | ||
| 12 | + <result column="CNT" jdbcType="DECIMAL" property="cnt" /> | ||
| 13 | + <result column="WT" jdbcType="DECIMAL" property="wt" /> | ||
| 14 | + <result column="GOOD_NAME" jdbcType="VARCHAR" property="goodName" /> | ||
| 15 | + <result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" /> | ||
| 16 | + <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> | ||
| 17 | + <result column="COP_CODE" jdbcType="VARCHAR" property="copCode" /> | ||
| 18 | + <result column="COP_NAME" jdbcType="VARCHAR" property="copName" /> | ||
| 19 | + <result column="OP_CODE" jdbcType="VARCHAR" property="opCode" /> | ||
| 20 | + </resultMap> | ||
| 21 | + <sql id="Base_Column_List"> | ||
| 22 | + MAWB_NO, AREA_CODE, SUP_NAME, SUP_CODE, VOYAGE_NO, IE_DATE, IE_FLAG, CNT, WT, GOOD_NAME, | ||
| 23 | + CREATE_DATE, UPDATE_TIME, COP_CODE, COP_NAME, OP_CODE | ||
| 24 | + </sql> | ||
| 25 | + <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap"> | ||
| 26 | + select | ||
| 27 | + <include refid="Base_Column_List" /> | ||
| 28 | + from t_air_repertory | ||
| 29 | + where MAWB_NO = #{mawbNo,jdbcType=VARCHAR} | ||
| 30 | + </select> | ||
| 31 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> | ||
| 32 | + delete from t_air_repertory | ||
| 33 | + where MAWB_NO = #{mawbNo,jdbcType=VARCHAR} | ||
| 34 | + </delete> | ||
| 35 | + <insert id="insert" parameterType="com.sy.model.T_AIR_REPERTORY"> | ||
| 36 | + insert into t_air_repertory (MAWB_NO, AREA_CODE, SUP_NAME, | ||
| 37 | + SUP_CODE, VOYAGE_NO, IE_DATE, | ||
| 38 | + IE_FLAG, CNT, WT, GOOD_NAME, | ||
| 39 | + CREATE_DATE, UPDATE_TIME, COP_CODE, | ||
| 40 | + COP_NAME, OP_CODE) | ||
| 41 | + values (#{mawbNo,jdbcType=VARCHAR}, #{areaCode,jdbcType=VARCHAR}, #{supName,jdbcType=VARCHAR}, | ||
| 42 | + #{supCode,jdbcType=VARCHAR}, #{voyageNo,jdbcType=VARCHAR}, #{ieDate,jdbcType=DATE}, | ||
| 43 | + #{ieFlag,jdbcType=VARCHAR}, #{cnt,jdbcType=DECIMAL}, #{wt,jdbcType=DECIMAL}, #{goodName,jdbcType=VARCHAR}, | ||
| 44 | + #{createDate,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{copCode,jdbcType=VARCHAR}, | ||
| 45 | + #{copName,jdbcType=VARCHAR}, #{opCode,jdbcType=VARCHAR}) | ||
| 46 | + </insert> | ||
| 47 | + <insert id="insertSelective" parameterType="com.sy.model.T_AIR_REPERTORY"> | ||
| 48 | + insert into t_air_repertory | ||
| 49 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
| 50 | + <if test="mawbNo != null"> | ||
| 51 | + MAWB_NO, | ||
| 52 | + </if> | ||
| 53 | + <if test="areaCode != null"> | ||
| 54 | + AREA_CODE, | ||
| 55 | + </if> | ||
| 56 | + <if test="supName != null"> | ||
| 57 | + SUP_NAME, | ||
| 58 | + </if> | ||
| 59 | + <if test="supCode != null"> | ||
| 60 | + SUP_CODE, | ||
| 61 | + </if> | ||
| 62 | + <if test="voyageNo != null"> | ||
| 63 | + VOYAGE_NO, | ||
| 64 | + </if> | ||
| 65 | + <if test="ieDate != null"> | ||
| 66 | + IE_DATE, | ||
| 67 | + </if> | ||
| 68 | + <if test="ieFlag != null"> | ||
| 69 | + IE_FLAG, | ||
| 70 | + </if> | ||
| 71 | + <if test="cnt != null"> | ||
| 72 | + CNT, | ||
| 73 | + </if> | ||
| 74 | + <if test="wt != null"> | ||
| 75 | + WT, | ||
| 76 | + </if> | ||
| 77 | + <if test="goodName != null"> | ||
| 78 | + GOOD_NAME, | ||
| 79 | + </if> | ||
| 80 | + <if test="createDate != null"> | ||
| 81 | + CREATE_DATE, | ||
| 82 | + </if> | ||
| 83 | + <if test="updateTime != null"> | ||
| 84 | + UPDATE_TIME, | ||
| 85 | + </if> | ||
| 86 | + <if test="copCode != null"> | ||
| 87 | + COP_CODE, | ||
| 88 | + </if> | ||
| 89 | + <if test="copName != null"> | ||
| 90 | + COP_NAME, | ||
| 91 | + </if> | ||
| 92 | + <if test="opCode != null"> | ||
| 93 | + OP_CODE, | ||
| 94 | + </if> | ||
| 95 | + </trim> | ||
| 96 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
| 97 | + <if test="mawbNo != null"> | ||
| 98 | + #{mawbNo,jdbcType=VARCHAR}, | ||
| 99 | + </if> | ||
| 100 | + <if test="areaCode != null"> | ||
| 101 | + #{areaCode,jdbcType=VARCHAR}, | ||
| 102 | + </if> | ||
| 103 | + <if test="supName != null"> | ||
| 104 | + #{supName,jdbcType=VARCHAR}, | ||
| 105 | + </if> | ||
| 106 | + <if test="supCode != null"> | ||
| 107 | + #{supCode,jdbcType=VARCHAR}, | ||
| 108 | + </if> | ||
| 109 | + <if test="voyageNo != null"> | ||
| 110 | + #{voyageNo,jdbcType=VARCHAR}, | ||
| 111 | + </if> | ||
| 112 | + <if test="ieDate != null"> | ||
| 113 | + #{ieDate,jdbcType=DATE}, | ||
| 114 | + </if> | ||
| 115 | + <if test="ieFlag != null"> | ||
| 116 | + #{ieFlag,jdbcType=VARCHAR}, | ||
| 117 | + </if> | ||
| 118 | + <if test="cnt != null"> | ||
| 119 | + #{cnt,jdbcType=DECIMAL}, | ||
| 120 | + </if> | ||
| 121 | + <if test="wt != null"> | ||
| 122 | + #{wt,jdbcType=DECIMAL}, | ||
| 123 | + </if> | ||
| 124 | + <if test="goodName != null"> | ||
| 125 | + #{goodName,jdbcType=VARCHAR}, | ||
| 126 | + </if> | ||
| 127 | + <if test="createDate != null"> | ||
| 128 | + #{createDate,jdbcType=TIMESTAMP}, | ||
| 129 | + </if> | ||
| 130 | + <if test="updateTime != null"> | ||
| 131 | + #{updateTime,jdbcType=TIMESTAMP}, | ||
| 132 | + </if> | ||
| 133 | + <if test="copCode != null"> | ||
| 134 | + #{copCode,jdbcType=VARCHAR}, | ||
| 135 | + </if> | ||
| 136 | + <if test="copName != null"> | ||
| 137 | + #{copName,jdbcType=VARCHAR}, | ||
| 138 | + </if> | ||
| 139 | + <if test="opCode != null"> | ||
| 140 | + #{opCode,jdbcType=VARCHAR}, | ||
| 141 | + </if> | ||
| 142 | + </trim> | ||
| 143 | + </insert> | ||
| 144 | + <update id="updateByPrimaryKeySelective" parameterType="com.sy.model.T_AIR_REPERTORY"> | ||
| 145 | + update t_air_repertory | ||
| 146 | + <set> | ||
| 147 | + <if test="areaCode != null"> | ||
| 148 | + AREA_CODE = #{areaCode,jdbcType=VARCHAR}, | ||
| 149 | + </if> | ||
| 150 | + <if test="supName != null"> | ||
| 151 | + SUP_NAME = #{supName,jdbcType=VARCHAR}, | ||
| 152 | + </if> | ||
| 153 | + <if test="supCode != null"> | ||
| 154 | + SUP_CODE = #{supCode,jdbcType=VARCHAR}, | ||
| 155 | + </if> | ||
| 156 | + <if test="voyageNo != null"> | ||
| 157 | + VOYAGE_NO = #{voyageNo,jdbcType=VARCHAR}, | ||
| 158 | + </if> | ||
| 159 | + <if test="ieDate != null"> | ||
| 160 | + IE_DATE = #{ieDate,jdbcType=DATE}, | ||
| 161 | + </if> | ||
| 162 | + <if test="ieFlag != null"> | ||
| 163 | + IE_FLAG = #{ieFlag,jdbcType=VARCHAR}, | ||
| 164 | + </if> | ||
| 165 | + <if test="cnt != null"> | ||
| 166 | + CNT = #{cnt,jdbcType=DECIMAL}, | ||
| 167 | + </if> | ||
| 168 | + <if test="wt != null"> | ||
| 169 | + WT = #{wt,jdbcType=DECIMAL}, | ||
| 170 | + </if> | ||
| 171 | + <if test="goodName != null"> | ||
| 172 | + GOOD_NAME = #{goodName,jdbcType=VARCHAR}, | ||
| 173 | + </if> | ||
| 174 | + <if test="createDate != null"> | ||
| 175 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
| 176 | + </if> | ||
| 177 | + <if test="updateTime != null"> | ||
| 178 | + UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, | ||
| 179 | + </if> | ||
| 180 | + <if test="copCode != null"> | ||
| 181 | + COP_CODE = #{copCode,jdbcType=VARCHAR}, | ||
| 182 | + </if> | ||
| 183 | + <if test="copName != null"> | ||
| 184 | + COP_NAME = #{copName,jdbcType=VARCHAR}, | ||
| 185 | + </if> | ||
| 186 | + <if test="opCode != null"> | ||
| 187 | + OP_CODE = #{opCode,jdbcType=VARCHAR}, | ||
| 188 | + </if> | ||
| 189 | + </set> | ||
| 190 | + where MAWB_NO = #{mawbNo,jdbcType=VARCHAR} | ||
| 191 | + </update> | ||
| 192 | + <update id="updateByPrimaryKey" parameterType="com.sy.model.T_AIR_REPERTORY"> | ||
| 193 | + update t_air_repertory | ||
| 194 | + set AREA_CODE = #{areaCode,jdbcType=VARCHAR}, | ||
| 195 | + SUP_NAME = #{supName,jdbcType=VARCHAR}, | ||
| 196 | + SUP_CODE = #{supCode,jdbcType=VARCHAR}, | ||
| 197 | + VOYAGE_NO = #{voyageNo,jdbcType=VARCHAR}, | ||
| 198 | + IE_DATE = #{ieDate,jdbcType=DATE}, | ||
| 199 | + IE_FLAG = #{ieFlag,jdbcType=VARCHAR}, | ||
| 200 | + CNT = #{cnt,jdbcType=DECIMAL}, | ||
| 201 | + WT = #{wt,jdbcType=DECIMAL}, | ||
| 202 | + GOOD_NAME = #{goodName,jdbcType=VARCHAR}, | ||
| 203 | + CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}, | ||
| 204 | + UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, | ||
| 205 | + COP_CODE = #{copCode,jdbcType=VARCHAR}, | ||
| 206 | + COP_NAME = #{copName,jdbcType=VARCHAR}, | ||
| 207 | + OP_CODE = #{opCode,jdbcType=VARCHAR} | ||
| 208 | + where MAWB_NO = #{mawbNo,jdbcType=VARCHAR} | ||
| 209 | + </update> | ||
| 210 | +</mapper> |
-
请 注册 或 登录 后发表评论