作者 朱兆平

提前运抵、转运管理、新舱单辅助管理

正在显示 40 个修改的文件 包含 4256 行增加294 行删除

要显示太多修改。

为保证性能只显示 40 of 40+ 个文件。

#上传文件的路径,要带斜杠
web:
upload-path: upload/
upload-path: /Users/mrz/Pictures/
server:
port: 10001
servlet:
... ... @@ -16,7 +16,7 @@ spring:
static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path}
application:
name: changeManifestInfomation
name: wlpt-nmms-manage
jackson:
serialization:
... ... @@ -43,9 +43,12 @@ spring:
type: com.alibaba.druid.pool.DruidDataSource
#oracle
driver-class-name: oracle.jdbc.OracleDriver
url: jdbc:oracle:thin:@10.50.3.69:1521:CGODB
# url: jdbc:oracle:thin:@10.50.3.69:1521:CGODB
# username: CGONMS
# password: 1q2w3e4r
url: jdbc:oracle:thin:@192.168.1.253:1522:ORCLL
username: CGONMS
password: 1q2w3e4r
password: vmvnv1v2
#spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码
# url: jdbc:mysql://127.0.0.1:3307/statistics?useUnicode=true&characterEncoding=utf8
# username: root
... ... @@ -86,7 +89,8 @@ eureka:
client:
#eureka注册中心服务器地址
service-url:
defaultZone: http://10.50.3.82:19527/eureka/
# defaultZone: http://10.50.7.70:12345/eureka/
defaultZone: http://192.168.1.53:12345/eureka/
registry-fetch-interval-seconds: 30
lease-renewal-interval-in-seconds: 15
lease-expiration-duration-in-seconds: 45
... ... @@ -122,3 +126,6 @@ logging:
#Java Web Token 时效时间,单位秒
jwt:
max-alive: 300
info:
version: 1.0
description: "新舱单辅助管理服务-统一认证、转运管理、提前运抵等"
... ...
... ... @@ -172,7 +172,7 @@
<!--开发环境:打印控制台-->
<springProfile name="dev">
<logger name="org.springframework.boot" level="trace"/>
<logger name="org.springframework.boot" level="info"/>
<logger name="org.apache.tomcat" level="info" />
<logger name="com.tianbo.analysis.dao" level="DEBUG" />
<root level="INFO">
... ... @@ -186,9 +186,9 @@
<!--生产环境:输出到文件-->
<springProfile name="pro">
<logger name="org.springframework.boot" level="trace"/>
<logger name="org.springframework.boot" level="info"/>
<logger name="com.tianbo.analysis.dao" level="DEBUG" />
<root level="info">
<root level="INFO">
<appender-ref ref="CONSOLE" />
<appender-ref ref="DEBUG_FILE" />
<appender-ref ref="INFO_FILE" />
... ...
... ... @@ -19,6 +19,7 @@
<druid.version>1.1.9</druid.version>
<spring-cloud.version>Greenwich.BUILD-SNAPSHOT</spring-cloud.version>
<lombok_sersion>1.18.6</lombok_sersion>
<swagger2_version>2.9.2</swagger2_version>
</properties>
<dependencies>
<!--spring boot-->
... ... @@ -69,6 +70,11 @@
<artifactId>mybatis</artifactId>
<version>3.4.6</version>
</dependency>
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.2.5</version>
</dependency>
<!--&lt;!&ndash; mysql&ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>mysql</groupId>-->
... ... @@ -88,279 +94,21 @@
<version>1.0-SNAPSHOT</version>
</dependency>
<!--util依赖-->
<!--&lt;!&ndash;IMF需要的包&ndash;&gt;-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.apache.xmlbeans</groupId>-->
<!--<artifactId>xmlbeans</artifactId>-->
<!--<version>2.4.0</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.apache.ws.commons.schema/XmlSchema &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.apache.ws.commons.schema</groupId>-->
<!--<artifactId>XmlSchema</artifactId>-->
<!--<version>1.4.7</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/wsdl4j/wsdl4j &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>wsdl4j</groupId>-->
<!--<artifactId>wsdl4j</artifactId>-->
<!--<version>1.6.2</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.apache.neethi/neethi &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.apache.neethi</groupId>-->
<!--<artifactId>neethi</artifactId>-->
<!--<version>2.0.4</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; LOG &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>log4j</groupId>-->
<!--<artifactId>log4j</artifactId>-->
<!--<version>1.2.16</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.slf4j/slf4j-api &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.slf4j</groupId>-->
<!--<artifactId>slf4j-api</artifactId>-->
<!--<version>1.6.1</version>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.slf4j/slf4j-jdk14 &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.slf4j</groupId>-->
<!--<artifactId>slf4j-jdk14</artifactId>-->
<!--<version>1.6.1</version>-->
<!--<scope>test</scope>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.apache.cxf.xjcplugins/cxf-xjc-boolean &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.apache.cxf.xjcplugins</groupId>-->
<!--<artifactId>cxf-xjc-boolean</artifactId>-->
<!--<version>3.2.3</version>-->
<!--</dependency>-->
<!--&lt;!&ndash;添加本地IMF包&ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>com.caac</groupId>-->
<!--<artifactId>imf</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/IMFClient.1.0.0.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>imfmessage</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/imfmsg.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>process</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/ProcessService.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>apiconfig</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/apiConfig.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>upload</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/UploadService.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>heartbeat</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/HeartbeatService.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.caac.imf</groupId>-->
<!--<artifactId>returnxml</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/returnXml.jar</systemPath>-->
<!--</dependency>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/org.hyperic/sigar &ndash;&gt;-->
<!--<dependency>-->
<!--<groupId>org.hyperic</groupId>-->
<!--<artifactId>sigar</artifactId>-->
<!--<version>1.6.4</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/sigar.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache</groupId>-->
<!--<artifactId>cxf</artifactId>-->
<!--<version>2.3.2</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/cxf-2.3.2.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.cxf</groupId>-->
<!--<artifactId>xjc</artifactId>-->
<!--<version>2.3.2</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/cxf-xjc-bug671-2.3.2.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>maven.org.apache</groupId>-->
<!--<artifactId>cxf</artifactId>-->
<!--<version>2.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/cxf-manifest.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.cxf.xjc</groupId>-->
<!--<artifactId>dv</artifactId>-->
<!--<version>2.3.2</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/cxf-xjc-dv-2.3.2.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.cxf.xjc</groupId>-->
<!--<artifactId>ts</artifactId>-->
<!--<version>2.3.2</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/cxf-xjc-ts-2.3.2.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>org.apache.xml</groupId>-->
<!--<artifactId>xmlsec</artifactId>-->
<!--<version>1.4.4</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/xmlsec-1.4.4.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.disthub2.impl</groupId>-->
<!--<artifactId>cl3e</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/CL3Export.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.disthub2.impl</groupId>-->
<!--<artifactId>cl3ne</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/CL3Nonexport.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>axis2</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.axis2.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>commonservices</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.commonservices.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>defaultconfig</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.defaultconfig.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>fta</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.fta.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>headers</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.headers.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm</groupId>-->
<!--<artifactId>mq</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm</groupId>-->
<!--<artifactId>jmqi</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.jmqi.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>jms.nojndi</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.jms.Nojndi.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>pcf</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.pcf.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>postcard</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.postcard.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>soap</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.soap.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>tools.ras</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mq.tools.ras.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm.mq</groupId>-->
<!--<artifactId>etclient</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mqetclient.jar</systemPath>-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>com.ibm</groupId>-->
<!--<artifactId>mqjms</artifactId>-->
<!--<version>1.0.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/com.ibm.mqjms.jar</systemPath>-->
<!--&lt;!&ndash; https://mvnrepository.com/artifact/javax.resource/connector &ndash;&gt;-->
<!--</dependency>-->
<!--<dependency>-->
<!--<groupId>javax.resource</groupId>-->
<!--<artifactId>connector</artifactId>-->
<!--<version>1.0</version>-->
<!--<scope>system</scope>-->
<!--<systemPath>${project.basedir}/lib/connector.jar</systemPath>-->
<!--</dependency>-->
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>1.9.6</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>2.9.2</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>2.9.2</version>
</dependency>
</dependencies>
<dependencyManagement>
... ...
... ... @@ -20,17 +20,15 @@ import org.springframework.web.client.RestTemplate;
@EnableDiscoveryClient
@EnableTransactionManagement
@MapperScan("com.tianbo.analysis.dao")
@ComponentScan({"com.tianbo.analysis"})
public class ImfClientApplication {
public class NmmsAdminApplication {
public static void main(String[] args) {
SpringApplication.run(ImfClientApplication.class, args);
SpringApplication.run(NmmsAdminApplication.class, args);
}
@Bean
@LoadBalanced
RestTemplate restTemplate(RestTemplateBuilder builder){
return builder.build();
}
}
... ...
package com.tianbo.analysis;
import com.google.common.base.Predicates;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
@Configuration
@EnableSwagger2 // Swagger的开关,表示已经启用Swagger
public class SwaggerConfig {
@Bean
public Docket api() {
Docket docket = new Docket(DocumentationType.SWAGGER_2)
.apiInfo(apiInfo())
.pathMapping("/")
.select() // 选择哪些路径和api会生成document
.apis(RequestHandlerSelectors.any())// 对所有api进行监控
// .apis(RequestHandlerSelectors.basePackage("com.hanstrovsky.controller"))// 选择监控的package
// .apis(RequestHandlerSelectors.withMethodAnnotation(ApiOperation.class))// 只监控有ApiOperation注解的接口
//不显示错误的接口地址
.paths(Predicates.not(PathSelectors.regex("/error.*")))//错误路径不监控
.paths(PathSelectors.regex("/.*"))// 对根下所有路径进行监控
.build();
return docket;
}
private ApiInfo apiInfo() {
return new ApiInfoBuilder().title("新舱单1.0管理系统接口文档")
.contact(new Contact("mrz", "", "17966059@qq.com"))
.description("这是用Swagger动态生成的接口文档")
.termsOfServiceUrl("NO terms of service")
.license("The Apache License, Version 2.0")
.licenseUrl("http://www.apache.org/licenses/LICENSE-2.0.html")
.version("1.0")
.build();
}
}
... ...
package com.tianbo.analysis.annotation;
import java.lang.annotation.*;
/**
* 将前端注册、新增、编辑后提交的明文密码MD5加密
* 使用该注解不用再MD5转换了
*
* @author adonis
*
*/
@Target({ElementType.PARAMETER,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface UserPermissionCheck {
}
... ...
package com.tianbo.analysis.annotation;
import com.tianbo.analysis.dao.COMPANYUSERMapper;
import com.tianbo.analysis.model.COMPANYUSER;
import com.tianbo.analysis.model.ResultJson;
import org.apache.commons.codec.digest.DigestUtils;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.*;
import org.aspectj.lang.reflect.CodeSignature;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.lang.reflect.Method;
@Aspect
@Component
public class UserPermissionCheckAOP {
@Resource
COMPANYUSERMapper companyuserMapper;
@Pointcut("@annotation(com.tianbo.analysis.annotation.UserPermissionCheck)")
public void annotationPointCut(){
}
@Before("annotationPointCut()")
public void before(JoinPoint joinPoint){
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method= signature.getMethod();
UserPermissionCheck annotation = method.getAnnotation(UserPermissionCheck.class);
System.out.print("打印:权限校验 开始前");
}
@Around("annotationPointCut()")
public Object advice(ProceedingJoinPoint joinPoint){
System.out.println("通知之开始");
Object[] args = joinPoint.getArgs();
String[] paramNames = ((CodeSignature) joinPoint.getSignature()).getParameterNames();
COMPANYUSER user = new COMPANYUSER();
if (args != null && args.length > 0) {
for (int i = 0; i < paramNames.length; i++) {
System.out.println("参数>>"+paramNames[i]+","+args[i]);
if ("username".equals(paramNames[i])){
user.setCropCode(args[i].toString());
}
if ("userid".equals(paramNames[i])){
user.setId(args[i].toString());
}
}
}
Object retmsg=null;
try {
//检查用户名与用户ID是否一致
COMPANYUSER usercheck = companyuserMapper.selectByIdAndName(user);
if (usercheck==null){
//todo:检查用户页面访问权限。权限不对或者用户名不一致 都返回401
return new ResultJson("401","无访问权限");
}
retmsg=joinPoint.proceed(args);
System.err.println("++++++++"+retmsg);
} catch (Throwable e) {
e.printStackTrace();
}
System.out.println("通知之结束");
return retmsg;
}
@After("annotationPointCut()")
public void after(){
System.out.println("after方法执行后");
}
}
... ...
package com.tianbo.analysis.controller;
import com.tianbo.analysis.model.CarAndWayBill;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.service.ArriveMasterService;
import com.tianbo.analysis.tools.WaybillTools;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* 运抵接口
*/
@RestController
@RequestMapping("/arrive/")
public class ArrivedAMasterController {
@Autowired
ArriveMasterService arriveMasterService;
@ApiOperation(value = "提前运抵接口",notes = "接收卡口车辆过卡放行后的通知,车单数据")
@PostMapping("forkako")
public ResultJson applyfor(@RequestBody CarAndWayBill carAndWayBill){
boolean result = arriveMasterService.arrivedAhead(carAndWayBill);
return result? new ResultJson("200","处理完毕"):new ResultJson("处理失败");
}
@RequestMapping("check")
public void check(@RequestParam String waybill){
WaybillTools.checkWaybillFormat(waybill);
}
}
... ...
package com.tianbo.analysis.controller;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.annotation.UserPermissionCheck;
import com.tianbo.analysis.model.DOMTRANSIT;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.service.DomTransitService;
import com.tianbo.analysis.service.ValidateUpdate;
import com.tianbo.util.Date.DateUtil;
import io.swagger.annotations.ApiOperation;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.Date;
/**
* 国内转运接口
*/
@RestController
@RequestMapping("/trans/")
public class DomTransController {
@Autowired
DomTransitService domTransitService;
@ApiOperation(value = "添加转运申请")
@PostMapping("dom")
@UserPermissionCheck
public ResultJson add(@RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){
domtransit.setUserName(username);
return domTransitService.insertSelective(domtransit)>0 ? new ResultJson("200","添加成功") :new ResultJson("400","添加失败");
}
@ApiOperation(value = "删除转运申请")
@DeleteMapping("dom")
@UserPermissionCheck
public ResultJson del(@RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){
return domTransitService.deleteByPrimaryKey(domtransit.getId())>0 ? new ResultJson("200","删除成功") :new ResultJson("400","删除失败");
}
@ApiOperation(value = "修改转运申请",notes = "id必须传")
@PutMapping("dom")
@UserPermissionCheck
public ResultJson update(@Validated(ValidateUpdate.class) @RequestBody DOMTRANSIT domtransit,@CookieValue("username") String username,@CookieValue("userid") String userid){
return domTransitService.updateByPrimaryKeySelective(domtransit)>0 ? new ResultJson("200","修改成功") :new ResultJson("400","修改失败");
}
@ApiOperation(value = "转运申请查询搜索",notes = "awba转运前主单,awbh转运前分单,flightDate,flightNo转运前航班信息")
@GetMapping("dom")
@UserPermissionCheck
public ResultJson<PageInfo<DOMTRANSIT>> select(@RequestParam(value = "pageNum",required = false,defaultValue = "1")
int pageNum,
@RequestParam(value = "pageSize",required = false,defaultValue = "10")
int pageSize,
@RequestParam(value = "originMasterwaybill",required = false) String awba,
@RequestParam(value = "originHousewaybill",required = false) String awbh,
@RequestParam(value = "originFlightdate",required = false) String flightDate,
@RequestParam(value = "originFlightno",required = false) String flightNo,
@CookieValue("username") String username,
@CookieValue("userid") String userid){
DOMTRANSIT domtransit = new DOMTRANSIT();
domtransit.setOriginMasterwaybill(awba);
domtransit.setOriginHousewaybill(awbh);
domtransit.setOriginFlightno(flightNo);
if (!"admin".equals(username)){
domtransit.setUserName(username);
}
if(StringUtils.isNotEmpty(flightDate)){
domtransit.setOriginFlightdate(DateUtil.parseDate(flightDate,"yyyy-MM-dd"));
}
return new ResultJson<PageInfo<DOMTRANSIT>>("200","success",domTransitService.selectList(domtransit,pageNum,pageSize));
}
@ApiOperation(value = "预留审核接口",notes = "中转审核")
@PutMapping("audit")
public ResultJson audit(){
return new ResultJson("200", "ok");
}
}
... ...
package com.tianbo.analysis.controller;
import com.tianbo.analysis.dao.COMPANYUSERMapper;
import com.tianbo.analysis.dao.ORIGINMANIFESTMASTERMapper;
import com.tianbo.analysis.model.CUSTOMSMESSAGE;
import com.tianbo.analysis.model.ORIGINMANIFESTMASTER;
import com.tianbo.analysis.model.ResultJson;
import com.tianbo.analysis.model.*;
import com.tianbo.analysis.service.OriginService;
import com.tianbo.util.Date.DateUtil;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.UUID;
@Slf4j
@RestController
@RequestMapping("/nmms/dev")
public class NmmsController {
... ... @@ -24,7 +28,10 @@ public class NmmsController {
@Autowired
OriginService originService;
@Resource
COMPANYUSERMapper companyuserMapper;
@ApiOperation(value = "删除分单信息", notes = "awba主单号格式\\d{3}-\\d{8},awbh分单号")
@DeleteMapping("/delOriginAWBH")
public ResultJson getCustomMessageId(@RequestParam(value = "awba",required = true) String awba,
@RequestParam(value = "awbh",required = true) String awbh,
... ... @@ -35,6 +42,51 @@ public class NmmsController {
ORIGINMANIFESTMASTER originmanifestmaster = new ORIGINMANIFESTMASTER(awba,flight_date,flightNo);
originmanifestmaster = originmanifestmasterMapper.selectByAHBA(originmanifestmaster);
return originService.deleteAwbh(originmanifestmaster.getAutoid())>0 ? new ResultJson("200","删除成功") : new ResultJson("200","删除失败");
}
/**
* 资源同步
* @param uam 资源同步实体
* @return
* @throws Exception
*/
@ApiOperation(value = "统一认证平台同步资源接口", notes = "用户信息同步")
@PostMapping(value = "/userSynchronization")
@ResponseBody
public ResultMessage userSynchronization(@RequestBody UAM uam) throws Exception {
if ("user".equals(uam.getResType())){
List<UserData> list = uam.getData();
// 判断该用户是否存在
int i = 0;
for (UserData userData: list){
log.info("用户信息:{}", userData);
COMPANYUSER companyuser = companyuserMapper.selectByUsername(userData.getLOGIN_NAME());
if (companyuser != null){
companyuser.setPassword(userData.getPWD());
companyuser.setZipCode(userData.getUSER_ID());
log.info("通过账号为条件更新");
i = companyuserMapper.updateByPrimaryKeySelective(companyuser);
}else {
COMPANYUSER kakoUser = new COMPANYUSER();
kakoUser.setId(UUID.randomUUID().toString());
kakoUser.setCropCode(userData.getLOGIN_NAME());
kakoUser.setPassword(userData.getPWD());
kakoUser.setZipCode(userData.getUSER_ID());
kakoUser.setTelCo(userData.getMOBILE());
kakoUser.setFullName(userData.getUSER_NAME());
kakoUser.setCreateDate(new Date());
kakoUser.setCustomsCode("4604");
kakoUser.setCropType(userData.getUSER_TITLE());
kakoUser.setAddrCo(userData.getOFFICE_ADDRESS());
log.info("账号统一认证id都不在 新增");
i = companyuserMapper.insertSelective(kakoUser);
}
}
return i > 0 ? new ResultMessage("200","资源同步成功"):new ResultMessage("202", "资源同步失败");
}
return new ResultMessage("201","不是用户信息");
}
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDMASTER;
import java.util.List;
public interface ARRIVEDMASTERMapper {
int deleteByPrimaryKey(String autoid);
int insert(ARRIVEDMASTER record);
int insertSelective(ARRIVEDMASTER record);
ARRIVEDMASTER selectByPrimaryKey(String autoid);
List<ARRIVEDMASTER> selectByWaybillNo(String waybillnomaster);
int updateByPrimaryKeySelective(ARRIVEDMASTER record);
int updateByPrimaryKey(ARRIVEDMASTER record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.ARRIVEDSECONDARY;
import java.util.List;
public interface ARRIVEDSECONDARYMapper {
int deleteByPrimaryKey(String autoid);
int insert(ARRIVEDSECONDARY record);
int insertSelective(ARRIVEDSECONDARY record);
ARRIVEDSECONDARY selectByPrimaryKey(String autoid);
List<ARRIVEDSECONDARY> selectByWaybillNo(ARRIVEDSECONDARY record);
int updateByPrimaryKeySelective(ARRIVEDSECONDARY record);
int updateByPrimaryKey(ARRIVEDSECONDARY record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.COMPANYUSER;
public interface COMPANYUSERMapper {
int deleteByPrimaryKey(String id);
int insert(COMPANYUSER record);
int insertSelective(COMPANYUSER record);
COMPANYUSER selectByPrimaryKey(String id);
COMPANYUSER selectByUsername(String name);
COMPANYUSER selectByIdAndName(COMPANYUSER record);
int updateByPrimaryKeySelective(COMPANYUSER record);
int updateByPrimaryKey(COMPANYUSER record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.DOMTRANSIT;
import java.util.List;
public interface DOMTRANSITMapper {
int deleteByPrimaryKey(String id);
int insert(DOMTRANSIT record);
int insertSelective(DOMTRANSIT record);
DOMTRANSIT selectByPrimaryKey(String id);
List<DOMTRANSIT> selectList(DOMTRANSIT record);
int updateByPrimaryKeySelective(DOMTRANSIT record);
int updateByPrimaryKey(DOMTRANSIT record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.PREPAREMASTER;
import java.util.List;
public interface PREPAREMASTERMapper {
int deleteByPrimaryKey(String autoid);
int insert(PREPAREMASTER record);
int insertSelective(PREPAREMASTER record);
PREPAREMASTER selectByPrimaryKey(String autoid);
/**
* 根据主单号查询需要提前运抵的预配
* @param waybillNo
* @return
*/
List<PREPAREMASTER> selectArrivedAheadByWaybillNo(String waybillNo);
int updateByPrimaryKeySelective(PREPAREMASTER record);
int updateByPrimaryKey(PREPAREMASTER record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.PREPARESECONDARY;
import java.util.List;
public interface PREPARESECONDARYMapper {
int deleteByPrimaryKey(String autoid);
int insert(PREPARESECONDARY record);
int insertSelective(PREPARESECONDARY record);
PREPARESECONDARY selectByPrimaryKey(String autoid);
/**
* 根据主单ID查分单
* @param masterid
* @return
*/
List<PREPARESECONDARY> selectByMasterKey(String masterid);
int updateByPrimaryKeySelective(PREPARESECONDARY record);
int updateByPrimaryKey(PREPARESECONDARY record);
}
... ...
package com.tianbo.analysis.dao;
import com.tianbo.analysis.model.SENDLOG;
public interface SENDLOGMapper {
int insert(SENDLOG record);
int insertSelective(SENDLOG record);
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class ARRIVEDMASTER {
private String autoid;
private String waybillnomaster;
private String tcdName;
private String tcdTypecode;
private String flightno;
private Date flightdate;
private String carrier;
private String originatingstation;
private String oName;
private String destinationstation;
private String fdName;
private String arrivedtotalpiece;
private String totalpiecequantity;
private String arrivedtotalweight;
private String grossweightmeasureuc;
private String totalgrossweightmeasure;
private String totalgrossweightmeasureuc;
private String chargeableweightmeasure;
private String chargeableweightmeasureuc;
private Date arriveddate;
private String transportsplitdescription;
private String customscode;
private String productname;
private String status;
private String receiptinformation;
private Date createdate;
private String arrivedAhead;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTcdName() {
return tcdName;
}
public void setTcdName(String tcdName) {
this.tcdName = tcdName == null ? null : tcdName.trim();
}
public String getTcdTypecode() {
return tcdTypecode;
}
public void setTcdTypecode(String tcdTypecode) {
this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getoName() {
return oName;
}
public void setoName(String oName) {
this.oName = oName == null ? null : oName.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getFdName() {
return fdName;
}
public void setFdName(String fdName) {
this.fdName = fdName == null ? null : fdName.trim();
}
public String getArrivedtotalpiece() {
return arrivedtotalpiece;
}
public void setArrivedtotalpiece(String arrivedtotalpiece) {
this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
}
public String getTotalpiecequantity() {
return totalpiecequantity;
}
public void setTotalpiecequantity(String totalpiecequantity) {
this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
}
public String getArrivedtotalweight() {
return arrivedtotalweight;
}
public void setArrivedtotalweight(String arrivedtotalweight) {
this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
}
public String getGrossweightmeasureuc() {
return grossweightmeasureuc;
}
public void setGrossweightmeasureuc(String grossweightmeasureuc) {
this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
}
public String getTotalgrossweightmeasure() {
return totalgrossweightmeasure;
}
public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
}
public String getTotalgrossweightmeasureuc() {
return totalgrossweightmeasureuc;
}
public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
}
public String getChargeableweightmeasure() {
return chargeableweightmeasure;
}
public void setChargeableweightmeasure(String chargeableweightmeasure) {
this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
}
public String getChargeableweightmeasureuc() {
return chargeableweightmeasureuc;
}
public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
}
public Date getArriveddate() {
return arriveddate;
}
public void setArriveddate(Date arriveddate) {
this.arriveddate = arriveddate;
}
public String getTransportsplitdescription() {
return transportsplitdescription;
}
public void setTransportsplitdescription(String transportsplitdescription) {
this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getArrivedAhead() {
return arrivedAhead;
}
public void setArrivedAhead(String arrivedAhead) {
this.arrivedAhead = arrivedAhead == null ? null : arrivedAhead.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class ARRIVEDSECONDARY {
private String autoid;
private String waybillnomaster;
private String tcdName;
private String tcdTypecode;
private String waybillnosecondary;
private String carrier;
private String oId;
private String oName;
private String fdId;
private String fdName;
private String flightno;
private Date flightdate;
private String arrivedtotalpiece;
private String totalpiecequantity;
private String arrivedtotalweight;
private String grossweightmeasureuc;
private String totalgrossweightmeasure;
private String totalgrossweightmeasureuc;
private String chargeableweightmeasure;
private String chargeableweightmeasureuc;
private Date arriveddate;
private String customscode;
private String productname;
private Date createdate;
private String arrivedmasterid;
private String transportsplitdescription;
private String receiption;
private String status;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTcdName() {
return tcdName;
}
public void setTcdName(String tcdName) {
this.tcdName = tcdName == null ? null : tcdName.trim();
}
public String getTcdTypecode() {
return tcdTypecode;
}
public void setTcdTypecode(String tcdTypecode) {
this.tcdTypecode = tcdTypecode == null ? null : tcdTypecode.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getoId() {
return oId;
}
public void setoId(String oId) {
this.oId = oId == null ? null : oId.trim();
}
public String getoName() {
return oName;
}
public void setoName(String oName) {
this.oName = oName == null ? null : oName.trim();
}
public String getFdId() {
return fdId;
}
public void setFdId(String fdId) {
this.fdId = fdId == null ? null : fdId.trim();
}
public String getFdName() {
return fdName;
}
public void setFdName(String fdName) {
this.fdName = fdName == null ? null : fdName.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getArrivedtotalpiece() {
return arrivedtotalpiece;
}
public void setArrivedtotalpiece(String arrivedtotalpiece) {
this.arrivedtotalpiece = arrivedtotalpiece == null ? null : arrivedtotalpiece.trim();
}
public String getTotalpiecequantity() {
return totalpiecequantity;
}
public void setTotalpiecequantity(String totalpiecequantity) {
this.totalpiecequantity = totalpiecequantity == null ? null : totalpiecequantity.trim();
}
public String getArrivedtotalweight() {
return arrivedtotalweight;
}
public void setArrivedtotalweight(String arrivedtotalweight) {
this.arrivedtotalweight = arrivedtotalweight == null ? null : arrivedtotalweight.trim();
}
public String getGrossweightmeasureuc() {
return grossweightmeasureuc;
}
public void setGrossweightmeasureuc(String grossweightmeasureuc) {
this.grossweightmeasureuc = grossweightmeasureuc == null ? null : grossweightmeasureuc.trim();
}
public String getTotalgrossweightmeasure() {
return totalgrossweightmeasure;
}
public void setTotalgrossweightmeasure(String totalgrossweightmeasure) {
this.totalgrossweightmeasure = totalgrossweightmeasure == null ? null : totalgrossweightmeasure.trim();
}
public String getTotalgrossweightmeasureuc() {
return totalgrossweightmeasureuc;
}
public void setTotalgrossweightmeasureuc(String totalgrossweightmeasureuc) {
this.totalgrossweightmeasureuc = totalgrossweightmeasureuc == null ? null : totalgrossweightmeasureuc.trim();
}
public String getChargeableweightmeasure() {
return chargeableweightmeasure;
}
public void setChargeableweightmeasure(String chargeableweightmeasure) {
this.chargeableweightmeasure = chargeableweightmeasure == null ? null : chargeableweightmeasure.trim();
}
public String getChargeableweightmeasureuc() {
return chargeableweightmeasureuc;
}
public void setChargeableweightmeasureuc(String chargeableweightmeasureuc) {
this.chargeableweightmeasureuc = chargeableweightmeasureuc == null ? null : chargeableweightmeasureuc.trim();
}
public Date getArriveddate() {
return arriveddate;
}
public void setArriveddate(Date arriveddate) {
this.arriveddate = arriveddate;
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getArrivedmasterid() {
return arrivedmasterid;
}
public void setArrivedmasterid(String arrivedmasterid) {
this.arrivedmasterid = arrivedmasterid == null ? null : arrivedmasterid.trim();
}
public String getTransportsplitdescription() {
return transportsplitdescription;
}
public void setTransportsplitdescription(String transportsplitdescription) {
this.transportsplitdescription = transportsplitdescription == null ? null : transportsplitdescription.trim();
}
public String getReceiption() {
return receiption;
}
public void setReceiption(String receiption) {
this.receiption = receiption == null ? null : receiption.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class COMPANYUSER {
private String id;
private String cropCode;
private String password;
private String customsCode;
private String orgCode;
private String fullName;
private String addrCo;
private String lawMan;
private String contacCo;
private String telCo;
private String cropType;
private String zipCode;
private Date createDate;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getCropCode() {
return cropCode;
}
public void setCropCode(String cropCode) {
this.cropCode = cropCode == null ? null : cropCode.trim();
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password == null ? null : password.trim();
}
public String getCustomsCode() {
return customsCode;
}
public void setCustomsCode(String customsCode) {
this.customsCode = customsCode == null ? null : customsCode.trim();
}
public String getOrgCode() {
return orgCode;
}
public void setOrgCode(String orgCode) {
this.orgCode = orgCode == null ? null : orgCode.trim();
}
public String getFullName() {
return fullName;
}
public void setFullName(String fullName) {
this.fullName = fullName == null ? null : fullName.trim();
}
public String getAddrCo() {
return addrCo;
}
public void setAddrCo(String addrCo) {
this.addrCo = addrCo == null ? null : addrCo.trim();
}
public String getLawMan() {
return lawMan;
}
public void setLawMan(String lawMan) {
this.lawMan = lawMan == null ? null : lawMan.trim();
}
public String getContacCo() {
return contacCo;
}
public void setContacCo(String contacCo) {
this.contacCo = contacCo == null ? null : contacCo.trim();
}
public String getTelCo() {
return telCo;
}
public void setTelCo(String telCo) {
this.telCo = telCo == null ? null : telCo.trim();
}
public String getCropType() {
return cropType;
}
public void setCropType(String cropType) {
this.cropType = cropType == null ? null : cropType.trim();
}
public String getZipCode() {
return zipCode;
}
public void setZipCode(String zipCode) {
this.zipCode = zipCode == null ? null : zipCode.trim();
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import lombok.Data;
import java.util.List;
@Data
public class CarAndWayBill {
public String vname;
public List<String> waybillList;
public String masterList;
@Override
public String toString(){
return "vname="+vname+"masterList="+masterList;
}
}
... ...
package com.tianbo.analysis.model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tianbo.analysis.service.ValidateInsert;
import com.tianbo.analysis.service.ValidateUpdate;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
public class DOMTRANSIT {
@NotNull(message="类型不能为null",groups= ValidateUpdate.class)
private String id;
@NotNull(message="类型不能为null",groups= ValidateInsert.class)
@NotBlank(message="类型不能为空",groups=ValidateInsert.class)
@Length(min = 3, max = 3, message = "转运类型 长度必须在 {min} - {max} 之间",groups={ValidateInsert.class, ValidateUpdate.class})
private String transitType;
@DecimalMin(value = "1",message = "件数必须大于等于1",groups= {ValidateInsert.class, ValidateUpdate.class})
private BigDecimal piece;
@DecimalMin(value = "0.01" ,message = "重量必须大于0",groups= {ValidateInsert.class, ValidateUpdate.class})
private BigDecimal weight;
@NotNull(message="运单起始站不能为空",groups=ValidateInsert.class)
private String originStation;
@NotNull(message="运单目的站不能为空",groups=ValidateInsert.class)
private String destinationStation;
private String goodsdesen;
private String goodsdescn;
private String pack;
@NotNull(message="转运前主运单号不能为空",groups=ValidateInsert.class)
private String originMasterwaybill;
private String originHousewaybill;
@NotNull(message="转运前航班号不能为空",groups=ValidateInsert.class)
private String originFlightno;
@NotNull(message="转运前航班日期不能为空",groups=ValidateInsert.class)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date originFlightdate;
@NotNull(message="转运后主运单号不能为空",groups=ValidateInsert.class)
private String transMasterwaybill;
private String transHousewaybill;
@NotNull(message="转运后航班号不能为空",groups=ValidateInsert.class)
private String transFlightno;
@NotNull(message="转运后航班日期不能为空",groups=ValidateInsert.class)
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date transFlightdate;
private Date createDate;
private Date modifyTime;
private String modifyName;
private String agentName;
private String agentCode;
@NotNull(message="申请人账号不能为空",groups=ValidateInsert.class)
private String userName;
private String userRealName;
private String userTel;
private BigDecimal status;
private String approverAccount;
private String approverDate;
private String approverResoult;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id == null ? null : id.trim();
}
public String getTransitType() {
return transitType;
}
public void setTransitType(String transitType) {
this.transitType = transitType == null ? null : transitType.trim();
}
public BigDecimal getPiece() {
return piece;
}
public void setPiece(BigDecimal piece) {
this.piece = piece;
}
public BigDecimal getWeight() {
return weight;
}
public void setWeight(BigDecimal weight) {
this.weight = weight;
}
public String getOriginStation() {
return originStation;
}
public void setOriginStation(String originStation) {
this.originStation = originStation == null ? null : originStation.trim();
}
public String getDestinationStation() {
return destinationStation;
}
public void setDestinationStation(String destinationStation) {
this.destinationStation = destinationStation == null ? null : destinationStation.trim();
}
public String getGoodsdesen() {
return goodsdesen;
}
public void setGoodsdesen(String goodsdesen) {
this.goodsdesen = goodsdesen == null ? null : goodsdesen.trim();
}
public String getGoodsdescn() {
return goodsdescn;
}
public void setGoodsdescn(String goodsdescn) {
this.goodsdescn = goodsdescn == null ? null : goodsdescn.trim();
}
public String getPack() {
return pack;
}
public void setPack(String pack) {
this.pack = pack == null ? null : pack.trim();
}
public String getOriginMasterwaybill() {
return originMasterwaybill;
}
public void setOriginMasterwaybill(String originMasterwaybill) {
this.originMasterwaybill = originMasterwaybill == null ? null : originMasterwaybill.trim();
}
public String getOriginHousewaybill() {
return originHousewaybill;
}
public void setOriginHousewaybill(String originHousewaybill) {
this.originHousewaybill = originHousewaybill == null ? null : originHousewaybill.trim();
}
public String getOriginFlightno() {
return originFlightno;
}
public void setOriginFlightno(String originFlightno) {
this.originFlightno = originFlightno == null ? null : originFlightno.trim();
}
public Date getOriginFlightdate() {
return originFlightdate;
}
public void setOriginFlightdate(Date originFlightdate) {
this.originFlightdate = originFlightdate;
}
public String getTransMasterwaybill() {
return transMasterwaybill;
}
public void setTransMasterwaybill(String transMasterwaybill) {
this.transMasterwaybill = transMasterwaybill == null ? null : transMasterwaybill.trim();
}
public String getTransHousewaybill() {
return transHousewaybill;
}
public void setTransHousewaybill(String transHousewaybill) {
this.transHousewaybill = transHousewaybill == null ? null : transHousewaybill.trim();
}
public String getTransFlightno() {
return transFlightno;
}
public void setTransFlightno(String transFlightno) {
this.transFlightno = transFlightno == null ? null : transFlightno.trim();
}
public Date getTransFlightdate() {
return transFlightdate;
}
public void setTransFlightdate(Date transFlightdate) {
this.transFlightdate = transFlightdate;
}
public Date getCreateDate() {
return createDate;
}
public void setCreateDate(Date createDate) {
this.createDate = createDate;
}
public Date getModifyTime() {
return modifyTime;
}
public void setModifyTime(Date modifyTime) {
this.modifyTime = modifyTime;
}
public String getModifyName() {
return modifyName;
}
public void setModifyName(String modifyName) {
this.modifyName = modifyName == null ? null : modifyName.trim();
}
public String getAgentName() {
return agentName;
}
public void setAgentName(String agentName) {
this.agentName = agentName == null ? null : agentName.trim();
}
public String getAgentCode() {
return agentCode;
}
public void setAgentCode(String agentCode) {
this.agentCode = agentCode == null ? null : agentCode.trim();
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName == null ? null : userName.trim();
}
public String getUserRealName() {
return userRealName;
}
public void setUserRealName(String userRealName) {
this.userRealName = userRealName == null ? null : userRealName.trim();
}
public String getUserTel() {
return userTel;
}
public void setUserTel(String userTel) {
this.userTel = userTel == null ? null : userTel.trim();
}
public BigDecimal getStatus() {
return status;
}
public void setStatus(BigDecimal status) {
this.status = status;
}
public String getApproverAccount() {
return approverAccount;
}
public void setApproverAccount(String approverAccount) {
this.approverAccount = approverAccount == null ? null : approverAccount.trim();
}
public String getApproverDate() {
return approverDate;
}
public void setApproverDate(String approverDate) {
this.approverDate = approverDate == null ? null : approverDate.trim();
}
public String getApproverResoult() {
return approverResoult;
}
public void setApproverResoult(String approverResoult) {
this.approverResoult = approverResoult == null ? null : approverResoult.trim();
}
}
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class PREPAREMASTER {
private String autoid;
private String flightno;
private Date flightdate;
private String originatingstation;
private String destinationstation;
private String waybillnomaster;
private String totalweight;
private String totalpiece;
private String preparetotalpiece;
private String preparetotalweight;
private Date stowagedate;
private String status;
private String carrier;
private String customsstatus;
private String paymode;
private String customscode;
private String agentcode;
private String agentname;
private String shippername;
private String shippercity;
private String shipperaddress;
private String consigneename;
private String consigneecity;
private String consigneeaddress;
private String receiptinformation;
private Date createdate;
private String productname;
private String shipperCode;
private String shipperCountrycode;
private String shipperPhone;
private String shipperFax;
private String consigneeCode;
private String consigneeCountrycode;
private String consigneeFax;
private String consigneePhone;
private String shipperAeo;
private String consigneeAeo;
private String unloadingstation;
private String arrivedAhead;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight == null ? null : totalweight.trim();
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece == null ? null : totalpiece.trim();
}
public String getPreparetotalpiece() {
return preparetotalpiece;
}
public void setPreparetotalpiece(String preparetotalpiece) {
this.preparetotalpiece = preparetotalpiece == null ? null : preparetotalpiece.trim();
}
public String getPreparetotalweight() {
return preparetotalweight;
}
public void setPreparetotalweight(String preparetotalweight) {
this.preparetotalweight = preparetotalweight == null ? null : preparetotalweight.trim();
}
public Date getStowagedate() {
return stowagedate;
}
public void setStowagedate(Date stowagedate) {
this.stowagedate = stowagedate;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getCustomsstatus() {
return customsstatus;
}
public void setCustomsstatus(String customsstatus) {
this.customsstatus = customsstatus == null ? null : customsstatus.trim();
}
public String getPaymode() {
return paymode;
}
public void setPaymode(String paymode) {
this.paymode = paymode == null ? null : paymode.trim();
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getAgentcode() {
return agentcode;
}
public void setAgentcode(String agentcode) {
this.agentcode = agentcode == null ? null : agentcode.trim();
}
public String getAgentname() {
return agentname;
}
public void setAgentname(String agentname) {
this.agentname = agentname == null ? null : agentname.trim();
}
public String getShippername() {
return shippername;
}
public void setShippername(String shippername) {
this.shippername = shippername == null ? null : shippername.trim();
}
public String getShippercity() {
return shippercity;
}
public void setShippercity(String shippercity) {
this.shippercity = shippercity == null ? null : shippercity.trim();
}
public String getShipperaddress() {
return shipperaddress;
}
public void setShipperaddress(String shipperaddress) {
this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
}
public String getConsigneename() {
return consigneename;
}
public void setConsigneename(String consigneename) {
this.consigneename = consigneename == null ? null : consigneename.trim();
}
public String getConsigneecity() {
return consigneecity;
}
public void setConsigneecity(String consigneecity) {
this.consigneecity = consigneecity == null ? null : consigneecity.trim();
}
public String getConsigneeaddress() {
return consigneeaddress;
}
public void setConsigneeaddress(String consigneeaddress) {
this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public String getShipperCode() {
return shipperCode;
}
public void setShipperCode(String shipperCode) {
this.shipperCode = shipperCode == null ? null : shipperCode.trim();
}
public String getShipperCountrycode() {
return shipperCountrycode;
}
public void setShipperCountrycode(String shipperCountrycode) {
this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
}
public String getShipperPhone() {
return shipperPhone;
}
public void setShipperPhone(String shipperPhone) {
this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
}
public String getShipperFax() {
return shipperFax;
}
public void setShipperFax(String shipperFax) {
this.shipperFax = shipperFax == null ? null : shipperFax.trim();
}
public String getConsigneeCode() {
return consigneeCode;
}
public void setConsigneeCode(String consigneeCode) {
this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
}
public String getConsigneeCountrycode() {
return consigneeCountrycode;
}
public void setConsigneeCountrycode(String consigneeCountrycode) {
this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
}
public String getConsigneeFax() {
return consigneeFax;
}
public void setConsigneeFax(String consigneeFax) {
this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
}
public String getConsigneePhone() {
return consigneePhone;
}
public void setConsigneePhone(String consigneePhone) {
this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
}
public String getShipperAeo() {
return shipperAeo;
}
public void setShipperAeo(String shipperAeo) {
this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim();
}
public String getConsigneeAeo() {
return consigneeAeo;
}
public void setConsigneeAeo(String consigneeAeo) {
this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim();
}
public String getUnloadingstation() {
return unloadingstation;
}
public void setUnloadingstation(String unloadingstation) {
this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim();
}
public String getArrivedAhead() {
return arrivedAhead;
}
public void setArrivedAhead(String arrivedAhead) {
this.arrivedAhead = arrivedAhead == null ? null : arrivedAhead.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.util.Date;
public class PREPARESECONDARY {
private String autoid;
private String waybillnomaster;
private String waybillnosecondary;
private String totalweight;
private String totalpiece;
private String preparepiece;
private String prepareweight;
private Date createdate;
private String preparemasterid;
private String carrier;
private String flightno;
private Date flightdate;
private String originatingstation;
private String destinationstation;
private String customsstatus;
private String paymode;
private String productname;
private Date stowagedate;
private String customscode;
private String shippername;
private String shippercity;
private String shipperaddress;
private String consigneename;
private String consigneecity;
private String consigneeaddress;
private String receiptinformation;
private String agentcode;
private String agentname;
private String status;
private String shipperCode;
private String shipperCountrycode;
private String shipperPhone;
private String shipperFax;
private String consigneeCode;
private String consigneeCountrycode;
private String consigneePhone;
private String consigneeFax;
private String shipperAeo;
private String consigneeAeo;
private String unloadingstation;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public String getWaybillnomaster() {
return waybillnomaster;
}
public void setWaybillnomaster(String waybillnomaster) {
this.waybillnomaster = waybillnomaster == null ? null : waybillnomaster.trim();
}
public String getWaybillnosecondary() {
return waybillnosecondary;
}
public void setWaybillnosecondary(String waybillnosecondary) {
this.waybillnosecondary = waybillnosecondary == null ? null : waybillnosecondary.trim();
}
public String getTotalweight() {
return totalweight;
}
public void setTotalweight(String totalweight) {
this.totalweight = totalweight == null ? null : totalweight.trim();
}
public String getTotalpiece() {
return totalpiece;
}
public void setTotalpiece(String totalpiece) {
this.totalpiece = totalpiece == null ? null : totalpiece.trim();
}
public String getPreparepiece() {
return preparepiece;
}
public void setPreparepiece(String preparepiece) {
this.preparepiece = preparepiece == null ? null : preparepiece.trim();
}
public String getPrepareweight() {
return prepareweight;
}
public void setPrepareweight(String prepareweight) {
this.prepareweight = prepareweight == null ? null : prepareweight.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getPreparemasterid() {
return preparemasterid;
}
public void setPreparemasterid(String preparemasterid) {
this.preparemasterid = preparemasterid == null ? null : preparemasterid.trim();
}
public String getCarrier() {
return carrier;
}
public void setCarrier(String carrier) {
this.carrier = carrier == null ? null : carrier.trim();
}
public String getFlightno() {
return flightno;
}
public void setFlightno(String flightno) {
this.flightno = flightno == null ? null : flightno.trim();
}
public Date getFlightdate() {
return flightdate;
}
public void setFlightdate(Date flightdate) {
this.flightdate = flightdate;
}
public String getOriginatingstation() {
return originatingstation;
}
public void setOriginatingstation(String originatingstation) {
this.originatingstation = originatingstation == null ? null : originatingstation.trim();
}
public String getDestinationstation() {
return destinationstation;
}
public void setDestinationstation(String destinationstation) {
this.destinationstation = destinationstation == null ? null : destinationstation.trim();
}
public String getCustomsstatus() {
return customsstatus;
}
public void setCustomsstatus(String customsstatus) {
this.customsstatus = customsstatus == null ? null : customsstatus.trim();
}
public String getPaymode() {
return paymode;
}
public void setPaymode(String paymode) {
this.paymode = paymode == null ? null : paymode.trim();
}
public String getProductname() {
return productname;
}
public void setProductname(String productname) {
this.productname = productname == null ? null : productname.trim();
}
public Date getStowagedate() {
return stowagedate;
}
public void setStowagedate(Date stowagedate) {
this.stowagedate = stowagedate;
}
public String getCustomscode() {
return customscode;
}
public void setCustomscode(String customscode) {
this.customscode = customscode == null ? null : customscode.trim();
}
public String getShippername() {
return shippername;
}
public void setShippername(String shippername) {
this.shippername = shippername == null ? null : shippername.trim();
}
public String getShippercity() {
return shippercity;
}
public void setShippercity(String shippercity) {
this.shippercity = shippercity == null ? null : shippercity.trim();
}
public String getShipperaddress() {
return shipperaddress;
}
public void setShipperaddress(String shipperaddress) {
this.shipperaddress = shipperaddress == null ? null : shipperaddress.trim();
}
public String getConsigneename() {
return consigneename;
}
public void setConsigneename(String consigneename) {
this.consigneename = consigneename == null ? null : consigneename.trim();
}
public String getConsigneecity() {
return consigneecity;
}
public void setConsigneecity(String consigneecity) {
this.consigneecity = consigneecity == null ? null : consigneecity.trim();
}
public String getConsigneeaddress() {
return consigneeaddress;
}
public void setConsigneeaddress(String consigneeaddress) {
this.consigneeaddress = consigneeaddress == null ? null : consigneeaddress.trim();
}
public String getReceiptinformation() {
return receiptinformation;
}
public void setReceiptinformation(String receiptinformation) {
this.receiptinformation = receiptinformation == null ? null : receiptinformation.trim();
}
public String getAgentcode() {
return agentcode;
}
public void setAgentcode(String agentcode) {
this.agentcode = agentcode == null ? null : agentcode.trim();
}
public String getAgentname() {
return agentname;
}
public void setAgentname(String agentname) {
this.agentname = agentname == null ? null : agentname.trim();
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status == null ? null : status.trim();
}
public String getShipperCode() {
return shipperCode;
}
public void setShipperCode(String shipperCode) {
this.shipperCode = shipperCode == null ? null : shipperCode.trim();
}
public String getShipperCountrycode() {
return shipperCountrycode;
}
public void setShipperCountrycode(String shipperCountrycode) {
this.shipperCountrycode = shipperCountrycode == null ? null : shipperCountrycode.trim();
}
public String getShipperPhone() {
return shipperPhone;
}
public void setShipperPhone(String shipperPhone) {
this.shipperPhone = shipperPhone == null ? null : shipperPhone.trim();
}
public String getShipperFax() {
return shipperFax;
}
public void setShipperFax(String shipperFax) {
this.shipperFax = shipperFax == null ? null : shipperFax.trim();
}
public String getConsigneeCode() {
return consigneeCode;
}
public void setConsigneeCode(String consigneeCode) {
this.consigneeCode = consigneeCode == null ? null : consigneeCode.trim();
}
public String getConsigneeCountrycode() {
return consigneeCountrycode;
}
public void setConsigneeCountrycode(String consigneeCountrycode) {
this.consigneeCountrycode = consigneeCountrycode == null ? null : consigneeCountrycode.trim();
}
public String getConsigneePhone() {
return consigneePhone;
}
public void setConsigneePhone(String consigneePhone) {
this.consigneePhone = consigneePhone == null ? null : consigneePhone.trim();
}
public String getConsigneeFax() {
return consigneeFax;
}
public void setConsigneeFax(String consigneeFax) {
this.consigneeFax = consigneeFax == null ? null : consigneeFax.trim();
}
public String getShipperAeo() {
return shipperAeo;
}
public void setShipperAeo(String shipperAeo) {
this.shipperAeo = shipperAeo == null ? null : shipperAeo.trim();
}
public String getConsigneeAeo() {
return consigneeAeo;
}
public void setConsigneeAeo(String consigneeAeo) {
this.consigneeAeo = consigneeAeo == null ? null : consigneeAeo.trim();
}
public String getUnloadingstation() {
return unloadingstation;
}
public void setUnloadingstation(String unloadingstation) {
this.unloadingstation = unloadingstation == null ? null : unloadingstation.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import java.io.Serializable;
/**
* 统一认证返回实体
*/
public class ResultMessage implements Serializable {
private static final long serialVersionUID = 1L;
private String resultCode;
private String resultMessage;
public ResultMessage(String resultCode, String resultMessage) {
this.resultCode = resultCode;
this.resultMessage = resultMessage;
}
}
... ...
package com.tianbo.analysis.model;
import java.math.BigDecimal;
import java.util.Date;
public class SENDLOG {
private String autoid;
private Date createdate;
private String opauthor;
private Long sendpeice;
private BigDecimal sendweight;
private String receiption;
private String messagetype;
private String messageautoid;
public String getAutoid() {
return autoid;
}
public void setAutoid(String autoid) {
this.autoid = autoid == null ? null : autoid.trim();
}
public Date getCreatedate() {
return createdate;
}
public void setCreatedate(Date createdate) {
this.createdate = createdate;
}
public String getOpauthor() {
return opauthor;
}
public void setOpauthor(String opauthor) {
this.opauthor = opauthor == null ? null : opauthor.trim();
}
public Long getSendpeice() {
return sendpeice;
}
public void setSendpeice(Long sendpeice) {
this.sendpeice = sendpeice;
}
public BigDecimal getSendweight() {
return sendweight;
}
public void setSendweight(BigDecimal sendweight) {
this.sendweight = sendweight;
}
public String getReceiption() {
return receiption;
}
public void setReceiption(String receiption) {
this.receiption = receiption == null ? null : receiption.trim();
}
public String getMessagetype() {
return messagetype;
}
public void setMessagetype(String messagetype) {
this.messagetype = messagetype == null ? null : messagetype.trim();
}
public String getMessageautoid() {
return messageautoid;
}
public void setMessageautoid(String messageautoid) {
this.messageautoid = messageautoid == null ? null : messageautoid.trim();
}
}
\ No newline at end of file
... ...
package com.tianbo.analysis.model;
import lombok.Data;
import java.util.List;
/**
* 统一认证的推送实体
*/
@Data
public class UAM {
private long syncTime;
private String action;
private String resType;
private List<UserData> data;
}
... ...
package com.tianbo.analysis.model;
import lombok.Data;
/**
* 统一认证推送的用户实体
*/
@Data
public class UserData {
private String USER_ID;
private String USER_NAME;
private String USER_NO;
private String MOBILE;
private String IDCARD_NO;
private String COUNTRY;
private String SEX;
private String NATIONALITY;
private String OFFICE_PHONE;
private String OFFICE_ADDRESS;
private String EMAIL;
private String JOB_LEVEL;
private String JOB_TITLE;
private String JOB_TYPE;
private String JOB_STATUS;
private String JOB_POSITION;
private String SECRET_LEVEL;
private String USER_POST;
private String USER_JOB_ID;
private String ORG_ID;
private String USER_TITLE;
private String LOGIN_NAME;
private String SHOW_ORDER;
private String REMARK;
private String NAIL_ID;
private String PK_PSNDOC;
private String PWD;
private String PWD_ENCRYPT;
private String UPDATE_TIME;
}
... ...
package com.tianbo.analysis.service;
import com.tianbo.analysis.model.CarAndWayBill;
import com.tianbo.analysis.model.PREPAREMASTER;
import org.jetbrains.annotations.NotNull;
public interface ArriveMasterService {
/**
* 提前运抵业务处理
*/
boolean arrivedAhead(CarAndWayBill carAndWayBill);
/**
* 根据提前运抵的预配主单生成运抵,主分单都会被生成
*/
boolean importFromPreplan(@NotNull PREPAREMASTER preparemasterFirst);
}
... ...
package com.tianbo.analysis.service;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.model.DOMTRANSIT;
import java.util.List;
public interface DomTransitService {
int deleteByPrimaryKey(String id);
int insert(DOMTRANSIT record);
int insertSelective(DOMTRANSIT record);
DOMTRANSIT selectByPrimaryKey(String id);
PageInfo<DOMTRANSIT> selectList(DOMTRANSIT record, int pageNum, int pageSize);
int updateByPrimaryKeySelective(DOMTRANSIT record);
int updateByPrimaryKey(DOMTRANSIT record);
}
... ...
package com.tianbo.analysis.service;
public interface ValidateInsert {
}
... ...
package com.tianbo.analysis.service;
public interface ValidateUpdate {
}
... ...
package com.tianbo.analysis.service.imp;
import com.tianbo.analysis.dao.*;
import com.tianbo.analysis.model.*;
import com.tianbo.analysis.service.ArriveMasterService;
import com.tianbo.analysis.tools.WaybillTools;
import lombok.extern.slf4j.Slf4j;
import org.jetbrains.annotations.NotNull;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.UUID;
@Service
@Slf4j
public class ArriveMasterServiceImpl implements ArriveMasterService {
@Resource
PREPAREMASTERMapper preparemasterMapper;
@Resource
PREPARESECONDARYMapper preparesecondaryMapper;
@Resource
ARRIVEDMASTERMapper arrivedmasterMapper;
@Resource
ARRIVEDSECONDARYMapper arrivedsecondaryMapper;
@Resource
SENDLOGMapper sendlogMapper;
@Override
public boolean arrivedAhead(CarAndWayBill carAndWayBill) {
try {
/**
* 根据运单列表,与预配核碰提前运抵货物。
*/
log.info("接收到通知车辆{}拉货数据{}",carAndWayBill.vname,carAndWayBill.getMasterList());
carAndWayBill.setMasterList(carAndWayBill.getMasterList().replace(",",","));
carAndWayBill.waybillList = Arrays.asList(carAndWayBill.getMasterList().split(","));
List<String> waybillList = carAndWayBill.waybillList;
if (!waybillList.isEmpty()){
for (String waybillmaster : waybillList) {
log.info("开始核对运单{}",waybillmaster);
/**
* 校验运单格式,要为172-66666666,中间有减号的才行
* 校验不通过的属于17288888888这种格式的给他加个-号再处理
*/
if (!WaybillTools.checkWaybillFormat(waybillmaster)) {
log.info("处理{}运单格式",waybillmaster);
waybillmaster = WaybillTools.awbFormat(waybillmaster);
}
/**
* 找提前运抵预配
* 这里注意,同一个预配有可能多发,所以有重复。
* 这里目前只取回执状态为04以及提前运抵为Y的预配主单
*/
List<PREPAREMASTER> preparemasterList = preparemasterMapper.selectArrivedAheadByWaybillNo(waybillmaster);
/**
* 判断是否为空
* 有多个符合条件的预配只取最新的第一个
*/
if (!preparemasterList.isEmpty()) {
PREPAREMASTER preparemasterFirst = preparemasterList.get(0);
log.info("查到提前运抵运单:{}", preparemasterFirst.getWaybillnomaster());
return importFromPreplan(preparemasterFirst);
}else {
log.info("运单{}不属于提前运抵运单", waybillmaster);
return false;
}
}
}
return false;
} catch (Exception e) {
e.printStackTrace();
return false;
}
}
@Override
public boolean importFromPreplan(@NotNull PREPAREMASTER preparemasterFirst) {
try {
//共用入库主键
String id = UUID.randomUUID().toString();
/**
* 根据主单号判断是否有预配分单。
*/
List<PREPARESECONDARY> preparesecondaryList = preparesecondaryMapper.selectByMasterKey(preparemasterFirst.getAutoid());
/**
* 根据预配生成运抵数据
* 生成规则,有运抵数据则不生,无运抵数据才生。
*/
if (preparesecondaryList.isEmpty()) {
log.info("运单{}预配没有分单,开始生成主单运抵",preparemasterFirst.getWaybillnomaster());
/**
* 预配没分单,直接生成主单运抵
*/
ARRIVEDMASTER arrivedmaster = new ARRIVEDMASTER();
arrivedmaster.setAutoid(id);
arrivedmaster.setArrivedAhead("Y");
arrivedmaster.setTcdName("Air Waybill");
arrivedmaster.setTcdTypecode("741");
arrivedmaster.setoName("ZHENGZHOU");
arrivedmaster.setGrossweightmeasureuc("KGM");
arrivedmaster.setTotalgrossweightmeasureuc("KGM");
arrivedmaster.setChargeableweightmeasureuc("KGM");
arrivedmaster.setTransportsplitdescription("T");
arrivedmaster.setStatus("01");
arrivedmaster.setCreatedate(new Date());
arrivedmaster.setWaybillnomaster(preparemasterFirst.getWaybillnomaster());
arrivedmaster.setFlightno(preparemasterFirst.getFlightno());
arrivedmaster.setFlightdate(preparemasterFirst.getFlightdate());
arrivedmaster.setCarrier(preparemasterFirst.getCarrier());
arrivedmaster.setOriginatingstation(preparemasterFirst.getOriginatingstation());
arrivedmaster.setDestinationstation(preparemasterFirst.getDestinationstation());
arrivedmaster.setArrivedtotalpiece(preparemasterFirst.getTotalpiece());
arrivedmaster.setTotalpiecequantity(preparemasterFirst.getTotalpiece());
arrivedmaster.setArrivedtotalweight(preparemasterFirst.getTotalweight());
arrivedmaster.setTotalgrossweightmeasure(preparemasterFirst.getTotalweight());
arrivedmaster.setChargeableweightmeasure(preparemasterFirst.getTotalweight());
arrivedmaster.setArriveddate(new Date());
arrivedmaster.setCustomscode(preparemasterFirst.getCustomscode());
arrivedmaster.setProductname(preparemasterFirst.getProductname());
//查重 根据运单号,有运抵数据则不插入也不更新了,说明已经产生过业务
List<ARRIVEDMASTER> arrivedmasterList = arrivedmasterMapper.selectByWaybillNo(preparemasterFirst.getWaybillnomaster());
if (arrivedmasterList.isEmpty()) {
int i = arrivedmasterMapper.insertSelective(arrivedmaster);
log.info("已插入提前运抵数据:{},运单号为{}", i, arrivedmaster.getWaybillnomaster());
}else {
log.info("运单{}已存在运抵数据,不再提前生成运抵信息",preparemasterFirst.getWaybillnomaster());
}
} else {
//根据分单预配生成分单运抵
for (PREPARESECONDARY preparesecondary : preparesecondaryList) {
log.info("运单{}预配含有分单,生成分单运抵",preparemasterFirst.getWaybillnomaster());
String id_slave = UUID.randomUUID().toString();
ARRIVEDSECONDARY arrivedsecondary = new ARRIVEDSECONDARY();
arrivedsecondary.setAutoid(id_slave);
arrivedsecondary.setWaybillnomaster(preparesecondary.getWaybillnomaster());
arrivedsecondary.setWaybillnosecondary(preparesecondary.getWaybillnosecondary());
arrivedsecondary.setCarrier(preparesecondary.getCarrier());
arrivedsecondary.setoId(preparesecondary.getOriginatingstation());
arrivedsecondary.setFdId(preparesecondary.getDestinationstation());
arrivedsecondary.setFlightno(preparesecondary.getFlightno());
arrivedsecondary.setFlightdate(preparesecondary.getFlightdate());
arrivedsecondary.setArrivedtotalpiece(preparesecondary.getTotalpiece());
arrivedsecondary.setArrivedtotalweight(preparesecondary.getTotalweight());
arrivedsecondary.setTotalpiecequantity(preparesecondary.getTotalpiece());
arrivedsecondary.setTotalgrossweightmeasure(preparesecondary.getTotalweight());
arrivedsecondary.setChargeableweightmeasure(preparesecondary.getTotalweight());
arrivedsecondary.setArriveddate(new Date());
arrivedsecondary.setCustomscode(preparesecondary.getCustomscode());
arrivedsecondary.setProductname(preparesecondary.getProductname());
arrivedsecondary.setCreatedate(new Date());
arrivedsecondary.setArrivedmasterid("");
arrivedsecondary.setStatus("01");
arrivedsecondary.setTcdName("Air Waybill");
arrivedsecondary.setTcdTypecode("741");
arrivedsecondary.setoName("ZHENGZHOU");
//查重 根据运单号,有运抵数据则不插入也不更新了,说明已经产生过业务
List<ARRIVEDSECONDARY> arrivedsecondaryList = arrivedsecondaryMapper.selectByWaybillNo(arrivedsecondary);
if (arrivedsecondaryList.isEmpty()) {
int i = arrivedsecondaryMapper.insertSelective(arrivedsecondary);
log.info("已插入提前运抵数据,插入数量:{},运单号为{}_{}", i, arrivedsecondary.getWaybillnomaster(), arrivedsecondary.getWaybillnosecondary());
/**
* 插入日志。
*/
if (i > 0) {
SENDLOG sendlog = new SENDLOG();
sendlog.setAutoid(id_slave);
sendlog.setCreatedate(new Date());
sendlog.setMessageautoid(id_slave);
sendlog.setOpauthor("提前运抵");
sendlog.setSendpeice(Long.parseLong(preparesecondary.getTotalpiece()));
sendlog.setSendweight(new BigDecimal(preparesecondary.getTotalweight()));
sendlog.setReceiption("SYSTEM 提前运抵生成");
sendlog.setMessagetype("MT3201");
sendlogMapper.insertSelective(sendlog);
log.info("分单生成日志已记录");
}
}
}
}
} catch (Exception e) {
e.printStackTrace();
return false;
}
return true;
}
}
... ...
package com.tianbo.analysis.service.imp;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.tianbo.analysis.dao.DOMTRANSITMapper;
import com.tianbo.analysis.model.DOMTRANSIT;
import com.tianbo.analysis.service.DomTransitService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import java.util.UUID;
@Service
public class DomtransitServiceImpl implements DomTransitService {
@Resource
DOMTRANSITMapper domtransitMapper;
@Override
public int insert(DOMTRANSIT record) {
return domtransitMapper.insert(record);
}
@Override
public int insertSelective(DOMTRANSIT record) {
String id= UUID.randomUUID().toString();
record.setId(id);
return domtransitMapper.insertSelective(record);
}
@Override
public int deleteByPrimaryKey(String id) {
return domtransitMapper.deleteByPrimaryKey(id);
}
@Override
public DOMTRANSIT selectByPrimaryKey(String id) {
return domtransitMapper.selectByPrimaryKey(id);
}
@Override
public PageInfo<DOMTRANSIT> selectList(DOMTRANSIT record, int pageNum, int pageSize) {
Page<DOMTRANSIT> page = PageHelper.startPage(pageNum,pageSize);
List<DOMTRANSIT> list = domtransitMapper.selectList(record);
PageInfo<DOMTRANSIT> result = new PageInfo<DOMTRANSIT>(list);
return result;
}
@Override
public int updateByPrimaryKeySelective(DOMTRANSIT record) {
return domtransitMapper.updateByPrimaryKeySelective(record);
}
@Override
public int updateByPrimaryKey(DOMTRANSIT record) {
return domtransitMapper.updateByPrimaryKey(record);
}
}
... ...
package com.tianbo.analysis.tools;
import org.apache.commons.lang.StringUtils;
import java.util.regex.Pattern;
/**
* @author mrz
* 关于运单的工具类
*/
public class WaybillTools {
/**
* 检查运单格式是否符合要求 格式要求为172-66666666
* @param waybillNo 运单号
* @return true符合
*/
public static boolean checkWaybillFormat(String waybillNo){
if (StringUtils.isNotBlank(waybillNo)){
String pattern = "^\\d{3}-\\d{8}$";
// 创建 Pattern 对象
Pattern r = Pattern.compile(pattern);
boolean isMatch = Pattern.matches(pattern, waybillNo);
return isMatch;
}
return false;
}
/**
* 转换运单格式,将17266666666格式转换成172-66666666
* @param awbNo 运单号,格式为17255555555
* @return 转换后的运单号
*/
public static String awbFormat(String awbNo) {
if (!StringUtils.isEmpty(awbNo)) {
//适配邮单解析
String pattern = "\\d{11}";
boolean isMatch = Pattern.matches(pattern, awbNo);
if (!isMatch){
return awbNo;
}
StringBuffer stringBuffer = new StringBuffer(awbNo);
stringBuffer.insert(3, "-");
awbNo = stringBuffer.toString();
return awbNo;
}
return "";
}
}
... ...
... ... @@ -19,9 +19,11 @@
<!--password="">-->
<!--</jdbcConnection>-->
<jdbcConnection driverClass="oracle.jdbc.driver.OracleDriver"
connectionURL="jdbc:oracle:thin:@218.28.199.134:8004:CGODB"
connectionURL="jdbc:oracle:thin:@192.168.1.253:1522:ORCLL"
userId="CGONMS"
password="1q2w3e4r">
password="vmvnv1v2">
<!--防止生成其他库同名表-->
<property name="nullCatalogMeansCurrent" value="true"/>
</jdbcConnection>
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和
NUMERIC 类型解析为java.math.BigDecimal -->
... ... @@ -33,18 +35,18 @@
</javaTypeResolver>
<!-- 生成模型的包名和位置-->
<javaModelGenerator targetPackage="com.tianbo.analysis.model" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="enableSubPackages" value="false"/>
<property name="trimStrings" value="true"/>
</javaModelGenerator>
<!-- 生成映射文件的包名和位置-->
<sqlMapGenerator targetPackage="mapping" targetProject="src/main/resources">
<property name="enableSubPackages" value="true"/>
<property name="enableSubPackages" value="false"/>
</sqlMapGenerator>
<!-- 生成DAO的包名和位置-->
<javaClientGenerator type="XMLMAPPER" targetPackage="com.tianbo.analysis.dao" targetProject="src/main/java">
<property name="enableSubPackages" value="true"/>
<property name="enableSubPackages" value="false"/>
</javaClientGenerator>
<!-- 要生成的表 tableName是数据库中的表名或视图名 domainObjectName是实体类名-->
<table tableName="CUSTOMSMESSAGE" domainObjectName="CUSTOMSMESSAGE" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
<table schema="CGONMS" tableName="SENDLOG" domainObjectName="SENDLOG" enableCountByExample="false" enableUpdateByExample="false" enableDeleteByExample="false" enableSelectByExample="false" selectByExampleQueryId="false"></table>
</context>
</generatorConfiguration>
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.ARRIVEDMASTERMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDMASTER" >
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
<result column="ORIGINATINGSTATION" property="originatingstation" jdbcType="VARCHAR" />
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
<result column="DESTINATIONSTATION" property="destinationstation" jdbcType="VARCHAR" />
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
<result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
<result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
<result column="RECEIPTINFORMATION" property="receiptinformation" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="ARRIVED_AHEAD" property="arrivedAhead" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, FLIGHTNO, FLIGHTDATE, CARRIER, ORIGINATINGSTATION,
O_NAME, DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE, PRODUCTNAME,
STATUS, RECEIPTINFORMATION, CREATEDATE, ARRIVED_AHEAD
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from CGONMS.ARRIVEDMASTER
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<select id="selectByWaybillNo" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from CGONMS.ARRIVEDMASTER
where WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from CGONMS.ARRIVEDMASTER
where AUTOID = #{autoid,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
insert into CGONMS.ARRIVEDMASTER (AUTOID, WAYBILLNOMASTER, TCD_NAME,
TCD_TYPECODE, FLIGHTNO, FLIGHTDATE,
CARRIER, ORIGINATINGSTATION, O_NAME,
DESTINATIONSTATION, FD_NAME, ARRIVEDTOTALPIECE,
TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
TRANSPORTSPLITDESCRIPTION, CUSTOMSCODE,
PRODUCTNAME, STATUS, RECEIPTINFORMATION,
CREATEDATE, ARRIVED_AHEAD)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
#{tcdTypecode,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP},
#{carrier,jdbcType=VARCHAR}, #{originatingstation,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR},
#{destinationstation,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR}, #{arrivedtotalpiece,jdbcType=VARCHAR},
#{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
#{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
#{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
#{transportsplitdescription,jdbcType=VARCHAR}, #{customscode,jdbcType=VARCHAR},
#{productname,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR}, #{receiptinformation,jdbcType=VARCHAR},
#{createdate,jdbcType=TIMESTAMP}, #{arrivedAhead,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
insert into CGONMS.ARRIVEDMASTER
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="tcdName != null" >
TCD_NAME,
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="carrier != null" >
CARRIER,
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION,
</if>
<if test="oName != null" >
O_NAME,
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION,
</if>
<if test="fdName != null" >
FD_NAME,
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE,
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY,
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT,
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC,
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE,
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC,
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE,
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC,
</if>
<if test="arriveddate != null" >
ARRIVEDDATE,
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="arrivedAhead != null" >
ARRIVED_AHEAD,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
#{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
#{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
#{originatingstation,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
#{oName,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
#{destinationstation,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
#{fdName,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalpiece != null" >
#{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
#{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
#{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
#{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
#{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
#{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
#{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
#{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="transportsplitdescription != null" >
#{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
#{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedAhead != null" >
#{arrivedAhead,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
update CGONMS.ARRIVEDMASTER
<set >
<if test="waybillnomaster != null" >
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="carrier != null" >
CARRIER = #{carrier,jdbcType=VARCHAR},
</if>
<if test="originatingstation != null" >
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
O_NAME = #{oName,jdbcType=VARCHAR},
</if>
<if test="destinationstation != null" >
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
FD_NAME = #{fdName,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="customscode != null" >
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
</if>
<if test="status != null" >
STATUS = #{status,jdbcType=VARCHAR},
</if>
<if test="receiptinformation != null" >
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedAhead != null" >
ARRIVED_AHEAD = #{arrivedAhead,jdbcType=VARCHAR},
</if>
</set>
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDMASTER" >
update CGONMS.ARRIVEDMASTER
set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
CARRIER = #{carrier,jdbcType=VARCHAR},
ORIGINATINGSTATION = #{originatingstation,jdbcType=VARCHAR},
O_NAME = #{oName,jdbcType=VARCHAR},
DESTINATIONSTATION = #{destinationstation,jdbcType=VARCHAR},
FD_NAME = #{fdName,jdbcType=VARCHAR},
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR},
RECEIPTINFORMATION = #{receiptinformation,jdbcType=VARCHAR},
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
ARRIVED_AHEAD = #{arrivedAhead,jdbcType=VARCHAR}
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
</mapper>
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.ARRIVEDSECONDARYMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
<id column="AUTOID" property="autoid" jdbcType="VARCHAR" />
<result column="WAYBILLNOMASTER" property="waybillnomaster" jdbcType="VARCHAR" />
<result column="TCD_NAME" property="tcdName" jdbcType="VARCHAR" />
<result column="TCD_TYPECODE" property="tcdTypecode" jdbcType="VARCHAR" />
<result column="WAYBILLNOSECONDARY" property="waybillnosecondary" jdbcType="VARCHAR" />
<result column="CARRIER" property="carrier" jdbcType="VARCHAR" />
<result column="O_ID" property="oId" jdbcType="VARCHAR" />
<result column="O_NAME" property="oName" jdbcType="VARCHAR" />
<result column="FD_ID" property="fdId" jdbcType="VARCHAR" />
<result column="FD_NAME" property="fdName" jdbcType="VARCHAR" />
<result column="FLIGHTNO" property="flightno" jdbcType="VARCHAR" />
<result column="FLIGHTDATE" property="flightdate" jdbcType="TIMESTAMP" />
<result column="ARRIVEDTOTALPIECE" property="arrivedtotalpiece" jdbcType="VARCHAR" />
<result column="TOTALPIECEQUANTITY" property="totalpiecequantity" jdbcType="VARCHAR" />
<result column="ARRIVEDTOTALWEIGHT" property="arrivedtotalweight" jdbcType="VARCHAR" />
<result column="GROSSWEIGHTMEASUREUC" property="grossweightmeasureuc" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASURE" property="totalgrossweightmeasure" jdbcType="VARCHAR" />
<result column="TOTALGROSSWEIGHTMEASUREUC" property="totalgrossweightmeasureuc" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASURE" property="chargeableweightmeasure" jdbcType="VARCHAR" />
<result column="CHARGEABLEWEIGHTMEASUREUC" property="chargeableweightmeasureuc" jdbcType="VARCHAR" />
<result column="ARRIVEDDATE" property="arriveddate" jdbcType="TIMESTAMP" />
<result column="CUSTOMSCODE" property="customscode" jdbcType="VARCHAR" />
<result column="PRODUCTNAME" property="productname" jdbcType="VARCHAR" />
<result column="CREATEDATE" property="createdate" jdbcType="TIMESTAMP" />
<result column="ARRIVEDMASTERID" property="arrivedmasterid" jdbcType="VARCHAR" />
<result column="TRANSPORTSPLITDESCRIPTION" property="transportsplitdescription" jdbcType="VARCHAR" />
<result column="RECEIPTION" property="receiption" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
AUTOID, WAYBILLNOMASTER, TCD_NAME, TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER, O_ID,
O_NAME, FD_ID, FD_NAME, FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE, TOTALPIECEQUANTITY,
ARRIVEDTOTALWEIGHT, GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE, TOTALGROSSWEIGHTMEASUREUC,
CHARGEABLEWEIGHTMEASURE, CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE, CUSTOMSCODE, PRODUCTNAME,
CREATEDATE, ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION, RECEIPTION, STATUS
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from CGONMS.ARRIVEDSECONDARY
where AUTOID = #{autoid,jdbcType=VARCHAR}
</select>
<select id="selectByWaybillNo" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
select
<include refid="Base_Column_List" />
from CGONMS.ARRIVEDSECONDARY
where WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR}
and WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from CGONMS.ARRIVEDSECONDARY
where AUTOID = #{autoid,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
insert into CGONMS.ARRIVEDSECONDARY (AUTOID, WAYBILLNOMASTER, TCD_NAME,
TCD_TYPECODE, WAYBILLNOSECONDARY, CARRIER,
O_ID, O_NAME, FD_ID, FD_NAME,
FLIGHTNO, FLIGHTDATE, ARRIVEDTOTALPIECE,
TOTALPIECEQUANTITY, ARRIVEDTOTALWEIGHT,
GROSSWEIGHTMEASUREUC, TOTALGROSSWEIGHTMEASURE,
TOTALGROSSWEIGHTMEASUREUC, CHARGEABLEWEIGHTMEASURE,
CHARGEABLEWEIGHTMEASUREUC, ARRIVEDDATE,
CUSTOMSCODE, PRODUCTNAME, CREATEDATE,
ARRIVEDMASTERID, TRANSPORTSPLITDESCRIPTION,
RECEIPTION, STATUS)
values (#{autoid,jdbcType=VARCHAR}, #{waybillnomaster,jdbcType=VARCHAR}, #{tcdName,jdbcType=VARCHAR},
#{tcdTypecode,jdbcType=VARCHAR}, #{waybillnosecondary,jdbcType=VARCHAR}, #{carrier,jdbcType=VARCHAR},
#{oId,jdbcType=VARCHAR}, #{oName,jdbcType=VARCHAR}, #{fdId,jdbcType=VARCHAR}, #{fdName,jdbcType=VARCHAR},
#{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=TIMESTAMP}, #{arrivedtotalpiece,jdbcType=VARCHAR},
#{totalpiecequantity,jdbcType=VARCHAR}, #{arrivedtotalweight,jdbcType=VARCHAR},
#{grossweightmeasureuc,jdbcType=VARCHAR}, #{totalgrossweightmeasure,jdbcType=VARCHAR},
#{totalgrossweightmeasureuc,jdbcType=VARCHAR}, #{chargeableweightmeasure,jdbcType=VARCHAR},
#{chargeableweightmeasureuc,jdbcType=VARCHAR}, #{arriveddate,jdbcType=TIMESTAMP},
#{customscode,jdbcType=VARCHAR}, #{productname,jdbcType=VARCHAR}, #{createdate,jdbcType=TIMESTAMP},
#{arrivedmasterid,jdbcType=VARCHAR}, #{transportsplitdescription,jdbcType=VARCHAR},
#{receiption,jdbcType=VARCHAR}, #{status,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
insert into CGONMS.ARRIVEDSECONDARY
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
AUTOID,
</if>
<if test="waybillnomaster != null" >
WAYBILLNOMASTER,
</if>
<if test="tcdName != null" >
TCD_NAME,
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE,
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY,
</if>
<if test="carrier != null" >
CARRIER,
</if>
<if test="oId != null" >
O_ID,
</if>
<if test="oName != null" >
O_NAME,
</if>
<if test="fdId != null" >
FD_ID,
</if>
<if test="fdName != null" >
FD_NAME,
</if>
<if test="flightno != null" >
FLIGHTNO,
</if>
<if test="flightdate != null" >
FLIGHTDATE,
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE,
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY,
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT,
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC,
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE,
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC,
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE,
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC,
</if>
<if test="arriveddate != null" >
ARRIVEDDATE,
</if>
<if test="customscode != null" >
CUSTOMSCODE,
</if>
<if test="productname != null" >
PRODUCTNAME,
</if>
<if test="createdate != null" >
CREATEDATE,
</if>
<if test="arrivedmasterid != null" >
ARRIVEDMASTERID,
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION,
</if>
<if test="receiption != null" >
RECEIPTION,
</if>
<if test="status != null" >
STATUS,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="autoid != null" >
#{autoid,jdbcType=VARCHAR},
</if>
<if test="waybillnomaster != null" >
#{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
#{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
#{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
#{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
#{carrier,jdbcType=VARCHAR},
</if>
<if test="oId != null" >
#{oId,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
#{oName,jdbcType=VARCHAR},
</if>
<if test="fdId != null" >
#{fdId,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
#{fdName,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
#{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
#{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedtotalpiece != null" >
#{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
#{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
#{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
#{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
#{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
#{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
#{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
#{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
#{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="customscode != null" >
#{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
#{productname,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
#{createdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedmasterid != null" >
#{arrivedmasterid,jdbcType=VARCHAR},
</if>
<if test="transportsplitdescription != null" >
#{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="receiption != null" >
#{receiption,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
update CGONMS.ARRIVEDSECONDARY
<set >
<if test="waybillnomaster != null" >
WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
</if>
<if test="tcdName != null" >
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
</if>
<if test="tcdTypecode != null" >
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
</if>
<if test="waybillnosecondary != null" >
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
</if>
<if test="carrier != null" >
CARRIER = #{carrier,jdbcType=VARCHAR},
</if>
<if test="oId != null" >
O_ID = #{oId,jdbcType=VARCHAR},
</if>
<if test="oName != null" >
O_NAME = #{oName,jdbcType=VARCHAR},
</if>
<if test="fdId != null" >
FD_ID = #{fdId,jdbcType=VARCHAR},
</if>
<if test="fdName != null" >
FD_NAME = #{fdName,jdbcType=VARCHAR},
</if>
<if test="flightno != null" >
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
</if>
<if test="flightdate != null" >
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedtotalpiece != null" >
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
</if>
<if test="totalpiecequantity != null" >
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
</if>
<if test="arrivedtotalweight != null" >
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
</if>
<if test="grossweightmeasureuc != null" >
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasure != null" >
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
</if>
<if test="totalgrossweightmeasureuc != null" >
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasure != null" >
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
</if>
<if test="chargeableweightmeasureuc != null" >
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
</if>
<if test="arriveddate != null" >
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
</if>
<if test="customscode != null" >
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
</if>
<if test="productname != null" >
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
</if>
<if test="createdate != null" >
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
</if>
<if test="arrivedmasterid != null" >
ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR},
</if>
<if test="transportsplitdescription != null" >
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
</if>
<if test="receiption != null" >
RECEIPTION = #{receiption,jdbcType=VARCHAR},
</if>
<if test="status != null" >
STATUS = #{status,jdbcType=VARCHAR},
</if>
</set>
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.ARRIVEDSECONDARY" >
update CGONMS.ARRIVEDSECONDARY
set WAYBILLNOMASTER = #{waybillnomaster,jdbcType=VARCHAR},
TCD_NAME = #{tcdName,jdbcType=VARCHAR},
TCD_TYPECODE = #{tcdTypecode,jdbcType=VARCHAR},
WAYBILLNOSECONDARY = #{waybillnosecondary,jdbcType=VARCHAR},
CARRIER = #{carrier,jdbcType=VARCHAR},
O_ID = #{oId,jdbcType=VARCHAR},
O_NAME = #{oName,jdbcType=VARCHAR},
FD_ID = #{fdId,jdbcType=VARCHAR},
FD_NAME = #{fdName,jdbcType=VARCHAR},
FLIGHTNO = #{flightno,jdbcType=VARCHAR},
FLIGHTDATE = #{flightdate,jdbcType=TIMESTAMP},
ARRIVEDTOTALPIECE = #{arrivedtotalpiece,jdbcType=VARCHAR},
TOTALPIECEQUANTITY = #{totalpiecequantity,jdbcType=VARCHAR},
ARRIVEDTOTALWEIGHT = #{arrivedtotalweight,jdbcType=VARCHAR},
GROSSWEIGHTMEASUREUC = #{grossweightmeasureuc,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASURE = #{totalgrossweightmeasure,jdbcType=VARCHAR},
TOTALGROSSWEIGHTMEASUREUC = #{totalgrossweightmeasureuc,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASURE = #{chargeableweightmeasure,jdbcType=VARCHAR},
CHARGEABLEWEIGHTMEASUREUC = #{chargeableweightmeasureuc,jdbcType=VARCHAR},
ARRIVEDDATE = #{arriveddate,jdbcType=TIMESTAMP},
CUSTOMSCODE = #{customscode,jdbcType=VARCHAR},
PRODUCTNAME = #{productname,jdbcType=VARCHAR},
CREATEDATE = #{createdate,jdbcType=TIMESTAMP},
ARRIVEDMASTERID = #{arrivedmasterid,jdbcType=VARCHAR},
TRANSPORTSPLITDESCRIPTION = #{transportsplitdescription,jdbcType=VARCHAR},
RECEIPTION = #{receiption,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=VARCHAR}
where AUTOID = #{autoid,jdbcType=VARCHAR}
</update>
</mapper>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.tianbo.analysis.dao.COMPANYUSERMapper">
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.COMPANYUSER">
<id column="ID" jdbcType="VARCHAR" property="id" />
<result column="CROP_CODE" jdbcType="VARCHAR" property="cropCode" />
<result column="PASSWORD" jdbcType="VARCHAR" property="password" />
<result column="CUSTOMS_CODE" jdbcType="VARCHAR" property="customsCode" />
<result column="ORG_CODE" jdbcType="VARCHAR" property="orgCode" />
<result column="FULL_NAME" jdbcType="VARCHAR" property="fullName" />
<result column="ADDR_CO" jdbcType="VARCHAR" property="addrCo" />
<result column="LAW_MAN" jdbcType="VARCHAR" property="lawMan" />
<result column="CONTAC_CO" jdbcType="VARCHAR" property="contacCo" />
<result column="TEL_CO" jdbcType="VARCHAR" property="telCo" />
<result column="CROP_TYPE" jdbcType="VARCHAR" property="cropType" />
<result column="ZIP_CODE" jdbcType="VARCHAR" property="zipCode" />
<result column="CREATE_DATE" jdbcType="TIMESTAMP" property="createDate" />
</resultMap>
<sql id="Base_Column_List">
ID, CROP_CODE, PASSWORD, CUSTOMS_CODE, ORG_CODE, FULL_NAME, ADDR_CO, LAW_MAN, CONTAC_CO,
TEL_CO, CROP_TYPE, ZIP_CODE, CREATE_DATE
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from COMPANYUSER
where ID = #{id,jdbcType=VARCHAR}
</select>
<select id="selectByUsername" parameterType="java.lang.String" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from COMPANYUSER
where CROP_CODE = #{cropCode,jdbcType=VARCHAR}
</select>
<select id="selectByIdAndName" parameterType="com.tianbo.analysis.model.COMPANYUSER" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from COMPANYUSER
where ID = #{id,jdbcType=VARCHAR}
and CROP_CODE = #{cropCode,jdbcType=VARCHAR}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
delete from COMPANYUSER
where ID = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.COMPANYUSER">
insert into COMPANYUSER (ID, CROP_CODE, PASSWORD,
CUSTOMS_CODE, ORG_CODE, FULL_NAME,
ADDR_CO, LAW_MAN, CONTAC_CO,
TEL_CO, CROP_TYPE, ZIP_CODE,
CREATE_DATE)
values (#{id,jdbcType=VARCHAR}, #{cropCode,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR},
#{customsCode,jdbcType=VARCHAR}, #{orgCode,jdbcType=VARCHAR}, #{fullName,jdbcType=VARCHAR},
#{addrCo,jdbcType=VARCHAR}, #{lawMan,jdbcType=VARCHAR}, #{contacCo,jdbcType=VARCHAR},
#{telCo,jdbcType=VARCHAR}, #{cropType,jdbcType=VARCHAR}, #{zipCode,jdbcType=VARCHAR},
#{createDate,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.COMPANYUSER">
insert into COMPANYUSER
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
ID,
</if>
<if test="cropCode != null">
CROP_CODE,
</if>
<if test="password != null">
PASSWORD,
</if>
<if test="customsCode != null">
CUSTOMS_CODE,
</if>
<if test="orgCode != null">
ORG_CODE,
</if>
<if test="fullName != null">
FULL_NAME,
</if>
<if test="addrCo != null">
ADDR_CO,
</if>
<if test="lawMan != null">
LAW_MAN,
</if>
<if test="contacCo != null">
CONTAC_CO,
</if>
<if test="telCo != null">
TEL_CO,
</if>
<if test="cropType != null">
CROP_TYPE,
</if>
<if test="zipCode != null">
ZIP_CODE,
</if>
<if test="createDate != null">
CREATE_DATE,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=VARCHAR},
</if>
<if test="cropCode != null">
#{cropCode,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
#{customsCode,jdbcType=VARCHAR},
</if>
<if test="orgCode != null">
#{orgCode,jdbcType=VARCHAR},
</if>
<if test="fullName != null">
#{fullName,jdbcType=VARCHAR},
</if>
<if test="addrCo != null">
#{addrCo,jdbcType=VARCHAR},
</if>
<if test="lawMan != null">
#{lawMan,jdbcType=VARCHAR},
</if>
<if test="contacCo != null">
#{contacCo,jdbcType=VARCHAR},
</if>
<if test="telCo != null">
#{telCo,jdbcType=VARCHAR},
</if>
<if test="cropType != null">
#{cropType,jdbcType=VARCHAR},
</if>
<if test="zipCode != null">
#{zipCode,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
#{createDate,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.COMPANYUSER">
update COMPANYUSER
<set>
<if test="cropCode != null">
CROP_CODE = #{cropCode,jdbcType=VARCHAR},
</if>
<if test="password != null">
PASSWORD = #{password,jdbcType=VARCHAR},
</if>
<if test="customsCode != null">
CUSTOMS_CODE = #{customsCode,jdbcType=VARCHAR},
</if>
<if test="orgCode != null">
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
</if>
<if test="fullName != null">
FULL_NAME = #{fullName,jdbcType=VARCHAR},
</if>
<if test="addrCo != null">
ADDR_CO = #{addrCo,jdbcType=VARCHAR},
</if>
<if test="lawMan != null">
LAW_MAN = #{lawMan,jdbcType=VARCHAR},
</if>
<if test="contacCo != null">
CONTAC_CO = #{contacCo,jdbcType=VARCHAR},
</if>
<if test="telCo != null">
TEL_CO = #{telCo,jdbcType=VARCHAR},
</if>
<if test="cropType != null">
CROP_TYPE = #{cropType,jdbcType=VARCHAR},
</if>
<if test="zipCode != null">
ZIP_CODE = #{zipCode,jdbcType=VARCHAR},
</if>
<if test="createDate != null">
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
</if>
</set>
where ID = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.COMPANYUSER">
update COMPANYUSER
set CROP_CODE = #{cropCode,jdbcType=VARCHAR},
PASSWORD = #{password,jdbcType=VARCHAR},
CUSTOMS_CODE = #{customsCode,jdbcType=VARCHAR},
ORG_CODE = #{orgCode,jdbcType=VARCHAR},
FULL_NAME = #{fullName,jdbcType=VARCHAR},
ADDR_CO = #{addrCo,jdbcType=VARCHAR},
LAW_MAN = #{lawMan,jdbcType=VARCHAR},
CONTAC_CO = #{contacCo,jdbcType=VARCHAR},
TEL_CO = #{telCo,jdbcType=VARCHAR},
CROP_TYPE = #{cropType,jdbcType=VARCHAR},
ZIP_CODE = #{zipCode,jdbcType=VARCHAR},
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP}
where ID = #{id,jdbcType=VARCHAR}
</update>
</mapper>
... ...
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.tianbo.analysis.dao.DOMTRANSITMapper" >
<resultMap id="BaseResultMap" type="com.tianbo.analysis.model.DOMTRANSIT" >
<id column="ID" property="id" jdbcType="VARCHAR" />
<result column="TRANSIT_TYPE" property="transitType" jdbcType="VARCHAR" />
<result column="PIECE" property="piece" jdbcType="DECIMAL" />
<result column="WEIGHT" property="weight" jdbcType="DECIMAL" />
<result column="ORIGIN_STATION" property="originStation" jdbcType="VARCHAR" />
<result column="DESTINATION_STATION" property="destinationStation" jdbcType="VARCHAR" />
<result column="GOODSDESEN" property="goodsdesen" jdbcType="VARCHAR" />
<result column="GOODSDESCN" property="goodsdescn" jdbcType="VARCHAR" />
<result column="PACK" property="pack" jdbcType="VARCHAR" />
<result column="ORIGIN_MASTERWAYBILL" property="originMasterwaybill" jdbcType="VARCHAR" />
<result column="ORIGIN_HOUSEWAYBILL" property="originHousewaybill" jdbcType="VARCHAR" />
<result column="ORIGIN_FLIGHTNO" property="originFlightno" jdbcType="VARCHAR" />
<result column="ORIGIN_FLIGHTDATE" property="originFlightdate" jdbcType="TIMESTAMP" />
<result column="TRANS_MASTERWAYBILL" property="transMasterwaybill" jdbcType="VARCHAR" />
<result column="TRANS_HOUSEWAYBILL" property="transHousewaybill" jdbcType="VARCHAR" />
<result column="TRANS_FLIGHTNO" property="transFlightno" jdbcType="VARCHAR" />
<result column="TRANS_FLIGHTDATE" property="transFlightdate" jdbcType="TIMESTAMP" />
<result column="CREATE_DATE" property="createDate" jdbcType="TIMESTAMP" />
<result column="MODIFY_TIME" property="modifyTime" jdbcType="TIMESTAMP" />
<result column="MODIFY_NAME" property="modifyName" jdbcType="VARCHAR" />
<result column="AGENT_NAME" property="agentName" jdbcType="VARCHAR" />
<result column="AGENT_CODE" property="agentCode" jdbcType="VARCHAR" />
<result column="USER_NAME" property="userName" jdbcType="VARCHAR" />
<result column="USER_REAL_NAME" property="userRealName" jdbcType="VARCHAR" />
<result column="USER_TEL" property="userTel" jdbcType="VARCHAR" />
<result column="STATUS" property="status" jdbcType="DECIMAL" />
<result column="APPROVER_ACCOUNT" property="approverAccount" jdbcType="VARCHAR" />
<result column="APPROVER_DATE" property="approverDate" jdbcType="VARCHAR" />
<result column="APPROVER_RESOULT" property="approverResoult" jdbcType="VARCHAR" />
</resultMap>
<sql id="Base_Column_List" >
ID, TRANSIT_TYPE, PIECE, WEIGHT, ORIGIN_STATION, DESTINATION_STATION, GOODSDESEN,
GOODSDESCN, PACK, ORIGIN_MASTERWAYBILL, ORIGIN_HOUSEWAYBILL, ORIGIN_FLIGHTNO, ORIGIN_FLIGHTDATE,
TRANS_MASTERWAYBILL, TRANS_HOUSEWAYBILL, TRANS_FLIGHTNO, TRANS_FLIGHTDATE, CREATE_DATE,
MODIFY_TIME, MODIFY_NAME, AGENT_NAME, AGENT_CODE, USER_NAME, USER_REAL_NAME, USER_TEL,
STATUS, APPROVER_ACCOUNT, APPROVER_DATE, APPROVER_RESOULT
</sql>
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.String" >
select
<include refid="Base_Column_List" />
from DOMTRANSIT
where ID = #{id,jdbcType=VARCHAR}
</select>
<select id="selectList" resultMap="BaseResultMap" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
select
<include refid="Base_Column_List" />
from DOMTRANSIT
<where>
<if test="transitType != null">
TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR}
</if>
<if test="originMasterwaybill !=null and originMasterwaybill != ''">
AND ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR}
</if>
<if test="originHousewaybill !=null and originHousewaybill !=''">
AND ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR}
</if>
<if test="originFlightno !=null and originFlightno !=''">
AND ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR}
</if>
<if test="originFlightdate != null and originFlightdate !=''">
AND ORIGIN_FLIGHTDATE = to_date(#{originFlightdate}, 'YYYY-MM-DD')
</if>
<if test="transMasterwaybill != null and transMasterwaybill !='' ">
AND TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR}
</if>
<if test="transHousewaybill != null and transHousewaybill !='' ">
AND TRANS_FLIGHTNO = #{transHousewaybill,jdbcType=VARCHAR}
</if>
<if test="transFlightno !=null and originFltransFlightnoightno !=''">
AND ORIGIN_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR}
</if>
<if test="transFlightdate !=null and transFlightdate !=''">
AND TRANS_FLIGHTDATE = to_date(#{transFlightdate}, 'YYYY-MM-DD')
</if>
<if test="userName !=null and userName !=''">
AND USER_NAME = #{userName,jdbcType=VARCHAR}
</if>
<if test="agentCode !=null and agentCode !=''">
AND AGENT_CODE = #{agentCode,jdbcType=VARCHAR}
</if>
<if test="agentName !=null and agentName !=''">
AND AGENT_NAME like CONCAT('%',#{agentName,jdbcType=VARCHAR},'%')
</if>
</where>
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.String" >
delete from DOMTRANSIT
where ID = #{id,jdbcType=VARCHAR}
</delete>
<insert id="insert" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
insert into DOMTRANSIT (ID, TRANSIT_TYPE, PIECE,
WEIGHT, ORIGIN_STATION, DESTINATION_STATION,
GOODSDESEN, GOODSDESCN, PACK,
ORIGIN_MASTERWAYBILL, ORIGIN_HOUSEWAYBILL,
ORIGIN_FLIGHTNO, ORIGIN_FLIGHTDATE, TRANS_MASTERWAYBILL,
TRANS_HOUSEWAYBILL, TRANS_FLIGHTNO, TRANS_FLIGHTDATE,
CREATE_DATE, MODIFY_TIME, MODIFY_NAME,
AGENT_NAME, AGENT_CODE, USER_NAME,
USER_REAL_NAME, USER_TEL, STATUS,
APPROVER_ACCOUNT, APPROVER_DATE, APPROVER_RESOULT
)
values (#{id,jdbcType=VARCHAR}, #{transitType,jdbcType=VARCHAR}, #{piece,jdbcType=DECIMAL},
#{weight,jdbcType=DECIMAL}, #{originStation,jdbcType=VARCHAR}, #{destinationStation,jdbcType=VARCHAR},
#{goodsdesen,jdbcType=VARCHAR}, #{goodsdescn,jdbcType=VARCHAR}, #{pack,jdbcType=VARCHAR},
#{originMasterwaybill,jdbcType=VARCHAR}, #{originHousewaybill,jdbcType=VARCHAR},
#{originFlightno,jdbcType=VARCHAR}, #{originFlightdate,jdbcType=TIMESTAMP}, #{transMasterwaybill,jdbcType=VARCHAR},
#{transHousewaybill,jdbcType=VARCHAR}, #{transFlightno,jdbcType=VARCHAR}, #{transFlightdate,jdbcType=TIMESTAMP},
#{createDate,jdbcType=TIMESTAMP}, #{modifyTime,jdbcType=TIMESTAMP}, #{modifyName,jdbcType=VARCHAR},
#{agentName,jdbcType=VARCHAR}, #{agentCode,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR},
#{userRealName,jdbcType=VARCHAR}, #{userTel,jdbcType=VARCHAR}, #{status,jdbcType=DECIMAL},
#{approverAccount,jdbcType=VARCHAR}, #{approverDate,jdbcType=VARCHAR}, #{approverResoult,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
insert into DOMTRANSIT
<trim prefix="(" suffix=")" suffixOverrides="," >
<if test="id != null" >
ID,
</if>
<if test="transitType != null" >
TRANSIT_TYPE,
</if>
<if test="piece != null" >
PIECE,
</if>
<if test="weight != null" >
WEIGHT,
</if>
<if test="originStation != null" >
ORIGIN_STATION,
</if>
<if test="destinationStation != null" >
DESTINATION_STATION,
</if>
<if test="goodsdesen != null" >
GOODSDESEN,
</if>
<if test="goodsdescn != null" >
GOODSDESCN,
</if>
<if test="pack != null" >
PACK,
</if>
<if test="originMasterwaybill != null" >
ORIGIN_MASTERWAYBILL,
</if>
<if test="originHousewaybill != null" >
ORIGIN_HOUSEWAYBILL,
</if>
<if test="originFlightno != null" >
ORIGIN_FLIGHTNO,
</if>
<if test="originFlightdate != null" >
ORIGIN_FLIGHTDATE,
</if>
<if test="transMasterwaybill != null" >
TRANS_MASTERWAYBILL,
</if>
<if test="transHousewaybill != null" >
TRANS_HOUSEWAYBILL,
</if>
<if test="transFlightno != null" >
TRANS_FLIGHTNO,
</if>
<if test="transFlightdate != null" >
TRANS_FLIGHTDATE,
</if>
<if test="createDate != null" >
CREATE_DATE,
</if>
<if test="modifyTime != null" >
MODIFY_TIME,
</if>
<if test="modifyName != null" >
MODIFY_NAME,
</if>
<if test="agentName != null" >
AGENT_NAME,
</if>
<if test="agentCode != null" >
AGENT_CODE,
</if>
<if test="userName != null" >
USER_NAME,
</if>
<if test="userRealName != null" >
USER_REAL_NAME,
</if>
<if test="userTel != null" >
USER_TEL,
</if>
<if test="status != null" >
STATUS,
</if>
<if test="approverAccount != null" >
APPROVER_ACCOUNT,
</if>
<if test="approverDate != null" >
APPROVER_DATE,
</if>
<if test="approverResoult != null" >
APPROVER_RESOULT,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides="," >
<if test="id != null" >
#{id,jdbcType=VARCHAR},
</if>
<if test="transitType != null" >
#{transitType,jdbcType=VARCHAR},
</if>
<if test="piece != null" >
#{piece,jdbcType=DECIMAL},
</if>
<if test="weight != null" >
#{weight,jdbcType=DECIMAL},
</if>
<if test="originStation != null" >
#{originStation,jdbcType=VARCHAR},
</if>
<if test="destinationStation != null" >
#{destinationStation,jdbcType=VARCHAR},
</if>
<if test="goodsdesen != null" >
#{goodsdesen,jdbcType=VARCHAR},
</if>
<if test="goodsdescn != null" >
#{goodsdescn,jdbcType=VARCHAR},
</if>
<if test="pack != null" >
#{pack,jdbcType=VARCHAR},
</if>
<if test="originMasterwaybill != null" >
#{originMasterwaybill,jdbcType=VARCHAR},
</if>
<if test="originHousewaybill != null" >
#{originHousewaybill,jdbcType=VARCHAR},
</if>
<if test="originFlightno != null" >
#{originFlightno,jdbcType=VARCHAR},
</if>
<if test="originFlightdate != null" >
#{originFlightdate,jdbcType=TIMESTAMP},
</if>
<if test="transMasterwaybill != null" >
#{transMasterwaybill,jdbcType=VARCHAR},
</if>
<if test="transHousewaybill != null" >
#{transHousewaybill,jdbcType=VARCHAR},
</if>
<if test="transFlightno != null" >
#{transFlightno,jdbcType=VARCHAR},
</if>
<if test="transFlightdate != null" >
#{transFlightdate,jdbcType=TIMESTAMP},
</if>
<if test="createDate != null" >
#{createDate,jdbcType=TIMESTAMP},
</if>
<if test="modifyTime != null" >
#{modifyTime,jdbcType=TIMESTAMP},
</if>
<if test="modifyName != null" >
#{modifyName,jdbcType=VARCHAR},
</if>
<if test="agentName != null" >
#{agentName,jdbcType=VARCHAR},
</if>
<if test="agentCode != null" >
#{agentCode,jdbcType=VARCHAR},
</if>
<if test="userName != null" >
#{userName,jdbcType=VARCHAR},
</if>
<if test="userRealName != null" >
#{userRealName,jdbcType=VARCHAR},
</if>
<if test="userTel != null" >
#{userTel,jdbcType=VARCHAR},
</if>
<if test="status != null" >
#{status,jdbcType=DECIMAL},
</if>
<if test="approverAccount != null" >
#{approverAccount,jdbcType=VARCHAR},
</if>
<if test="approverDate != null" >
#{approverDate,jdbcType=VARCHAR},
</if>
<if test="approverResoult != null" >
#{approverResoult,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
update DOMTRANSIT
<set >
<if test="transitType != null" >
TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR},
</if>
<if test="piece != null" >
PIECE = #{piece,jdbcType=DECIMAL},
</if>
<if test="weight != null" >
WEIGHT = #{weight,jdbcType=DECIMAL},
</if>
<if test="originStation != null" >
ORIGIN_STATION = #{originStation,jdbcType=VARCHAR},
</if>
<if test="destinationStation != null" >
DESTINATION_STATION = #{destinationStation,jdbcType=VARCHAR},
</if>
<if test="goodsdesen != null" >
GOODSDESEN = #{goodsdesen,jdbcType=VARCHAR},
</if>
<if test="goodsdescn != null" >
GOODSDESCN = #{goodsdescn,jdbcType=VARCHAR},
</if>
<if test="pack != null" >
PACK = #{pack,jdbcType=VARCHAR},
</if>
<if test="originMasterwaybill != null" >
ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR},
</if>
<if test="originHousewaybill != null" >
ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR},
</if>
<if test="originFlightno != null" >
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
</if>
<if test="originFlightdate != null" >
ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP},
</if>
<if test="transMasterwaybill != null" >
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
</if>
<if test="transHousewaybill != null" >
TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR},
</if>
<if test="transFlightno != null" >
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
</if>
<if test="transFlightdate != null" >
TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP},
</if>
<if test="createDate != null" >
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
</if>
<if test="modifyTime != null" >
MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
</if>
<if test="modifyName != null" >
MODIFY_NAME = #{modifyName,jdbcType=VARCHAR},
</if>
<if test="agentName != null" >
AGENT_NAME = #{agentName,jdbcType=VARCHAR},
</if>
<if test="agentCode != null" >
AGENT_CODE = #{agentCode,jdbcType=VARCHAR},
</if>
<if test="userName != null" >
USER_NAME = #{userName,jdbcType=VARCHAR},
</if>
<if test="userRealName != null" >
USER_REAL_NAME = #{userRealName,jdbcType=VARCHAR},
</if>
<if test="userTel != null" >
USER_TEL = #{userTel,jdbcType=VARCHAR},
</if>
<if test="status != null" >
STATUS = #{status,jdbcType=DECIMAL},
</if>
<if test="approverAccount != null" >
APPROVER_ACCOUNT = #{approverAccount,jdbcType=VARCHAR},
</if>
<if test="approverDate != null" >
APPROVER_DATE = #{approverDate,jdbcType=VARCHAR},
</if>
<if test="approverResoult != null" >
APPROVER_RESOULT = #{approverResoult,jdbcType=VARCHAR},
</if>
</set>
where ID = #{id,jdbcType=VARCHAR}
</update>
<update id="updateByPrimaryKey" parameterType="com.tianbo.analysis.model.DOMTRANSIT" >
update DOMTRANSIT
set TRANSIT_TYPE = #{transitType,jdbcType=VARCHAR},
PIECE = #{piece,jdbcType=DECIMAL},
WEIGHT = #{weight,jdbcType=DECIMAL},
ORIGIN_STATION = #{originStation,jdbcType=VARCHAR},
DESTINATION_STATION = #{destinationStation,jdbcType=VARCHAR},
GOODSDESEN = #{goodsdesen,jdbcType=VARCHAR},
GOODSDESCN = #{goodsdescn,jdbcType=VARCHAR},
PACK = #{pack,jdbcType=VARCHAR},
ORIGIN_MASTERWAYBILL = #{originMasterwaybill,jdbcType=VARCHAR},
ORIGIN_HOUSEWAYBILL = #{originHousewaybill,jdbcType=VARCHAR},
ORIGIN_FLIGHTNO = #{originFlightno,jdbcType=VARCHAR},
ORIGIN_FLIGHTDATE = #{originFlightdate,jdbcType=TIMESTAMP},
TRANS_MASTERWAYBILL = #{transMasterwaybill,jdbcType=VARCHAR},
TRANS_HOUSEWAYBILL = #{transHousewaybill,jdbcType=VARCHAR},
TRANS_FLIGHTNO = #{transFlightno,jdbcType=VARCHAR},
TRANS_FLIGHTDATE = #{transFlightdate,jdbcType=TIMESTAMP},
CREATE_DATE = #{createDate,jdbcType=TIMESTAMP},
MODIFY_TIME = #{modifyTime,jdbcType=TIMESTAMP},
MODIFY_NAME = #{modifyName,jdbcType=VARCHAR},
AGENT_NAME = #{agentName,jdbcType=VARCHAR},
AGENT_CODE = #{agentCode,jdbcType=VARCHAR},
USER_NAME = #{userName,jdbcType=VARCHAR},
USER_REAL_NAME = #{userRealName,jdbcType=VARCHAR},
USER_TEL = #{userTel,jdbcType=VARCHAR},
STATUS = #{status,jdbcType=DECIMAL},
APPROVER_ACCOUNT = #{approverAccount,jdbcType=VARCHAR},
APPROVER_DATE = #{approverDate,jdbcType=VARCHAR},
APPROVER_RESOULT = #{approverResoult,jdbcType=VARCHAR}
where ID = #{id,jdbcType=VARCHAR}
</update>
</mapper>
... ...