Commit 88ee9d3c by Simon Cheng

程序源代码

parents
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ajb-car</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path=".apt_generated">
<attributes>
<attribute name="optional" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ajb-car-api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ajb-car-api</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry excluding="**/bower_components/*|**/node_modules/*|**/*.min.js" kind="src" path="src/main/webapp"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/resources/application-dev.properties=UTF-8
encoding//src/main/resources/application-local.properties=UTF-8
encoding//src/main/resources/application-prod.properties=UTF-8
encoding//src/main/resources/application-stage.properties=UTF-8
encoding//src/main/resources/application.properties=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
encoding/pom.xml=UTF-8
eclipse.preferences.version=1
line.separator=\r\n
eclipse.preferences.version=1
org.eclipse.jdt.apt.aptEnabled=true
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.processAnnotations=enabled
org.eclipse.jdt.core.compiler.source=1.8
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="synch">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/.apt_generated"/>
<dependent-module archiveName="ajb-car-vo-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-vo/ajb-car-vo">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="ajb-car-entity-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-entity/ajb-car-entity">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="ajb-car-jpa-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-jpa/ajb-car-jpa">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="java-output-path" value="/ajb-car-api/target/classes"/>
<property name="context-root" value="synch"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="ajb-api">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/.apt_generated"/>
<dependent-module archiveName="ajb-car-vo-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-vo/ajb-car-vo">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="ajb-car-entity-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-entity/ajb-car-entity">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="ajb-car-jpa-0.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/ajb-car-jpa/ajb-car-jpa">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="java-output-path" value="/ajb-api/target/classes"/>
<property name="context-root" value="ajb-api"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="cloudfoundry.standalone.app" version="1.0"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.1"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
disabled=06target
eclipse.preferences.version=1
eclipse.preferences.version=1
org.springframework.ide.eclipse.core.builders.enable.aopreferencemodelbuilder=true
org.springframework.ide.eclipse.core.builders.enable.beanmetadatabuilder=true
org.springframework.ide.eclipse.core.enable.project.preferences=false
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.boot.bootvalidator=true
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.core.springvalidator=false
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.data.core.datavalidator=true
org.springframework.ide.eclipse.core.validator.enable.org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.autowire.autowire-org.springframework.ide.eclipse.beans.core.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanAlias-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanClass-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanConstructorArgument-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanDefinition-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanDefinitionHolder-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanFactory-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanInitDestroyMethod-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanProperty-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.beanReference-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.methodOverride-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.parsingProblems-org.springframework.ide.eclipse.beans.core.beansvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.requiredProperty-org.springframework.ide.eclipse.beans.core.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.beans.core.toolAnnotation-org.springframework.ide.eclipse.beans.core.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.AvoidDriverManagerDataSource-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.ImportElementsAtTopRulee-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.ParentBeanSpecifiesAbstractClassRule-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.RefElementRule-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.TooManyBeansInFileRule-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.UnnecessaryValueElementRule-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.com.springsource.sts.bestpractices.UseBeanInheritance-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.bestpractices.legacyxmlusage.jndiobjectfactory-org.springframework.ide.eclipse.bestpractices.beansvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.boot.missingConfigurationProcessor-org.springframework.ide.eclipse.boot.bootvalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.core.springClasspath-org.springframework.ide.eclipse.core.springvalidator=false
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.data.core.invalidDerivedQuery-org.springframework.ide.eclipse.data.core.datavalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.data.core.invalidParameterType-org.springframework.ide.eclipse.data.core.datavalidator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.action-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.actionstate-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.attribute-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.attributemapper-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.beanaction-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.evaluationaction-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.evaluationresult-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.exceptionhandler-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.import-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.inputattribute-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.mapping-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.outputattribute-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.set-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.state-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.subflowstate-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.transition-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.variable-org.springframework.ide.eclipse.webflow.core.validator=true
org.springframework.ide.eclipse.core.validator.rule.enable.org.springframework.ide.eclipse.webflow.core.validation.webflowstate-org.springframework.ide.eclipse.webflow.core.validator=true
<?xml version="1.0" encoding="UTF-8"?>
<beansProjectDescription>
<version>1</version>
<pluginVersion><![CDATA[3.8.4.201703310634-RELEASE]]></pluginVersion>
<configSuffixes>
<configSuffix><![CDATA[xml]]></configSuffix>
</configSuffixes>
<enableImports><![CDATA[false]]></enableImports>
<configs>
</configs>
<autoconfigs>
</autoconfigs>
<configSets>
</configSets>
</beansProjectDescription>
2018-07-25 18:20:52.586 [restartedMain] INFO com.ajb.Application- Starting Application on DESKTOP-RNBT9AR with PID 16492 (D:\zuihuibi\ajb-car\ajb-car-api\target\classes started by Simon Cheng in D:\zuihuibi\ajb-car\ajb-car-api)
2018-07-25 18:20:52.588 [restartedMain] INFO com.ajb.Application- The following profiles are active: local
2018-07-25 18:20:52.732 [restartedMain] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext- Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ec2aefb: startup date [Wed Jul 25 18:20:52 CST 2018]; root of context hierarchy
2018-07-25 18:20:53.200 [background-preinit] INFO org.hibernate.validator.internal.util.Version- HV000001: Hibernate Validator 5.3.5.Final
2018-07-25 18:20:57.765 [restartedMain] INFO o.s.b.c.e.tomcat.TomcatEmbeddedServletContainer- Tomcat initialized with port(s): 8080 (http)
2018-07-25 18:20:57.789 [restartedMain] INFO org.apache.catalina.core.StandardService- Starting service Tomcat
2018-07-25 18:20:57.791 [restartedMain] INFO org.apache.catalina.core.StandardEngine- Starting Servlet Engine: Apache Tomcat/8.5.14
2018-07-25 18:20:58.433 [localhost-startStop-1] INFO org.apache.jasper.servlet.TldScanner- At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2018-07-25 18:20:58.444 [localhost-startStop-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/synch]- Initializing Spring embedded WebApplicationContext
2018-07-25 18:20:58.444 [localhost-startStop-1] INFO org.springframework.web.context.ContextLoader- Root WebApplicationContext: initialization completed in 5712 ms
2018-07-25 18:20:58.800 [localhost-startStop-1] INFO o.s.boot.web.servlet.ServletRegistrationBean- Mapping servlet: 'dispatcherServlet' to [/]
2018-07-25 18:20:58.811 [localhost-startStop-1] INFO o.s.boot.web.servlet.FilterRegistrationBean- Mapping filter: 'characterEncodingFilter' to: [/*]
2018-07-25 18:20:58.812 [localhost-startStop-1] INFO o.s.boot.web.servlet.FilterRegistrationBean- Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2018-07-25 18:20:58.812 [localhost-startStop-1] INFO o.s.boot.web.servlet.FilterRegistrationBean- Mapping filter: 'httpPutFormContentFilter' to: [/*]
2018-07-25 18:20:58.812 [localhost-startStop-1] INFO o.s.boot.web.servlet.FilterRegistrationBean- Mapping filter: 'requestContextFilter' to: [/*]
2018-07-25 18:20:59.481 [restartedMain] INFO o.s.orm.jpa.LocalContainerEntityManagerFactoryBean- Building JPA container EntityManagerFactory for persistence unit 'default'
2018-07-25 18:20:59.519 [restartedMain] INFO org.hibernate.jpa.internal.util.LogHelper- HHH000204: Processing PersistenceUnitInfo [
name: default
...]
2018-07-25 18:20:59.707 [restartedMain] INFO org.hibernate.Version- HHH000412: Hibernate Core {5.0.12.Final}
2018-07-25 18:20:59.710 [restartedMain] INFO org.hibernate.cfg.Environment- HHH000206: hibernate.properties not found
2018-07-25 18:20:59.713 [restartedMain] INFO org.hibernate.cfg.Environment- HHH000021: Bytecode provider name : javassist
2018-07-25 18:20:59.794 [restartedMain] INFO org.hibernate.annotations.common.Version- HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2018-07-25 18:21:00.260 [restartedMain] INFO com.alibaba.druid.pool.DruidDataSource- {dataSource-1} inited
2018-07-25 18:21:00.735 [restartedMain] INFO org.hibernate.dialect.Dialect- HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
2018-07-25 18:21:02.132 [restartedMain] INFO o.s.orm.jpa.LocalContainerEntityManagerFactoryBean- Initialized JPA EntityManagerFactory for persistence unit 'default'
2018-07-25 18:21:02.224 [restartedMain] WARN net.sf.ehcache.config.ConfigurationFactory- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/apache-maven-3.2.3/apache-maven-3.2.3/repository/net/sf/ehcache/ehcache/2.10.4/ehcache-2.10.4.jar!/ehcache-failsafe.xml
2018-07-25 18:21:04.331 [restartedMain] INFO o.s.w.s.m.m.a.RequestMappingHandlerAdapter- Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ec2aefb: startup date [Wed Jul 25 18:20:52 CST 2018]; root of context hierarchy
2018-07-25 18:21:04.531 [restartedMain] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping- Mapped "{[/quotations]}" onto public java.lang.Object com.ajb.car.CarController.synch(com.ajb.car.vo.zhima.quotation.QuotationRequestVO) throws java.lang.Exception
2018-07-25 18:21:04.539 [restartedMain] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping- Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2018-07-25 18:21:04.540 [restartedMain] INFO o.s.w.s.m.m.a.RequestMappingHandlerMapping- Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2018-07-25 18:21:04.623 [restartedMain] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping- Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-25 18:21:04.624 [restartedMain] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping- Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-25 18:21:04.759 [restartedMain] INFO o.s.web.servlet.handler.SimpleUrlHandlerMapping- Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2018-07-25 18:21:05.488 [restartedMain] INFO o.s.b.d.autoconfigure.OptionalLiveReloadServer- LiveReload server is running on port 35729
2018-07-25 18:21:05.713 [restartedMain] INFO o.s.jmx.export.annotation.AnnotationMBeanExporter- Registering beans for JMX exposure on startup
2018-07-25 18:21:05.716 [restartedMain] INFO o.s.jmx.export.annotation.AnnotationMBeanExporter- Bean with name 'dataSource' has been autodetected for JMX exposure
2018-07-25 18:21:05.724 [restartedMain] INFO o.s.jmx.export.annotation.AnnotationMBeanExporter- Located MBean 'dataSource': registering with JMX server as MBean [com.alibaba.druid.pool:name=dataSource,type=DruidDataSource]
2018-07-25 18:21:05.753 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol- Initializing ProtocolHandler ["http-nio-8080"]
2018-07-25 18:21:05.781 [restartedMain] INFO org.apache.coyote.http11.Http11NioProtocol- Starting ProtocolHandler ["http-nio-8080"]
2018-07-25 18:21:05.822 [restartedMain] INFO org.apache.tomcat.util.net.NioSelectorPool- Using a shared selector for servlet write/read
2018-07-25 18:21:06.010 [restartedMain] INFO o.s.b.c.e.tomcat.TomcatEmbeddedServletContainer- Tomcat started on port(s): 8080 (http)
2018-07-25 18:21:06.026 [restartedMain] INFO com.ajb.Application- Started Application in 14.286 seconds (JVM running for 15.942)
2018-07-25 18:21:11.502 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.b.a.SpringApplicationAdminMXBeanRegistrar$SpringApplicationAdmin- Application shutdown requested.
2018-07-25 18:21:11.503 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext- Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@3ec2aefb: startup date [Wed Jul 25 18:20:52 CST 2018]; root of context hierarchy
2018-07-25 18:21:11.506 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.jmx.export.annotation.AnnotationMBeanExporter- Unregistering JMX-exposed beans on shutdown
2018-07-25 18:21:11.507 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.jmx.export.annotation.AnnotationMBeanExporter- Unregistering JMX-exposed beans
2018-07-25 18:21:11.512 [RMI TCP Connection(2)-127.0.0.1] INFO o.s.orm.jpa.LocalContainerEntityManagerFactoryBean- Closing JPA EntityManagerFactory for persistence unit 'default'
2018-07-25 18:21:11.525 [RMI TCP Connection(2)-127.0.0.1] INFO com.alibaba.druid.pool.DruidDataSource- {dataSource-1} closed
<?xml version="1.0"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ajb-car</groupId>
<artifactId>ajb-car</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>ajb-car-api</artifactId>
<name>ajb-car-api</name>
<packaging>war</packaging>
<url>http://maven.apache.org</url>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<start-class>com.ajb.Application</start-class>
</properties>
<dependencies>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-car-vo</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-common-utils</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-car-entity</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-car-jpa</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>provided</scope><!-- provided, compile, runtime, test, system -->
</dependency>
<!-- servlet 依赖. -->
<!--
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
-->
<!-- tomcat 的支持.-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
<!--
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>org.scala-lang</groupId>
<artifactId>scala-library</artifactId>
<version>2.11.0</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.0.0</version>
</dependency>
<dependency>
<!-- jsoup HTML parser library @ https://jsoup.org/ -->
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.10.3</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<!-- <version>4.1.6.RELEASE</version> -->
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.2.1</version><!-- 1.8.4 2.2.3 -->
</dependency>
<dependency>
<groupId>org.springframework.mobile</groupId>
<artifactId>spring-mobile-device</artifactId>
</dependency>
<!--
<dependency>
<groupId>org.jeecg</groupId>
<artifactId>easypoi-base</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.jeecg</groupId>
<artifactId>easypoi-web</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>org.jeecg</groupId>
<artifactId>easypoi-annotation</artifactId>
<version>2.3.1</version>
</dependency>
-->
</dependencies>
<!-- 打包spring boot应用 -->
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<!--fork : 如果没有该项配置,devtools不会起作用,即应用不会restart -->
<fork>true</fork>
</configuration>
</plugin>
</plugins>
<finalName>carapi</finalName>
</build>
</project>
package com.ajb;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@SpringBootApplication
@EnableAutoConfiguration
@ComponentScan
@EnableJpaRepositories
@EntityScan
public class Application extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
package com.ajb.car;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ajb.car.schedule.ScheduledTaskService;
import com.ajb.car.vo.common.CommonResult;
import com.ajb.car.vo.zhima.quotation.QuotationRequestVO;
import com.ajb.car.vo.zhima.quotation.QuotationResponse;
@RestController
public class CarController {
@Autowired
private ScheduledTaskService taskService;
@RequestMapping("/quotations")
public Object synch(@RequestBody QuotationRequestVO loginRequestVO) throws Exception{
QuotationResponse quotationResponse = new QuotationResponse();
try
{
DateFormat fmt =new SimpleDateFormat("yyyy-MM-dd");
Date begin = fmt.parse(loginRequestVO.getBegindate());
Date end = fmt.parse(loginRequestVO.getEnddate());
quotationResponse = taskService.synchQuotaion(begin,end);
}catch (Exception ex){
quotationResponse.setCommonResult(new CommonResult(false, "Error! begindate and enddate format yyyy-MM-dd!ex:{\"begindate\":\"2018-06-10\",\"enddate\":\"2018-06-10\"}"));
}finally{
}
quotationResponse.setCommonResult(new CommonResult(true, "Success!"));
return quotationResponse;
}
}
\ No newline at end of file
package com.ajb.car.apimessage;
public class originmessage {
}
package com.ajb.car.quotation;
import java.util.Date;
import com.ajb.car.entity.quotation.AgPoQuotation;
import com.ajb.car.vo.zhima.quotation.ConfirmInfo;
import com.ajb.car.vo.zhima.quotation.Priceinfo;
public interface AgPoQuotationWebService {
public AgPoQuotation saveAgPoQuotation(Date quotationDate,Priceinfo priceinfo);
public void saveAgPoQuotationConfirm(ConfirmInfo confirmInfo,AgPoQuotation quotation);
public void saveAgPoQuotationAndConfirm(Date quotationDate,Priceinfo priceinfo,ConfirmInfo confirmInfo);
}
\ No newline at end of file
package com.ajb.car.quotation.impl;
import java.math.BigDecimal;
import java.util.Date;
import com.ajb.car.entity.quotation.AgPoQuotation;
import com.ajb.car.entity.quotation.AgPoQuotationCover;
import com.ajb.car.vo.zhima.quotation.BzCoverages;
import com.ajb.car.vo.zhima.quotation.Priceinfo;
public class AgPoQuotationConverter {
public static AgPoQuotation initAgPoQuotationData(Priceinfo priceinfo,Long quoteVehicleId)
{
AgPoQuotation agPoQuotation = new AgPoQuotation();
agPoQuotation.setPlateNo(priceinfo.getCarNumber());
agPoQuotation.setQuoteNo(priceinfo.getPolicycode());
agPoQuotation.setQuoteVehicleId(quoteVehicleId);
if (priceinfo.getVehInfo().getIsNewCar()=="1")
{
agPoQuotation.setIsRenewal(1);
}else
{
agPoQuotation.setIsRenewal(2);
}
if (priceinfo.getHasbz()=="yes" && priceinfo.getHastc()=="yes")
{
agPoQuotation.setQuoteType(2);
}else if (priceinfo.getHasbz()=="yes" && priceinfo.getHastc()!="yes")
{
agPoQuotation.setQuoteType(0);
}else if (priceinfo.getHasbz()!="yes" && priceinfo.getHastc()=="yes")
{
agPoQuotation.setQuoteType(1);
}
agPoQuotation.setQuoteStatus(Integer.parseInt(priceinfo.getStatus()));
agPoQuotation.setQuoteProviderType("V");
agPoQuotation.setQuoteProviderId(2L);
agPoQuotation.setCustomerId(-1L);
agPoQuotation.setCustomerMobile(priceinfo.getApplicant().getTel());
agPoQuotation.setCustomerName(priceinfo.getApplicant().getName());
agPoQuotation.setCurrency("RMB");
agPoQuotation.setTotalPremium(BigDecimal.valueOf(priceinfo.getTotalPremium()));
agPoQuotation.setTotalCharge(BigDecimal.valueOf(priceinfo.getAllCharge()));
agPoQuotation.setCompulsoryStatus(priceinfo.getTcCoverageStatus());
agPoQuotation.setCompulsoryMessage(priceinfo.getTcCoverageMsg());
agPoQuotation.setCompulsoryPremium(BigDecimal.valueOf(priceinfo.getTcPremium()));
agPoQuotation.setCompulsoryCharge(BigDecimal.valueOf(priceinfo.getTcCharge()));
agPoQuotation.setCompulsoryStart(priceinfo.getTcStartTime());
agPoQuotation.setVehicleTax(BigDecimal.valueOf(priceinfo.getVsltax()));
java.util.Calendar Cal=java.util.Calendar.getInstance();
Date dateOper = priceinfo.getTcStartTime();
Cal.setTime(dateOper);
Cal.add(java.util.Calendar.YEAR,1);
dateOper = Cal.getTime();
agPoQuotation.setCompulsoryEnd(dateOper);
agPoQuotation.setCompulsoryCharge(BigDecimal.valueOf(priceinfo.getTcCharge()));
agPoQuotation.setBusinessInsuranceStatus(priceinfo.getBzCoverageStatus());
agPoQuotation.setBusinessInsuranceMessage(priceinfo.getBzCoverageMsg());
agPoQuotation.setBusinessInsurancePremium(BigDecimal.valueOf(priceinfo.getBzPremium()));
agPoQuotation.setBusinessInsuranceFloatingRate(BigDecimal.valueOf(Double.valueOf(priceinfo.getBzFloatRatio())));
agPoQuotation.setBusinessInsuranceCharge(BigDecimal.valueOf(priceinfo.getBzCharge()));
agPoQuotation.setBusinessInsuranceStart(priceinfo.getBzStartTime());
dateOper = priceinfo.getBzStartTime();
Cal.setTime(dateOper);
Cal.add(java.util.Calendar.YEAR,1);
dateOper = Cal.getTime();
agPoQuotation.setBusinessInsuranceEnd(dateOper);
agPoQuotation.setBusinessInsuranceCharge(BigDecimal.valueOf(priceinfo.getBzCharge()));
//agPoQuotation.setDepartmentBelong(priceinfo.get);
//agPoQuotation.setDepartmentBelonger(priceinfo.);
//agPoQuotation.setOperator(priceinfo.get);
//agPoQuotation.setChannelCode(priceinfo.);
//agPoQuotation.setGroupNumber(priceinfo.);
//agPoQuotation.setIssueAssociation();
agPoQuotation.setCreatedAt(new Date());
agPoQuotation.setCreatedBy(-1L);
return agPoQuotation;
}
public static AgPoQuotationCover initThirdPartyLiabilityExemptDeductibleSpecialClauseData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
public static AgPoQuotationCover initDamageLossCoverageData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
public static AgPoQuotationCover initCarBodyPaintCoverageData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
public static AgPoQuotationCover initDamageLossExemptDeductibleSpecialClauseData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
public static AgPoQuotationCover initCarBodyPaintExemptDeductibleSpecialClauseData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
public static AgPoQuotationCover initThirdPartyLiabilityCoverageData(BzCoverages bzCoverages,Long quotationId,Long quotationVehicleId)
{
AgPoQuotationCover agPoQuotationCover = null;
agPoQuotationCover = new AgPoQuotationCover();
agPoQuotationCover.setQuotationId(quotationId);
agPoQuotationCover.setQuotationVehicleId(quotationVehicleId);
return agPoQuotationCover;
}
}
#tomcat 端口号
server.port=8080
server.context-path=/synch
# \u9875\u9762\u9ED8\u8BA4\u524D\u7F00\u76EE\u5F55
spring.mvc.view.prefix=/
# \u54CD\u5E94\u9875\u9762\u9ED8\u8BA4\u540E\u7F00
spring.mvc.view.suffix=.jsp
# \u81EA\u5B9A\u4E49\u5C5E\u6027\uFF0C\u53EF\u4EE5\u5728Controller\u4E2D\u8BFB\u53D6
#application.hello=Hello Angel From application
#spring session & redis
#TODO 后续可以考虑修改redis连接池大小
#spring.redis.host=localhost
#spring.redis.port=6379
#server.session.timeout=1800
#spring.session.store-type=redis
#spring.session.redis.namespace=session
#druid datasource
#启用druid数据源
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#数据源相关配置明细
spring.datasource.url=jdbc:mysql://localhost:3306/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
#spring.datasource.url=jdbc:mysql://114.55.158.220:2814/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
#spring.datasource.url=jdbc:log4jdbc:mysql://localhost:3306/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=devdbuser
spring.datasource.password=devdbpass1
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.driver-class-name=net.sf.log4jdbc.DriverSpy
# 初始化链接
spring.datasource.initialSize=5
#最小链接数
spring.datasource.minIdle=5
#最大连接数
spring.datasource.maxActive=20
# 获取连接等待超时的时间 毫秒
spring.datasource.maxWait=60000
# 间隔多久才进行一次检测,检测需要关闭的空闲连接,毫秒
spring.datasource.timeBetweenEvictionRunsMillis=60000
#连接在池中最小生存的时间,毫秒
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
#检测有效链接
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
########################################################
### Java Persistence Api
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.properties.hibernate.use_sql_comments=false
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
spring.http.multipart.maxFileSize=100Mb
spring.http.multipart.maxRequestSize=1000Mb
# JWT expiration单位秒钟
jwt.header:X-Authorization
jwt.seal:zhb123!@#
jwt.expiration:86400
jwt.issuer:zuihuibi
jwt.bypass:/demo/user/loginDemo,/auth/token,/demo/login,/demo/register
#tomcat 端口号
server.port=8080
server.context-path=/synch
# \u9875\u9762\u9ED8\u8BA4\u524D\u7F00\u76EE\u5F55
spring.mvc.view.prefix=/
# \u54CD\u5E94\u9875\u9762\u9ED8\u8BA4\u540E\u7F00
spring.mvc.view.suffix=.jsp
# \u81EA\u5B9A\u4E49\u5C5E\u6027\uFF0C\u53EF\u4EE5\u5728Controller\u4E2D\u8BFB\u53D6
#application.hello=Hello Angel From application
#spring session & redis
#TODO 后续可以考虑修改redis连接池大小
#spring.redis.host=localhost
#spring.redis.port=6379
#server.session.timeout=1800
#spring.session.store-type=redis
#spring.session.redis.namespace=session
#druid datasource
#启用druid数据源
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#数据源相关配置明细 101.37.146.25:8080
spring.datasource.url=jdbc:mysql://139.224.139.2:13307/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
#spring.datasource.url=jdbc:mysql://114.55.158.220:2814/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
#spring.datasource.url=jdbc:log4jdbc:mysql://localhost:3306/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=devdbuser
spring.datasource.password=devdbpass1
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
#spring.datasource.driver-class-name=net.sf.log4jdbc.DriverSpy
# 初始化链接
spring.datasource.initialSize=5
#最小链接数
spring.datasource.minIdle=5
#最大连接数
spring.datasource.maxActive=20
# 获取连接等待超时的时间 毫秒
spring.datasource.maxWait=60000
# 间隔多久才进行一次检测,检测需要关闭的空闲连接,毫秒
spring.datasource.timeBetweenEvictionRunsMillis=60000
#连接在池中最小生存的时间,毫秒
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
#检测有效链接
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
########################################################
### Java Persistence Api
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.properties.hibernate.use_sql_comments=false
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = none
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# JWT expiration单位秒钟
jwt.header:X-Authorization
jwt.seal:zhb123!@#
jwt.expiration:86400
jwt.issuer:zuihuibi
#jwt.bypass:TEST,测试功能的时候,不做校验,所有的都通过
jwt.bypass:TEST
#jwt.bypass:/user/loginDemo,/auth/token,/login,/register
#tomcat 端口号
server.port=8888
server.context-path=/synch
# \u9875\u9762\u9ED8\u8BA4\u524D\u7F00\u76EE\u5F55
spring.mvc.view.prefix=/
# \u54CD\u5E94\u9875\u9762\u9ED8\u8BA4\u540E\u7F00
spring.mvc.view.suffix=.jsp
# \u81EA\u5B9A\u4E49\u5C5E\u6027\uFF0C\u53EF\u4EE5\u5728Controller\u4E2D\u8BFB\u53D6
#application.hello=Hello Angel From application
#spring session & redis
#TODO 后续可以考虑修改redis连接池大小
#spring.redis.host=localhost
#spring.redis.port=6379
#server.session.timeout=1800
#spring.session.store-type=redis
#spring.session.redis.namespace=session
#druid datasource
#启用druid数据源
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#数据源相关配置明细
spring.datasource.url=jdbc:mysql://rm-pz5r6i51higju5k89.mysql.rds.aliyuncs.com:3306/zuihuibi_prod?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=ajb_online
spring.datasource.password=rsv_idx=1&tn=ba
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# 初始化链接
spring.datasource.initialSize=5
#最小链接数
spring.datasource.minIdle=5
#最大连接数
spring.datasource.maxActive=20
# 获取连接等待超时的时间 毫秒
spring.datasource.maxWait=60000
# 间隔多久才进行一次检测,检测需要关闭的空闲连接,毫秒
spring.datasource.timeBetweenEvictionRunsMillis=60000
#连接在池中最小生存的时间,毫秒
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
#检测有效链接
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
########################################################
### Java Persistence Api
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.properties.hibernate.use_sql_comments=false
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# JWT expiration\u5355\u4F4D\u79D2\u949F
jwt.header:X-Authorization
jwt.seal:zhb123!@#
jwt.expiration:86400
jwt.issuer:zuihuibi
jwt.bypass:/demo/user/loginDemo,/auth/token,/demo/login,/demo/register
#tomcat 端口号
server.port=9999
server.context-path=/synch
# \u9875\u9762\u9ED8\u8BA4\u524D\u7F00\u76EE\u5F55
spring.mvc.view.prefix=/
# \u54CD\u5E94\u9875\u9762\u9ED8\u8BA4\u540E\u7F00
spring.mvc.view.suffix=.jsp
# \u81EA\u5B9A\u4E49\u5C5E\u6027\uFF0C\u53EF\u4EE5\u5728Controller\u4E2D\u8BFB\u53D6
#application.hello=Hello Angel From application
#spring session & redis
#TODO 后续可以考虑修改redis连接池大小
#spring.redis.host=localhost
#spring.redis.port=6379
#server.session.timeout=1800
#spring.session.store-type=redis
#spring.session.redis.namespace=session
#druid datasource
#启用druid数据源
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
#数据源相关配置明细
spring.datasource.url=jdbc:mysql://rm-pz5r6i51higju5k89.mysql.rds.aliyuncs.com:3306/ajb?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=ajb_stage
spring.datasource.password=tAxnUkmPtJXRT#
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
# 初始化链接
spring.datasource.initialSize=5
#最小链接数
spring.datasource.minIdle=5
#最大连接数
spring.datasource.maxActive=20
# 获取连接等待超时的时间 毫秒
spring.datasource.maxWait=60000
# 间隔多久才进行一次检测,检测需要关闭的空闲连接,毫秒
spring.datasource.timeBetweenEvictionRunsMillis=60000
#连接在池中最小生存的时间,毫秒
spring.datasource.minEvictableIdleTimeMillis=300000
spring.datasource.validationQuery=SELECT 1 FROM DUAL
#检测有效链接
spring.datasource.testWhileIdle=true
spring.datasource.testOnBorrow=false
spring.datasource.testOnReturn=false
########################################################
### Java Persistence Api
########################################################
# Specify the DBMS
spring.jpa.database = MYSQL
# Show or not log for each sql query
spring.jpa.show-sql = false
spring.jpa.properties.hibernate.format_sql=false
spring.jpa.properties.hibernate.use_sql_comments=false
# Hibernate ddl auto (create, create-drop, update)
spring.jpa.hibernate.ddl-auto = update
# Naming strategy
#[org.hibernate.cfg.ImprovedNamingStrategy #org.hibernate.cfg.DefaultNamingStrategy]
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
# stripped before adding them to the entity manager)
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
# JWT expiration单位秒钟
jwt.header:X-Authorization
jwt.seal:zhb123!@#
jwt.expiration:86400
jwt.issuer:zuihuibi
jwt.bypass:/demo/user/loginDemo,/auth/token,/demo/login,/demo/register
spring.profiles.active=local
spring.session.store-type=none
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<configuration><!-- 使用spring profile 来管理多环节log文件 -->
<springProfile name="local"> <!-- local 环境 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"><!-- 控制台输出 -->
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern><!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"><!-- 按照每天生成日志文件 -->
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>opt/log/ajb/ajb-api.%d{yyyy-MM-dd}.log</FileNamePattern><!--日志文件输出的文件名 -->
<MaxHistory>30</MaxHistory><!--日志文件保留天数 -->
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern><!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 -->
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"><!--日志文件最大的大小 -->
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
<appender name="accurateQuotationFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>opt/log/ajb/accurate.%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory><!--日志文件保留天数 -->
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
</springProfile>
<springProfile name="dev,stage"> <!-- dev stage 环境 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/opt/log/ajb/ajb-api.%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
<appender name="accurateQuotationFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/opt/log/ajb/accurate.%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory><!--日志文件保留天数 -->
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
</springProfile>
<springProfile name="prod"><!-- prod环境 -->
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
</appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/opt/log/ajb/ajb-api.%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory>
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
<appender name="accurateQuotationFILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<FileNamePattern>/opt/log/ajb/accurate.%d{yyyy-MM-dd}.log</FileNamePattern>
<MaxHistory>30</MaxHistory><!--日志文件保留天数 -->
</rollingPolicy>
<encoder class="ch.qos.logback.classic.encoder.PatternLayoutEncoder">
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50}- %msg%n</pattern>
</encoder>
<triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
<MaxFileSize>10MB</MaxFileSize>
</triggeringPolicy>
</appender>
</springProfile>
<root level="INFO">
<appender-ref ref="STDOUT" />
<appender-ref ref="FILE" />
</root>
<logger name="accurateQuotation" level="WARN" additivity="false">
<appender-ref ref="STDOUT" />
<appender-ref ref="accurateQuotationFILE"/>
</logger>
</configuration>
\ No newline at end of file
-----BEGIN CERTIFICATE-----
MIIDQDCCAqmgAwIBAgIJAPVQkk4TuAWMMA0GCSqGSIb3DQEBBQUAMHQxCzAJBgNV
BAYTAkNOMQswCQYDVQQIEwJTSDELMAkGA1UEBxMCU0gxDjAMBgNVBAoTBUFYQVRQ
MQ8wDQYDVQQLEwZFQ1NBTEUxCzAJBgNVBAMTAkxLMR0wGwYJKoZIhvcNAQkBFg5s
aXV5Y0A5NTU1MC5jbjAeFw0xNDA0MjIwMjE2MjRaFw0xNjA1MTEwMjE2MjRaMHQx
CzAJBgNVBAYTAkNOMQswCQYDVQQIEwJTSDELMAkGA1UEBxMCU0gxDjAMBgNVBAoT
BUFYQVRQMQ8wDQYDVQQLEwZFQ1NBTEUxCzAJBgNVBAMTAkxLMR0wGwYJKoZIhvcN
AQkBFg5saXV5Y0A5NTU1MC5jbjCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA
xDWU69rNzoqTlXxKCoJkFYhcQiyu3y9xYlx9QmVso4LyfCUgdAsZjCOqFxn9t7Ra
rQBdrvq542QEozS5tGIVNM08kgXWsQXjAcFcP1rhybxJAYzcoZkzm3eqp+5xn8E8
WG7hTuep0RWtVmVC9pg0yVQ8Pwq7t9Kbah7TB4aW6KMCAwEAAaOB2TCB1jAdBgNV
HQ4EFgQU8N3TwSi3D1PrPTkLeKosW+0h36swgaYGA1UdIwSBnjCBm4AU8N3TwSi3
D1PrPTkLeKosW+0h36uheKR2MHQxCzAJBgNVBAYTAkNOMQswCQYDVQQIEwJTSDEL
MAkGA1UEBxMCU0gxDjAMBgNVBAoTBUFYQVRQMQ8wDQYDVQQLEwZFQ1NBTEUxCzAJ
BgNVBAMTAkxLMR0wGwYJKoZIhvcNAQkBFg5saXV5Y0A5NTU1MC5jboIJAPVQkk4T
uAWMMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADgYEAqS9q9OguUaT0qKY8
iFykZR8fnfhv9P1de3bkdOD6TVe4vbF5sHApxLunWWoMRRKMWldI1EuAtP8MLUek
CTRyh8UzSTQR4+DJE+GYDYsCeayjL70VHSDwP1gM+Y67IwqbxAfPerJSjZbHwTCo
ZJDrtdsXjY1tneI9yBp+Bf5ImHM=
-----END CERTIFICATE-----
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>安联购买</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
<%if(request.getAttribute("msg")!=null){%>
alert("<%=request.getAttribute("msg")%>");
<%}%>
</script>
</head>
<body>
<form id="formId" action="allianzBuy" method="post">
<table align="center">
<tr><td colspan="2" align="center"><b>安联订单确认</b></td></tr>
<tr></tr><!-- AC000039 LXGTI AC000006 apliyTest-->
<tr><td>销售渠道代码</td><td> <input type="text" id="agencyCode" name="agencyCode" value = "AC000006"></td></tr>
<tr><td>方案代码</td><td><input type="text" id="planCode" name="planCode" value = "apliyTest"></td></tr>
<tr><td>保险天数</td><td> <input type="text" id="period" name="period" value = "1"></td></tr>
<tr></tr>
<tr><td colspan="2" align="center"><input type="submit" value="购买" /></td></tr>
</table>
</form>
</body>
</html>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>选择支付方式</title>
</head>
<body>
<form action="allianzPayment" method="post">
<label for="male">渠道号:<%=request.getAttribute("agencyCode")%></label><br/>
<input type="hidden" name="agencyCode" value="<%=request.getAttribute("agencyCode")%>"/>
<label for="male">保单号:<%=request.getAttribute("policyRef")%></label><br/>
<input type="hidden" name="policyRef" value="<%=request.getAttribute("policyRef")%>"/>
<label for="male">保单价格:<%=request.getAttribute("totalPremium")%></label><br/>
<input type="hidden" name="totalPremium" value="<%=request.getAttribute("totalPremium")%>"/>
<label for="male">支付方式</label>
<input type="radio" name="paymentMethod" value="alipay" checked="checked">支付宝
<input type="radio" name="paymentMethod" value="99bill">快钱<br/>
<input type="radio" name="paymentMethod" value="wxpay" >微信
<input type="radio" name="paymentMethod" value="wapalipay" >手机支付宝
<Input type="submit" value="Submit"/>
</form>
</body>
</html>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>公共信息页面</title>
</head>
<body>
<b>Hi! Here is Message:</b>
<hr>
${title}
<hr>
${returnMessage}
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>利宝产品购买</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
<%if(request.getAttribute("msg")!=null){%>
alert("<%=request.getAttribute("msg")%>");
<%}%>
</script>
</head>
<body>
<form id="formId" action="libertyBuy" method="post">
<table align="center">
<tr><td colspan="2" align="center"><b>利宝订单确认</b></td></tr>
<tr></tr><!-- AC000039 LXGTI AC000006 apliyTest-->
<tr><td>销售渠道代码</td><td> <input type="text" id="agencyUserId" name="agencyUserId" value = "1057"></td></tr>
<tr><td>方案代码</td><td><input type="text" id="productCode" name="productCode" value = "087"></td></tr>
<tr><td>保险天数</td><td> <input type="text" id="period" name="period" value = "3"></td></tr>
<tr></tr>
<tr><td colspan="2" align="center"><input type="submit" value="购买" /></td></tr>
</table>
</form>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>史带产品购买</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
<%if(request.getAttribute("msg")!=null){%>
alert("<%=request.getAttribute("msg")%>");
<%}%>
</script>
</head>
<body>
<form id="formId" action="starrBuy" method="post">
<table align="center">
<tr><td colspan="2" align="center"><b>史带订单确认</b></td></tr>
<tr></tr><!-- AC000039 LXGTI AC000006 apliyTest-->
<tr><td>销售渠道代码</td><td> <input type="text" id="contractId" name="contractId" value = "144991"></td></tr>
<tr><td>方案代码</td><td><input type="text" id="planId" name="planId" value = "445"></td></tr>
<tr><td>保险天数</td><td> <input type="text" id="period" name="period" value = "10"></td></tr>
<tr><td>保费</td><td> <input type="text" id="premium" name="premium" value = "30"></td></tr>
<tr><td>支付方式</td>
<td>
<input type="radio" name="paymentMethod" value="sweep" >微信扫码(适用于PC网站购买)
<input type="radio" name="paymentMethod" value="subscription" checked="checked">微信支付(适用于手机微信中购买)
<input type="radio" name="paymentMethod" value="alipay" >支付宝
</td>
</tr>
<tr></tr>
<tr><td colspan="2" align="center"><input type="submit" value="购买" /></td></tr>
</table>
</form>
</body>
</html>
\ No newline at end of file
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>史带支付</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<script language="javascript">
var out_trade_no = "<%= request.getAttribute("out_trade_no") %>";
var finished = 0;
var XMLHttpReq;
//创建XMLHttpRequest对象
function createXMLHttpRequest() {
if(window.XMLHttpRequest) { //Mozilla 浏览器
XMLHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IE浏览器
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
alert(e);
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {alert(e);}
}
}
}
//发送请求函数
function sendRequest() {
createXMLHttpRequest();
var url = "payResult?out_trade_no="+out_trade_no;
XMLHttpReq.open("GET", url, true);
XMLHttpReq.onreadystatechange = processResponse;//指定响应函数
XMLHttpReq.send(null); // 发送请求
}
// 处理返回信息函数
function processResponse() {
if (XMLHttpReq.readyState == 4) { // 判断对象状态
if (XMLHttpReq.status == 200) { // 信息已经成功返回,开始处理信息
if(finished == 0){
DisplayHot();
setTimeout("sendRequest()", 2000);
}
} else { //页面不正常
window.alert("您所请求的页面有异常。");
}
}
}
function DisplayHot() {
//var name = XMLHttpReq.responseXML.getElementsByTagName("name")[0].firstChild.nodeValue;
//var count = XMLHttpReq.responseXML.getElementsByTagName("count")[0].firstChild.nodeValue;
//document.getElementById("product").innerHTML = name;
//document.getElementById("count").innerHTML = count;
var result = XMLHttpReq.responseText;
//alert('in DisplayHot ,result = '+result);
//alert( result == "OK");
if(result == "OK"){
finished = 1;
//fm.saomiao.style.display = "none";
//fm.jieguo.style.display = "";
document.getElementById("saomiao").style.display="none";//隐藏
document.getElementById("jieguo").style.display="";//显示
}
}
</script>
<body >
<form name="fm">
<div id="saomiao">
<table align="center">
<tr align="center"><td colspan="2"><b>请打开微信扫码支付</b></td></tr>
<tr><td colspan="2"><img style="height:200px;width:200px" src=<%=request.getParameter("payurl") %> /></td></tr>
</table>
</div>
<div id="jieguo" style="display:none">
<table align="center">
<tr align="center"><td colspan="2"><b>支付成功!</b></td></tr>
</table>
</div>
</form>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>内部欢迎信息页面</title>
</head>
<body>
<hr>
${hello}
<hr>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>微信购买</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script type="text/javascript">
<%if(request.getAttribute("msg")!=null){%>
alert("<%=request.getAttribute("msg")%>");
<%}%>
</script>
</head>
<body>
<form id="formId" action="https://mdev.zuihuibi.cn/demo/wechatBuy" method="post">
<table align="center">
<tr><td colspan="2" align="center"><b>订单确认</b></td></tr>
<tr></tr>
<tr><td>产品名称</td><td><input type="text" id="productName" name="productName" value = "安联随心游全家保"></td></tr>
<tr><td>价格</td><td> <input type="text" id="productPrice" name="productPrice" value = "0.01"></td></tr>
<tr><td>支付方式</td><td><input type="radio" name="paymentMethod" value="NATIVE" checked="checked">微信扫码
<input type="radio" name="paymentMethod" value="JSAPI" >手机微信中购买
</td></tr>
<tr></tr>
<tr><td colspan="2" align="center"><input type="submit" value="购买" /></td></tr>
</table>
</form>
</body>
</html>
\ No newline at end of file
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>微信支付</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<script language="javascript">
var out_trade_no = "<%= request.getAttribute("out_trade_no") %>";
//alert(out_trade_no);
var code_url = "<%=request.getAttribute("code_url")%>";
//alert(code_url);
var finished = 0;
var XMLHttpReq;
//创建XMLHttpRequest对象
function createXMLHttpRequest() {
if(window.XMLHttpRequest) { //Mozilla 浏览器
XMLHttpReq = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // IE浏览器
try {
XMLHttpReq = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
alert(e);
try {
XMLHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {alert(e);}
}
}
}
//发送请求函数
function sendRequest() {
createXMLHttpRequest();
var url = "https://mdev.zuihuibi.cn/demo/payResult?out_trade_no="+out_trade_no;
XMLHttpReq.open("GET", url, true);
XMLHttpReq.onreadystatechange = processResponse;//指定响应函数
XMLHttpReq.send(null); // 发送请求
}
// 处理返回信息函数
function processResponse() {
if (XMLHttpReq.readyState == 4) { // 判断对象状态
if (XMLHttpReq.status == 200) { // 信息已经成功返回,开始处理信息
if(finished == 0){
DisplayHot();
setTimeout("sendRequest()", 2000);
}
} else { //页面不正常
window.alert("您所请求的页面有异常。");
}
}
}
function DisplayHot() {
//var name = XMLHttpReq.responseXML.getElementsByTagName("name")[0].firstChild.nodeValue;
//var count = XMLHttpReq.responseXML.getElementsByTagName("count")[0].firstChild.nodeValue;
//document.getElementById("product").innerHTML = name;
//document.getElementById("count").innerHTML = count;
var result = XMLHttpReq.responseText;
//alert('in DisplayHot ,result = '+result);
//alert( result == "OK");
if(result == "OK"){
finished = 1;
//fm.saomao.style.display = "none";
//fm.jieguo.style.display = "";
document.getElementById("saomao").style.display="none";//隐藏
document.getElementById("jieguo").style.display="";//显示
}
}
</script>
<body onload="sendRequest()">
<form name="fm">
<div id="saomao">
<table align="center">
<tr align="center"><td colspan="2"><b>请打开微信扫码支付</b></td></tr>
<tr><td colspan="2"><img style="height:200px;width:200px" src="qrCode?code_url=<%=request.getAttribute("code_url")%>" /></td></tr>
</table>
</div>
<div id="jieguo" style="display:none">
<table align="center">
<tr align="center"><td colspan="2"><b>支付成功!</b></td></tr>
</table>
</div>
</form>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jre1.8.0_121">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ajb-car-entity</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="ajb-car-entity">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="cloudfoundry.standalone.app" version="1.0"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.utility" version="1.0"/>
</faceted-project>
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ajb-car</groupId>
<artifactId>ajb-car</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>ajb-car-entity</artifactId>
<name>ajb-car-entity</name>
<url>http://maven.apache.org</url>
<properties>
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
</project>
package com.ajb.car.entity.apimessage;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
记录接口调用原始消息
*/
@Entity
@Table(name="ag_trans_vehicle_msg_origin")
public class AgTransVehicleMsgOrigin implements java.io.Serializable {
private static final long serialVersionUID = 1L;
// 序号
private Long id;
// I=Insurer V=Vendor O=Other
// ag_acl_insurer.id or ag_acl_vendor.id
private String quoteProviderType;
// 报价提供方id
private Long quoteProviderId;
// 报价提供方
private String quoteProvider;
// 请求host
private String requestHost;
// 请求参数json
private String requestParams;
// 请求方法URI
private String requestMethod;
// 请求类型
private String requestType;
// 请求日期
private Date requestDate;
// 登录用户id
private Integer userId;
// 登录用户名称
private String userName;
// 相应内容json
private String responseMessage;
/** ?? 序号,???? ag_trans_vehicle_msg_origin.id */
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
public Long getId(){
return this.id;
}
/** ?? 序号,???? ag_trans_vehicle_msg_origin.id */
public void setId(Long id){
this.id = id;
}
/** ?? I=Insurer V=Vendor O=Other
ag_acl_insurer.id or ag_acl_vendor.id
,???? ag_trans_vehicle_msg_origin.quote_provider_type */
@Column(name="quote_provider_type")
public String getQuoteProviderType(){
return this.quoteProviderType;
}
/** ?? I=Insurer V=Vendor O=Other
ag_acl_insurer.id or ag_acl_vendor.id
,???? ag_trans_vehicle_msg_origin.quote_provider_type */
public void setQuoteProviderType(String quoteProviderType){
this.quoteProviderType = quoteProviderType;
}
/** ?? 报价提供方id,???? ag_trans_vehicle_msg_origin.quote_provider_id */
@Column(name="quote_provider_id")
public Long getQuoteProviderId(){
return this.quoteProviderId;
}
/** ?? 报价提供方id,???? ag_trans_vehicle_msg_origin.quote_provider_id */
public void setQuoteProviderId(Long quoteProviderId){
this.quoteProviderId = quoteProviderId;
}
/** ?? 报价提供方,???? ag_trans_vehicle_msg_origin.quote_provider */
@Column(name="quote_provider")
public String getQuoteProvider(){
return this.quoteProvider;
}
/** ?? 报价提供方,???? ag_trans_vehicle_msg_origin.quote_provider */
public void setQuoteProvider(String quoteProvider){
this.quoteProvider = quoteProvider;
}
/** ?? 请求host,???? ag_trans_vehicle_msg_origin.request_host */
@Column(name="request_host")
public String getRequestHost(){
return this.requestHost;
}
/** ?? 请求host,???? ag_trans_vehicle_msg_origin.request_host */
public void setRequestHost(String requestHost){
this.requestHost = requestHost;
}
/** ?? 请求参数json,???? ag_trans_vehicle_msg_origin.request_params */
@Column(name="request_params")
public String getRequestParams(){
return this.requestParams;
}
/** ?? 请求参数json,???? ag_trans_vehicle_msg_origin.request_params */
public void setRequestParams(String requestParams){
this.requestParams = requestParams;
}
/** ?? 请求方法URI,???? ag_trans_vehicle_msg_origin.request_method */
@Column(name="request_method")
public String getRequestMethod(){
return this.requestMethod;
}
/** ?? 请求方法URI,???? ag_trans_vehicle_msg_origin.request_method */
public void setRequestMethod(String requestMethod){
this.requestMethod = requestMethod;
}
/** ?? 请求类型,???? ag_trans_vehicle_msg_origin.request_type */
@Column(name="request_type")
public String getRequestType(){
return this.requestType;
}
/** ?? 请求类型,???? ag_trans_vehicle_msg_origin.request_type */
public void setRequestType(String requestType){
this.requestType = requestType;
}
/** ?? 请求日期,???? ag_trans_vehicle_msg_origin.request_date */
@Column(name="request_date")
public Date getRequestDate(){
return this.requestDate;
}
/** ?? 请求日期,???? ag_trans_vehicle_msg_origin.request_date */
public void setRequestDate(Date requestDate){
this.requestDate = requestDate;
}
/** ?? 登录用户id,???? ag_trans_vehicle_msg_origin.user_id */
@Column(name="user_id")
public Integer getUserId(){
return this.userId;
}
/** ?? 登录用户id,???? ag_trans_vehicle_msg_origin.user_id */
public void setUserId(Integer userId){
this.userId = userId;
}
/** ?? 登录用户名称,???? ag_trans_vehicle_msg_origin.user_name */
@Column(name="user_name")
public String getUserName(){
return this.userName;
}
/** ?? 登录用户名称,???? ag_trans_vehicle_msg_origin.user_name */
public void setUserName(String userName){
this.userName = userName;
}
/** ?? 相应内容json,???? ag_trans_vehicle_msg_origin.response_message */
@Column(name="response_message")
public String getResponseMessage(){
return this.responseMessage;
}
/** ?? 相应内容json,???? ag_trans_vehicle_msg_origin.response_message */
public void setResponseMessage(String responseMessage){
this.responseMessage = responseMessage;
}
}
\ No newline at end of file
package com.ajb.car.entity.meta;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
代码表
*/
@Entity
@Table(name="ag_md_code")
public class AgMdCode implements java.io.Serializable {
private static final long serialVersionUID = 1L;
// 主键
private Long id;
// 代码类型
private String codeType;
// 序号
private Integer displayNo;
// 代码值
private String codeCode;
// 代码名称
private String codeName;
// 代码英文名称
private String codeNameEn;
// 0=No, 1=Yes
private Integer isActive;
// 标识
private String flag;
// 备注
private String remark;
// 创建时间
private Date createdAt;
// 创建人
private Long createdBy;
// 修改时间
private Date updatedAt;
// 修改人
private Long updatedBy;
/** ?? 主键,???? ag_md_code.id */
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
public Long getId(){
return this.id;
}
/** ?? 主键,???? ag_md_code.id */
public void setId(Long id){
this.id = id;
}
/** ?? 代码类型,???? ag_md_code.code_type */
@Column(name="code_type")
public String getCodeType(){
return this.codeType;
}
/** ?? 代码类型,???? ag_md_code.code_type */
public void setCodeType(String codeType){
this.codeType = codeType;
}
/** ?? 序号,???? ag_md_code.display_no */
@Column(name="display_no")
public Integer getDisplayNo(){
return this.displayNo;
}
/** ?? 序号,???? ag_md_code.display_no */
public void setDisplayNo(Integer displayNo){
this.displayNo = displayNo;
}
/** ?? 代码值,???? ag_md_code.code_code */
@Column(name="code_code")
public String getCodeCode(){
return this.codeCode;
}
/** ?? 代码值,???? ag_md_code.code_code */
public void setCodeCode(String codeCode){
this.codeCode = codeCode;
}
/** ?? 代码名称,???? ag_md_code.code_name */
@Column(name="code_name")
public String getCodeName(){
return this.codeName;
}
/** ?? 代码名称,???? ag_md_code.code_name */
public void setCodeName(String codeName){
this.codeName = codeName;
}
/** ?? 代码英文名称,???? ag_md_code.code_name_en */
@Column(name="code_name_en")
public String getCodeNameEn(){
return this.codeNameEn;
}
/** ?? 代码英文名称,???? ag_md_code.code_name_en */
public void setCodeNameEn(String codeNameEn){
this.codeNameEn = codeNameEn;
}
/** ?? 0=No, 1=Yes,???? ag_md_code.is_active */
@Column(name="is_active")
public Integer getIsActive(){
return this.isActive;
}
/** ?? 0=No, 1=Yes,???? ag_md_code.is_active */
public void setIsActive(Integer isActive){
this.isActive = isActive;
}
/** ?? 标识,???? ag_md_code.flag */
@Column(name="flag")
public String getFlag(){
return this.flag;
}
/** ?? 标识,???? ag_md_code.flag */
public void setFlag(String flag){
this.flag = flag;
}
/** ?? 备注,???? ag_md_code.remark */
@Column(name="remark")
public String getRemark(){
return this.remark;
}
/** ?? 备注,???? ag_md_code.remark */
public void setRemark(String remark){
this.remark = remark;
}
/** ?? 创建时间,???? ag_md_code.created_at */
@Column(name="created_at")
public Date getCreatedAt(){
return this.createdAt;
}
/** ?? 创建时间,???? ag_md_code.created_at */
public void setCreatedAt(Date createdAt){
this.createdAt = createdAt;
}
/** ?? 创建人,???? ag_md_code.created_by */
@Column(name="created_by")
public Long getCreatedBy(){
return this.createdBy;
}
/** ?? 创建人,???? ag_md_code.created_by */
public void setCreatedBy(Long createdBy){
this.createdBy = createdBy;
}
/** ?? 修改时间,???? ag_md_code.updated_at */
@Column(name="updated_at")
public Date getUpdatedAt(){
return this.updatedAt;
}
/** ?? 修改时间,???? ag_md_code.updated_at */
public void setUpdatedAt(Date updatedAt){
this.updatedAt = updatedAt;
}
/** ?? 修改人,???? ag_md_code.updated_by */
@Column(name="updated_by")
public Long getUpdatedBy(){
return this.updatedBy;
}
/** ?? 修改人,???? ag_md_code.updated_by */
public void setUpdatedBy(Long updatedBy){
this.updatedBy = updatedBy;
}
}
\ No newline at end of file
package com.ajb.car.entity.meta;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
代码类型表
*/
@Entity
@Table(name="ag_md_code_type")
public class AgMdCodeType implements java.io.Serializable {
private static final long serialVersionUID = 1L;
// 主键
private Long id;
// 代码类型
private String codeType;
// 代码类型描述
private String codeTypeDesc;
// 代码类型英文描述
private String codeTypeDescEn;
// 0=No, 1=Yes
private Integer isActive;
// 标识
private String flag;
// 备注
private String remark;
// 创建时间
private Date createdAt;
// 创建人
private Long createdBy;
// 修改时间
private Date updatedAt;
// 修改人
private Long updatedBy;
/** ?? 主键,???? ag_md_code_type.id */
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
public Long getId(){
return this.id;
}
/** ?? 主键,???? ag_md_code_type.id */
public void setId(Long id){
this.id = id;
}
/** ?? 代码类型,???? ag_md_code_type.code_type */
@Column(name="code_type")
public String getCodeType(){
return this.codeType;
}
/** ?? 代码类型,???? ag_md_code_type.code_type */
public void setCodeType(String codeType){
this.codeType = codeType;
}
/** ?? 代码类型描述,???? ag_md_code_type.code_type_desc */
@Column(name="code_type_desc")
public String getCodeTypeDesc(){
return this.codeTypeDesc;
}
/** ?? 代码类型描述,???? ag_md_code_type.code_type_desc */
public void setCodeTypeDesc(String codeTypeDesc){
this.codeTypeDesc = codeTypeDesc;
}
/** ?? 代码类型英文描述,???? ag_md_code_type.code_type_desc_en */
@Column(name="code_type_desc_en")
public String getCodeTypeDescEn(){
return this.codeTypeDescEn;
}
/** ?? 代码类型英文描述,???? ag_md_code_type.code_type_desc_en */
public void setCodeTypeDescEn(String codeTypeDescEn){
this.codeTypeDescEn = codeTypeDescEn;
}
/** ?? 0=No, 1=Yes,???? ag_md_code_type.is_active */
@Column(name="is_active")
public Integer getIsActive(){
return this.isActive;
}
/** ?? 0=No, 1=Yes,???? ag_md_code_type.is_active */
public void setIsActive(Integer isActive){
this.isActive = isActive;
}
/** ?? 标识,???? ag_md_code_type.flag */
@Column(name="flag")
public String getFlag(){
return this.flag;
}
/** ?? 标识,???? ag_md_code_type.flag */
public void setFlag(String flag){
this.flag = flag;
}
/** ?? 备注,???? ag_md_code_type.remark */
@Column(name="remark")
public String getRemark(){
return this.remark;
}
/** ?? 备注,???? ag_md_code_type.remark */
public void setRemark(String remark){
this.remark = remark;
}
/** ?? 创建时间,???? ag_md_code_type.created_at */
@Column(name="created_at")
public Date getCreatedAt(){
return this.createdAt;
}
/** ?? 创建时间,???? ag_md_code_type.created_at */
public void setCreatedAt(Date createdAt){
this.createdAt = createdAt;
}
/** ?? 创建人,???? ag_md_code_type.created_by */
@Column(name="created_by")
public Long getCreatedBy(){
return this.createdBy;
}
/** ?? 创建人,???? ag_md_code_type.created_by */
public void setCreatedBy(Long createdBy){
this.createdBy = createdBy;
}
/** ?? 修改时间,???? ag_md_code_type.updated_at */
@Column(name="updated_at")
public Date getUpdatedAt(){
return this.updatedAt;
}
/** ?? 修改时间,???? ag_md_code_type.updated_at */
public void setUpdatedAt(Date updatedAt){
this.updatedAt = updatedAt;
}
/** ?? 修改人,???? ag_md_code_type.updated_by */
@Column(name="updated_by")
public Long getUpdatedBy(){
return this.updatedBy;
}
/** ?? 修改人,???? ag_md_code_type.updated_by */
public void setUpdatedBy(Long updatedBy){
this.updatedBy = updatedBy;
}
}
\ No newline at end of file
package com.ajb.car.entity.quotation;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
报价单承保范围
*/
@Entity
@Table(name="ag_po_quotation_cover")
public class AgPoQuotationCover implements java.io.Serializable {
private static final long serialVersionUID = 1L;
// 编号id
private Long id;
// 报价单编号id
private Long quotationId;
// 车辆id
private Long quotationVehicleId;
// 承保款项id
private Long vehicleClauseId;
// 承保款项分类目录
private String clauseCategory;
// 承保款项编码
private String clauseCode;
// 承保款项说明
private String clauseDescription;
// 承保名称
private String coverName;
// 保额
private String coverAmount;
// 费率
private BigDecimal floatingRate;
// 基础保费
private BigDecimal standardPremium;
// 折扣系数
private BigDecimal discountRate;
// 应缴保费
private BigDecimal premium;
// 税费
private BigDecimal tax;
// 数量
private Integer count;
// 创建日期
private Date createdAt;
// 创建人
private Long createdBy;
// 修改时间
private Date updatedAt;
// 修改人
private Long updatedBy;
/** ?? 编号id,???? ag_po_quotation_cover.id */
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
public Long getId(){
return this.id;
}
/** ?? 编号id,???? ag_po_quotation_cover.id */
public void setId(Long id){
this.id = id;
}
/** ?? 报价单编号id,???? ag_po_quotation_cover.quotation_id */
@Column(name="quotation_id")
public Long getQuotationId(){
return this.quotationId;
}
/** ?? 报价单编号id,???? ag_po_quotation_cover.quotation_id */
public void setQuotationId(Long quotationId){
this.quotationId = quotationId;
}
/** ?? 车辆id,???? ag_po_quotation_cover.quotation_vehicle_id */
@Column(name="quotation_vehicle_id")
public Long getQuotationVehicleId(){
return this.quotationVehicleId;
}
/** ?? 车辆id,???? ag_po_quotation_cover.quotation_vehicle_id */
public void setQuotationVehicleId(Long quotationVehicleId){
this.quotationVehicleId = quotationVehicleId;
}
/** ?? 承保款项id,???? ag_po_quotation_cover.vehicle_clause_id */
@Column(name="vehicle_clause_id")
public Long getVehicleClauseId(){
return this.vehicleClauseId;
}
/** ?? 承保款项id,???? ag_po_quotation_cover.vehicle_clause_id */
public void setVehicleClauseId(Long vehicleClauseId){
this.vehicleClauseId = vehicleClauseId;
}
/** ?? 承保款项分类目录,???? ag_po_quotation_cover.clause_category */
@Column(name="clause_category")
public String getClauseCategory(){
return this.clauseCategory;
}
/** ?? 承保款项分类目录,???? ag_po_quotation_cover.clause_category */
public void setClauseCategory(String clauseCategory){
this.clauseCategory = clauseCategory;
}
/** ?? 承保款项编码,???? ag_po_quotation_cover.clause_code */
@Column(name="clause_code")
public String getClauseCode(){
return this.clauseCode;
}
/** ?? 承保款项编码,???? ag_po_quotation_cover.clause_code */
public void setClauseCode(String clauseCode){
this.clauseCode = clauseCode;
}
/** ?? 承保款项说明,???? ag_po_quotation_cover.clause_description */
@Column(name="clause_description")
public String getClauseDescription(){
return this.clauseDescription;
}
/** ?? 承保款项说明,???? ag_po_quotation_cover.clause_description */
public void setClauseDescription(String clauseDescription){
this.clauseDescription = clauseDescription;
}
/** ?? 承保名称,???? ag_po_quotation_cover.cover_name */
@Column(name="cover_name")
public String getCoverName(){
return this.coverName;
}
/** ?? 承保名称,???? ag_po_quotation_cover.cover_name */
public void setCoverName(String coverName){
this.coverName = coverName;
}
/** ?? 保额,???? ag_po_quotation_cover.cover_amount */
@Column(name="cover_amount")
public String getCoverAmount(){
return this.coverAmount;
}
/** ?? 保额,???? ag_po_quotation_cover.cover_amount */
public void setCoverAmount(String coverAmount){
this.coverAmount = coverAmount;
}
@Column(name="floating_rate")
public BigDecimal getFloatingRate(){
return this.floatingRate;
}
public void setFloatingRate(BigDecimal floatingRate){
this.floatingRate = floatingRate;
}
/** ?? 基础保费,???? ag_po_quotation_cover.standard_premium */
@Column(name="standard_premium")
public BigDecimal getStandardPremium(){
return this.standardPremium;
}
/** ?? 基础保费,???? ag_po_quotation_cover.standard_premium */
public void setStandardPremium(BigDecimal standardPremium){
this.standardPremium = standardPremium;
}
/** ?? 折扣系数,???? ag_po_quotation_cover.discount_rate */
@Column(name="discount_rate")
public BigDecimal getDiscountRate(){
return this.discountRate;
}
/** ?? 折扣系数,???? ag_po_quotation_cover.discount_rate */
public void setDiscountRate(BigDecimal discountRate){
this.discountRate = discountRate;
}
/** ?? 应缴保费,???? ag_po_quotation_cover.premium */
@Column(name="premium")
public BigDecimal getPremium(){
return this.premium;
}
/** ?? 应缴保费,???? ag_po_quotation_cover.premium */
public void setPremium(BigDecimal premium){
this.premium = premium;
}
/** ?? 税费,???? ag_po_quotation_cover.tax */
@Column(name="tax")
public BigDecimal getTax(){
return this.tax;
}
/** ?? 税费,???? ag_po_quotation_cover.tax */
public void setTax(BigDecimal tax){
this.tax = tax;
}
/** ?? 数量,???? ag_po_quotation_cover.count */
@Column(name="count")
public Integer getCount(){
return this.count;
}
/** ?? 数量,???? ag_po_quotation_cover.count */
public void setCount(Integer count){
this.count = count;
}
/** ?? 创建日期,???? ag_po_quotation_cover.created_at */
@Column(name="created_at")
public Date getCreatedAt(){
return this.createdAt;
}
/** ?? 创建日期,???? ag_po_quotation_cover.created_at */
public void setCreatedAt(Date createdAt){
this.createdAt = createdAt;
}
/** ?? 创建人,???? ag_po_quotation_cover.created_by */
@Column(name="created_by")
public Long getCreatedBy(){
return this.createdBy;
}
/** ?? 创建人,???? ag_po_quotation_cover.created_by */
public void setCreatedBy(Long createdBy){
this.createdBy = createdBy;
}
/** ?? 修改时间,???? ag_po_quotation_cover.updated_at */
@Column(name="updated_at")
public Date getUpdatedAt(){
return this.updatedAt;
}
/** ?? 修改时间,???? ag_po_quotation_cover.updated_at */
public void setUpdatedAt(Date updatedAt){
this.updatedAt = updatedAt;
}
/** ?? 修改人,???? ag_po_quotation_cover.updated_by */
@Column(name="updated_by")
public Long getUpdatedBy(){
return this.updatedBy;
}
/** ?? 修改人,???? ag_po_quotation_cover.updated_by */
public void setUpdatedBy(Long updatedBy){
this.updatedBy = updatedBy;
}
}
\ No newline at end of file
package com.ajb.car.entity.quotation;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
车船税
*/
@Entity
@Table(name="ag_po_quotation_tax")
public class AgPoQuotationTax implements java.io.Serializable {
private static final long serialVersionUID = 1L;
// 编号id
private Long id;
// 报价单编号id
private Long quotationId;
// 车辆id
private Long quotationVehicleId;
// 车船税类型编码
private String vehKind;
// 完税人
private String payerName;
// 电话
private String telephone;
private BigDecimal taxAmount;
private String taxPayer;
// 支付状态0:支付,-1未支付
private Integer taxPayable;
// 是否是个人
private Integer isPerson;
// 证件类型
private String certType;
// 证件号码
private String certCode;
// 地址
private String regAddr;
// 承载量
private String loadCapicity;
// 税款所属期起
private Date startDate;
// 税款所属期止
private Date endDate;
private String backDateFrom;
private String backDateTo;
private String lateDateTo;
private String lateDateFrom;
// 完税状态
private String taxState;
// 创建日期
private Date createdAt;
// 创建人
private Long createdBy;
// 修改时间
private Date updatedAt;
// 修改人
private Long updatedBy;
/** ?? 编号id,???? ag_po_quotation_tax.id */
@Id
@GeneratedValue(strategy=GenerationType.IDENTITY)
@Column(name="id")
public Long getId(){
return this.id;
}
/** ?? 编号id,???? ag_po_quotation_tax.id */
public void setId(Long id){
this.id = id;
}
/** ?? 报价单编号id,???? ag_po_quotation_tax.quotation_id */
@Column(name="quotation_id")
public Long getQuotationId(){
return this.quotationId;
}
/** ?? 报价单编号id,???? ag_po_quotation_tax.quotation_id */
public void setQuotationId(Long quotationId){
this.quotationId = quotationId;
}
/** ?? 车辆id,???? ag_po_quotation_tax.quotation_vehicle_id */
@Column(name="quotation_vehicle_id")
public Long getQuotationVehicleId(){
return this.quotationVehicleId;
}
/** ?? 车辆id,???? ag_po_quotation_tax.quotation_vehicle_id */
public void setQuotationVehicleId(Long quotationVehicleId){
this.quotationVehicleId = quotationVehicleId;
}
/** ?? 车船税类型编码,???? ag_po_quotation_tax.veh_kind */
@Column(name="veh_kind")
public String getVehKind(){
return this.vehKind;
}
/** ?? 车船税类型编码,???? ag_po_quotation_tax.veh_kind */
public void setVehKind(String vehKind){
this.vehKind = vehKind;
}
/** ?? 完税人,???? ag_po_quotation_tax.payer_name */
@Column(name="payer_name")
public String getPayerName(){
return this.payerName;
}
/** ?? 完税人,???? ag_po_quotation_tax.payer_name */
public void setPayerName(String payerName){
this.payerName = payerName;
}
/** ?? 电话,???? ag_po_quotation_tax.telephone */
@Column(name="telephone")
public String getTelephone(){
return this.telephone;
}
/** ?? 电话,???? ag_po_quotation_tax.telephone */
public void setTelephone(String telephone){
this.telephone = telephone;
}
@Column(name="tax_amount")
public BigDecimal getTaxAmount(){
return this.taxAmount;
}
public void setTaxAmount(BigDecimal taxAmount){
this.taxAmount = taxAmount;
}
@Column(name="tax_payer")
public String getTaxPayer(){
return this.taxPayer;
}
public void setTaxPayer(String taxPayer){
this.taxPayer = taxPayer;
}
/** ?? 支付状态0:支付,-1未支付,???? ag_po_quotation_tax.tax_payable */
@Column(name="tax_payable")
public Integer getTaxPayable(){
return this.taxPayable;
}
/** ?? 支付状态0:支付,-1未支付,???? ag_po_quotation_tax.tax_payable */
public void setTaxPayable(Integer taxPayable){
this.taxPayable = taxPayable;
}
/** ?? 是否是个人,???? ag_po_quotation_tax.is_person */
@Column(name="is_person")
public Integer getIsPerson(){
return this.isPerson;
}
/** ?? 是否是个人,???? ag_po_quotation_tax.is_person */
public void setIsPerson(Integer isPerson){
this.isPerson = isPerson;
}
/** ?? 证件类型,???? ag_po_quotation_tax.cert_type */
@Column(name="cert_type")
public String getCertType(){
return this.certType;
}
/** ?? 证件类型,???? ag_po_quotation_tax.cert_type */
public void setCertType(String certType){
this.certType = certType;
}
/** ?? 证件号码,???? ag_po_quotation_tax.cert_code */
@Column(name="cert_code")
public String getCertCode(){
return this.certCode;
}
/** ?? 证件号码,???? ag_po_quotation_tax.cert_code */
public void setCertCode(String certCode){
this.certCode = certCode;
}
/** ?? 地址,???? ag_po_quotation_tax.reg_addr */
@Column(name="reg_addr")
public String getRegAddr(){
return this.regAddr;
}
/** ?? 地址,???? ag_po_quotation_tax.reg_addr */
public void setRegAddr(String regAddr){
this.regAddr = regAddr;
}
/** ?? 承载量,???? ag_po_quotation_tax.load_capicity */
@Column(name="load_capicity")
public String getLoadCapicity(){
return this.loadCapicity;
}
/** ?? 承载量,???? ag_po_quotation_tax.load_capicity */
public void setLoadCapicity(String loadCapicity){
this.loadCapicity = loadCapicity;
}
/** ?? 税款所属期起,???? ag_po_quotation_tax.start_date */
@Column(name="start_date")
public Date getStartDate(){
return this.startDate;
}
/** ?? 税款所属期起,???? ag_po_quotation_tax.start_date */
public void setStartDate(Date startDate){
this.startDate = startDate;
}
/** ?? 税款所属期止,???? ag_po_quotation_tax.end_date */
@Column(name="end_date")
public Date getEndDate(){
return this.endDate;
}
/** ?? 税款所属期止,???? ag_po_quotation_tax.end_date */
public void setEndDate(Date endDate){
this.endDate = endDate;
}
@Column(name="back_date_from")
public String getBackDateFrom(){
return this.backDateFrom;
}
public void setBackDateFrom(String backDateFrom){
this.backDateFrom = backDateFrom;
}
@Column(name="back_date_to")
public String getBackDateTo(){
return this.backDateTo;
}
public void setBackDateTo(String backDateTo){
this.backDateTo = backDateTo;
}
@Column(name="late_date_to")
public String getLateDateTo(){
return this.lateDateTo;
}
public void setLateDateTo(String lateDateTo){
this.lateDateTo = lateDateTo;
}
@Column(name="late_date_from")
public String getLateDateFrom(){
return this.lateDateFrom;
}
public void setLateDateFrom(String lateDateFrom){
this.lateDateFrom = lateDateFrom;
}
/** ?? 完税状态,???? ag_po_quotation_tax.tax_state */
@Column(name="tax_state")
public String getTaxState(){
return this.taxState;
}
/** ?? 完税状态,???? ag_po_quotation_tax.tax_state */
public void setTaxState(String taxState){
this.taxState = taxState;
}
/** ?? 创建日期,???? ag_po_quotation_tax.created_at */
@Column(name="created_at")
public Date getCreatedAt(){
return this.createdAt;
}
/** ?? 创建日期,???? ag_po_quotation_tax.created_at */
public void setCreatedAt(Date createdAt){
this.createdAt = createdAt;
}
/** ?? 创建人,???? ag_po_quotation_tax.created_by */
@Column(name="created_by")
public Long getCreatedBy(){
return this.createdBy;
}
/** ?? 创建人,???? ag_po_quotation_tax.created_by */
public void setCreatedBy(Long createdBy){
this.createdBy = createdBy;
}
/** ?? 修改时间,???? ag_po_quotation_tax.updated_at */
@Column(name="updated_at")
public Date getUpdatedAt(){
return this.updatedAt;
}
/** ?? 修改时间,???? ag_po_quotation_tax.updated_at */
public void setUpdatedAt(Date updatedAt){
this.updatedAt = updatedAt;
}
/** ?? 修改人,???? ag_po_quotation_tax.updated_by */
@Column(name="updated_by")
public Long getUpdatedBy(){
return this.updatedBy;
}
/** ?? 修改人,???? ag_po_quotation_tax.updated_by */
public void setUpdatedBy(Long updatedBy){
this.updatedBy = updatedBy;
}
}
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.nondependency" value=""/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>ajb-car-jpa</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.springframework.ide.eclipse.core.springbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.springframework.ide.eclipse.core.springnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
</natures>
</projectDescription>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding/<project>=UTF-8
encoding/pom.xml=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.6
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.6
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="ajb-car-jpa">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
</wb-module>
</project-modules>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<installed facet="cloudfoundry.standalone.app" version="1.0"/>
<installed facet="jst.utility" version="1.0"/>
<installed facet="java" version="1.6"/>
</faceted-project>
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ajb-car</groupId>
<artifactId>ajb-car</artifactId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<artifactId>ajb-car-jpa</artifactId>
<name>ajb-car-jpa</name>
<url>http://maven.apache.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-car-vo</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-car-entity</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ajb-car</groupId>
<artifactId>ajb-common-utils</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<!-- SpringBoot Web 依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- SpringBoot jpa -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<!--spring boot 配置处理器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
</dependency>
<!-- Spring session redis -->
<!--
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session</artifactId>
</dependency>
-->
<!-- log 默认logback-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
<!-- mysql 驱动 -->
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
<!-- druid 连接池 -->
<!-- https://mvnrepository.com/artifact/com.alibaba/druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
</dependency>
<dependency>
<groupId>com.googlecode.log4jdbc</groupId>
<artifactId>log4jdbc</artifactId>
<version>1.2</version>
</dependency>
<!--
<dependency>
<groupId>org.kie.modules</groupId>
<artifactId>org-apache-commons-httpclient</artifactId>
<version>6.2.0.CR2</version>
</dependency>
-->
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-io</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<!-- <version>4.5.3</version> -->
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
<!-- <version>4.4.6</version> -->
</dependency>
<dependency>
<groupId>com.swetake.util</groupId>
<artifactId>Qrcode</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-core</artifactId>
<version>3.2.3</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dysmsapi</artifactId>
<version>3.2.3</version>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>aliyun-java-sdk-dm</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<!-- <version>1.5.3</version> -->
</dependency>
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<!-- <version>1.6.2</version> -->
</dependency>
<dependency>
<groupId>org.apache.poi</groupId>
<artifactId>poi-ooxml</artifactId>
<version>3.9</version>
</dependency>
</dependencies>
</project>
package com.ajb.car.metadata.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.meta.AgMdCode;
@Repository
public interface AgMdCodeRepository extends JpaRepository<AgMdCode, Long>,JpaSpecificationExecutor<AgMdCode> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgMdCode> findAll();
@Query(value="SELECT * from ag_md_code where code_type = ?1 limit 1 ", nativeQuery=true)
AgMdCode getCodeByType(String type);
}
\ No newline at end of file
package com.ajb.car.metadata.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.meta.AgMdCodeType;
@Repository
public interface AgMdCodeTypeRepository extends JpaRepository<AgMdCodeType, Long>,JpaSpecificationExecutor<AgMdCodeType> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgMdCodeType> findAll();
}
\ No newline at end of file
package com.ajb.car.metadata.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.meta.AgMdCode;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgMdCodeService {
AgMdCode save(AgMdCode agmdcode);
Boolean delete (Long id);
AgMdCode update(AgMdCode agmdcode);
AgMdCode findById(Long id);
Page<AgMdCode> findByObjPageable(AgMdCode agmdcode,Pageable pageable);
List<AgMdCode> findByObjSortable(AgMdCode agmdcode,Sort sort);
AgMdCode getCodeByType(String type);
}
\ No newline at end of file
package com.ajb.car.metadata.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.meta.AgMdCodeType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgMdCodeTypeService {
AgMdCodeType save(AgMdCodeType agmdcodetype);
Boolean delete (Long id);
AgMdCodeType update(AgMdCodeType agmdcodetype);
AgMdCodeType findById(Long id);
Page<AgMdCodeType> findByObjPageable(AgMdCodeType agmdcodetype,Pageable pageable);
List<AgMdCodeType> findByObjSortable(AgMdCodeType agmdcodetype,Sort sort);
}
\ No newline at end of file
package com.ajb.car.metadata.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.meta.AgMdCode;
import com.ajb.common.utils.cache.SystemCacheManager;
import net.sf.ehcache.Cache;
import net.sf.ehcache.Element;
@Service("systemConfigService")
@org.springframework.core.annotation.Order(1)
public class SystemConfigService implements CommandLineRunner{
private static Cache systemConfigCache = SystemCacheManager.getCache("systemConfigCache");
@Autowired
private AgMdCodeService mdCodeService;
/**
* 根据配置类型去获取相应配置
* @param configType
* @return
*/
public String getSingleConfigValue(String configType){
String configValue = null;
Element element = systemConfigCache.get(configType);
if(element != null && element.getObjectValue() != null){
configValue = (String)element.getObjectValue();
}else{
AgMdCode mdCode = new AgMdCode();
mdCode.setCodeType(configType);
mdCode.setIsActive(1);
// System.out.println("------------------------------查询"+configType+"并放入缓存");
List<AgMdCode> mdCodeList = mdCodeService.findByObjSortable(mdCode, null);
if(mdCodeList != null && mdCodeList.size()>0){
mdCode = mdCodeList.get(0);
configValue = mdCode.getCodeCode();
element = new Element(configType,configValue);
systemConfigCache.put(element);
}
}
return configValue;
}
/**
* 慎用!以免出现和keyValueMap中的key冲突,导致转换异常。
* 建议使用getKeyValueMap来替代此方法
* @param configType
* @return
*/
@SuppressWarnings("unchecked")
public List<String> getListConfigValue(String configType){
List<String> configValues = null;
Element element = systemConfigCache.get(configType);
if(element != null && element.getObjectValue() != null){
configValues = (List<String>)element.getObjectValue();
}else{
AgMdCode mdCode = new AgMdCode();
mdCode.setCodeType(configType);
mdCode.setIsActive(1);
List<AgMdCode> mdCodeList = mdCodeService.findByObjSortable(mdCode, null);
if(mdCodeList != null && mdCodeList.size()>0){
configValues = new ArrayList<String>();
for(AgMdCode md : mdCodeList){
configValues.add(md.getCodeCode());
}
element = new Element(configType,configValues);
systemConfigCache.put(element);
}
}
return configValues;
}
@Override
public void run(String... args) throws Exception {
// TODO Auto-generated method stub
}
}
package com.ajb.car.metadata.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.meta.AgMdCode;
import com.ajb.car.metadata.repositories.AgMdCodeRepository;
import com.ajb.car.metadata.service.AgMdCodeService;
@Service("agMdCodeService")
public class AgMdCodeServiceImpl implements AgMdCodeService{
@Autowired
private AgMdCodeRepository agMdCodeRepo;
public AgMdCode save(AgMdCode obj){
return agMdCodeRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agMdCodeRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgMdCode update(AgMdCode obj) {
return agMdCodeRepo.saveAndFlush(obj);
}
public AgMdCode findById(Long id){
return agMdCodeRepo.findOne(id);
}
public Page<AgMdCode> findByObjPageable(AgMdCode obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgMdCode> ex = Example.of(obj, matcher);
return agMdCodeRepo.findAll(ex,pageable);
}
public List<AgMdCode> findByObjSortable(AgMdCode obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgMdCode> ex = Example.of(obj, matcher);
return agMdCodeRepo.findAll(ex,sort);
}
@Override
public AgMdCode getCodeByType(String type) {
// TODO Auto-generated method stub
return agMdCodeRepo.getCodeByType(type);
}
}
\ No newline at end of file
package com.ajb.car.metadata.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.meta.AgMdCodeType;
import com.ajb.car.metadata.repositories.AgMdCodeTypeRepository;
import com.ajb.car.metadata.service.AgMdCodeTypeService;
@Service("agMdCodeTypeService")
public class AgMdCodeTypeServiceImpl implements AgMdCodeTypeService{
@Autowired
private AgMdCodeTypeRepository agMdCodeTypeRepo;
public AgMdCodeType save(AgMdCodeType obj){
return agMdCodeTypeRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agMdCodeTypeRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgMdCodeType update(AgMdCodeType obj) {
return agMdCodeTypeRepo.saveAndFlush(obj);
}
public AgMdCodeType findById(Long id){
return agMdCodeTypeRepo.findOne(id);
}
public Page<AgMdCodeType> findByObjPageable(AgMdCodeType obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgMdCodeType> ex = Example.of(obj, matcher);
return agMdCodeTypeRepo.findAll(ex,pageable);
}
public List<AgMdCodeType> findByObjSortable(AgMdCodeType obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgMdCodeType> ex = Example.of(obj, matcher);
return agMdCodeTypeRepo.findAll(ex,sort);
}
}
\ No newline at end of file
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotationConfirm;
@Repository
public interface AgPoQuotationConfirmRepository extends JpaRepository<AgPoQuotationConfirm, Long>,JpaSpecificationExecutor<AgPoQuotationConfirm> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotationConfirm> findAll();
}
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotationCover;
@Repository
public interface AgPoQuotationCoverRepository extends JpaRepository<AgPoQuotationCover, Long>,JpaSpecificationExecutor<AgPoQuotationCover> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotationCover> findAll();
}
\ No newline at end of file
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotation;
@Repository
public interface AgPoQuotationRepository extends JpaRepository<AgPoQuotation, Long>,JpaSpecificationExecutor<AgPoQuotation> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotation> findAll();
@Query(value="select * from ag_po_quotation t where quote_no=?1 ", nativeQuery=true)
AgPoQuotation findByQuoteNo(String quoteNo);
}
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotationTax;
@Repository
public interface AgPoQuotationTaxRepository extends JpaRepository<AgPoQuotationTax, Long>,JpaSpecificationExecutor<AgPoQuotationTax> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotationTax> findAll();
}
\ No newline at end of file
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotationVehicleRelation;
@Repository
public interface AgPoQuotationVehicleRelationRepository extends JpaRepository<AgPoQuotationVehicleRelation, Long>,JpaSpecificationExecutor<AgPoQuotationVehicleRelation> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotationVehicleRelation> findAll();
}
\ No newline at end of file
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.quotation.AgPoQuotationVehicle;
@Repository
public interface AgPoQuotationVehicleRepository extends JpaRepository<AgPoQuotationVehicle, Long>,JpaSpecificationExecutor<AgPoQuotationVehicle> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgPoQuotationVehicle> findAll();
}
\ No newline at end of file
package com.ajb.car.quotation.repositories;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.ajb.car.entity.apimessage.AgTransVehicleMsgOrigin;
@Repository
public interface AgTransVehicleMsgOriginRepository extends JpaRepository<AgTransVehicleMsgOrigin, Long>,JpaSpecificationExecutor<AgTransVehicleMsgOrigin> {
/***
* mock find 10
*/
@Query(value="select * from ${context.tableName} t limit 10 ", nativeQuery=true)
List<AgTransVehicleMsgOrigin> findAll();
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.quotation.AgPoQuotationConfirm;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgPoQuotationConfirmService {
AgPoQuotationConfirm save(AgPoQuotationConfirm agpoquotationconfirm);
Boolean delete (Long id);
AgPoQuotationConfirm update(AgPoQuotationConfirm agpoquotationconfirm);
AgPoQuotationConfirm findById(Long id);
Page<AgPoQuotationConfirm> findByObjPageable(AgPoQuotationConfirm agpoquotationconfirm,Pageable pageable);
List<AgPoQuotationConfirm> findByObjSortable(AgPoQuotationConfirm agpoquotationconfirm,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.quotation.AgPoQuotationCover;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgPoQuotationCoverService {
AgPoQuotationCover save(AgPoQuotationCover agpoquotationcover);
Boolean delete (Long id);
AgPoQuotationCover update(AgPoQuotationCover agpoquotationcover);
AgPoQuotationCover findById(Long id);
Page<AgPoQuotationCover> findByObjPageable(AgPoQuotationCover agpoquotationcover,Pageable pageable);
List<AgPoQuotationCover> findByObjSortable(AgPoQuotationCover agpoquotationcover,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.ajb.car.entity.quotation.AgPoQuotation;
public interface AgPoQuotationService {
AgPoQuotation save(AgPoQuotation agpoquotation);
Boolean delete (Long id);
AgPoQuotation update(AgPoQuotation agpoquotation);
AgPoQuotation findById(Long id);
Page<AgPoQuotation> findByObjPageable(AgPoQuotation agpoquotation,Pageable pageable);
/**** 下面是自定义方法 ****/
/**
* 按交易号 和 请求或响应 查询
* @param tranNo
* @param inOrout
* @return
*/
public AgPoQuotation findByQuoteNo(String quoteNo);
}
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.quotation.AgPoQuotationTax;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgPoQuotationTaxService {
AgPoQuotationTax save(AgPoQuotationTax agpoquotationtax);
Boolean delete (Long id);
AgPoQuotationTax update(AgPoQuotationTax agpoquotationtax);
AgPoQuotationTax findById(Long id);
Page<AgPoQuotationTax> findByObjPageable(AgPoQuotationTax agpoquotationtax,Pageable pageable);
List<AgPoQuotationTax> findByObjSortable(AgPoQuotationTax agpoquotationtax,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.quotation.AgPoQuotationVehicleRelation;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgPoQuotationVehicleRelationService {
AgPoQuotationVehicleRelation save(AgPoQuotationVehicleRelation agpoquotationvehiclerelation);
Boolean delete (Long id);
AgPoQuotationVehicleRelation update(AgPoQuotationVehicleRelation agpoquotationvehiclerelation);
AgPoQuotationVehicleRelation findById(Long id);
Page<AgPoQuotationVehicleRelation> findByObjPageable(AgPoQuotationVehicleRelation agpoquotationvehiclerelation,Pageable pageable);
List<AgPoQuotationVehicleRelation> findByObjSortable(AgPoQuotationVehicleRelation agpoquotationvehiclerelation,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import com.ajb.car.entity.quotation.AgPoQuotationVehicle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
public interface AgPoQuotationVehicleService {
AgPoQuotationVehicle save(AgPoQuotationVehicle agpoquotationvehicle);
Boolean delete (Long id);
AgPoQuotationVehicle update(AgPoQuotationVehicle agpoquotationvehicle);
AgPoQuotationVehicle findById(Long id);
Page<AgPoQuotationVehicle> findByObjPageable(AgPoQuotationVehicle agpoquotationvehicle,Pageable pageable);
List<AgPoQuotationVehicle> findByObjSortable(AgPoQuotationVehicle agpoquotationvehicle,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service;
import java.util.List;
import org.springframework.data.domain.Sort;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import com.ajb.car.entity.apimessage.AgTransVehicleMsgOrigin;
public interface AgTransVehicleMsgOriginService {
AgTransVehicleMsgOrigin save(AgTransVehicleMsgOrigin agtransvehiclemsgorigin);
Boolean delete (Long id);
AgTransVehicleMsgOrigin update(AgTransVehicleMsgOrigin agtransvehiclemsgorigin);
AgTransVehicleMsgOrigin findById(Long id);
Page<AgTransVehicleMsgOrigin> findByObjPageable(AgTransVehicleMsgOrigin agtransvehiclemsgorigin,Pageable pageable);
List<AgTransVehicleMsgOrigin> findByObjSortable(AgTransVehicleMsgOrigin agtransvehiclemsgorigin,Sort sort);
}
\ No newline at end of file
package com.ajb.car.quotation.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.quotation.AgPoQuotationConfirm;
import com.ajb.car.quotation.repositories.AgPoQuotationConfirmRepository;
import com.ajb.car.quotation.service.AgPoQuotationConfirmService;
@Service("agPoQuotationConfirmService")
public class AgPoQuotationConfirmServiceImpl implements AgPoQuotationConfirmService{
@Autowired
private AgPoQuotationConfirmRepository agPoQuotationConfirmRepo;
public AgPoQuotationConfirm save(AgPoQuotationConfirm obj){
return agPoQuotationConfirmRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agPoQuotationConfirmRepo.delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgPoQuotationConfirm update(AgPoQuotationConfirm obj) {
return agPoQuotationConfirmRepo.saveAndFlush(obj);
}
public AgPoQuotationConfirm findById(Long id){
return agPoQuotationConfirmRepo.findOne(id);
}
public Page<AgPoQuotationConfirm> findByObjPageable(AgPoQuotationConfirm obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationConfirm> ex = Example.of(obj, matcher);
return agPoQuotationConfirmRepo.findAll(ex,pageable);
}
public List<AgPoQuotationConfirm> findByObjSortable(AgPoQuotationConfirm obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationConfirm> ex = Example.of(obj, matcher);
return agPoQuotationConfirmRepo.findAll(ex,sort);
}
}
\ No newline at end of file
package com.ajb.car.quotation.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.quotation.AgPoQuotationCover;
import com.ajb.car.quotation.repositories.AgPoQuotationCoverRepository;
import com.ajb.car.quotation.service.AgPoQuotationCoverService;
@Service("agPoQuotationCoverService")
public class AgPoQuotationCoverServiceImpl implements AgPoQuotationCoverService{
@Autowired
private AgPoQuotationCoverRepository agPoQuotationCoverRepo;
public AgPoQuotationCover save(AgPoQuotationCover obj){
return agPoQuotationCoverRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agPoQuotationCoverRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgPoQuotationCover update(AgPoQuotationCover obj) {
return agPoQuotationCoverRepo.saveAndFlush(obj);
}
public AgPoQuotationCover findById(Long id){
return agPoQuotationCoverRepo.findOne(id);
}
public Page<AgPoQuotationCover> findByObjPageable(AgPoQuotationCover obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationCover> ex = Example.of(obj, matcher);
return agPoQuotationCoverRepo.findAll(ex,pageable);
}
public List<AgPoQuotationCover> findByObjSortable(AgPoQuotationCover obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationCover> ex = Example.of(obj, matcher);
return agPoQuotationCoverRepo.findAll(ex,sort);
}
}
\ No newline at end of file
package com.ajb.car.quotation.service.impl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.quotation.AgPoQuotation;
import com.ajb.car.quotation.repositories.AgPoQuotationRepository;
import com.ajb.car.quotation.service.AgPoQuotationService;
@Service("agPoQuotationService")
public class AgPoQuotationServiceImpl implements AgPoQuotationService{
@Autowired
private AgPoQuotationRepository agPoQuotationRepo;
public AgPoQuotation save(AgPoQuotation obj){
return agPoQuotationRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agPoQuotationRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgPoQuotation update(AgPoQuotation obj) {
return agPoQuotationRepo.saveAndFlush(obj);
}
public AgPoQuotation findById(Long id){
return agPoQuotationRepo.findOne(id);
}
public Page<AgPoQuotation> findByObjPageable(AgPoQuotation obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotation> ex = Example.of(obj, matcher);
return agPoQuotationRepo.findAll(ex,pageable);
}
@Override
public AgPoQuotation findByQuoteNo(String quoteNo) {
// TODO Auto-generated method stub
return agPoQuotationRepo.findByQuoteNo(quoteNo);
}
}
\ No newline at end of file
package com.ajb.car.quotation.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.quotation.AgPoQuotationTax;
import com.ajb.car.quotation.repositories.AgPoQuotationTaxRepository;
import com.ajb.car.quotation.service.AgPoQuotationTaxService;
@Service("agPoQuotationTaxService")
public class AgPoQuotationTaxServiceImpl implements AgPoQuotationTaxService{
@Autowired
private AgPoQuotationTaxRepository agPoQuotationTaxRepo;
public AgPoQuotationTax save(AgPoQuotationTax obj){
return agPoQuotationTaxRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agPoQuotationTaxRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgPoQuotationTax update(AgPoQuotationTax obj) {
return agPoQuotationTaxRepo.saveAndFlush(obj);
}
public AgPoQuotationTax findById(Long id){
return agPoQuotationTaxRepo.findOne(id);
}
public Page<AgPoQuotationTax> findByObjPageable(AgPoQuotationTax obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationTax> ex = Example.of(obj, matcher);
return agPoQuotationTaxRepo.findAll(ex,pageable);
}
public List<AgPoQuotationTax> findByObjSortable(AgPoQuotationTax obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationTax> ex = Example.of(obj, matcher);
return agPoQuotationTaxRepo.findAll(ex,sort);
}
}
\ No newline at end of file
package com.ajb.car.quotation.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.ExampleMatcher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.stereotype.Service;
import com.ajb.car.entity.quotation.AgPoQuotationVehicleRelation;
import com.ajb.car.quotation.repositories.AgPoQuotationVehicleRelationRepository;
import com.ajb.car.quotation.service.AgPoQuotationVehicleRelationService;
@Service("agPoQuotationVehicleRelationService")
public class AgPoQuotationVehicleRelationServiceImpl implements AgPoQuotationVehicleRelationService{
@Autowired
private AgPoQuotationVehicleRelationRepository agPoQuotationVehicleRelationRepo;
public AgPoQuotationVehicleRelation save(AgPoQuotationVehicleRelation obj){
return agPoQuotationVehicleRelationRepo.save(obj);
}
public Boolean delete(Long id) {
try {
agPoQuotationVehicleRelationRepo .delete(id);
} catch (Exception e) {
return false;
}
return true;
}
public AgPoQuotationVehicleRelation update(AgPoQuotationVehicleRelation obj) {
return agPoQuotationVehicleRelationRepo.saveAndFlush(obj);
}
public AgPoQuotationVehicleRelation findById(Long id){
return agPoQuotationVehicleRelationRepo.findOne(id);
}
public Page<AgPoQuotationVehicleRelation> findByObjPageable(AgPoQuotationVehicleRelation obj,Pageable pageable){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationVehicleRelation> ex = Example.of(obj, matcher);
return agPoQuotationVehicleRelationRepo.findAll(ex,pageable);
}
public List<AgPoQuotationVehicleRelation> findByObjSortable(AgPoQuotationVehicleRelation obj,Sort sort){
ExampleMatcher matcher = ExampleMatcher.matching();
Example<AgPoQuotationVehicleRelation> ex = Example.of(obj, matcher);
return agPoQuotationVehicleRelationRepo.findAll(ex,sort);
}
}
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment