连接两个数据库进行同步数据,并且保持事务一致性
parent
a59b5d384c
commit
d7b128f6eb
@ -1,23 +0,0 @@
|
||||
# Compiled class file
|
||||
*.class
|
||||
|
||||
# Log file
|
||||
*.log
|
||||
|
||||
# BlueJ files
|
||||
*.ctxt
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.nar
|
||||
*.ear
|
||||
*.zip
|
||||
*.tar.gz
|
||||
*.rar
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="dataSourceStorageLocal" created-in="IU-233.15026.9">
|
||||
<data-source name="10.15.0.12" uuid="6bc743a1-1925-46b3-8cd4-b2cc4ecd2177">
|
||||
<database-info product="" version="" jdbc-version="" driver-name="" driver-version="" dbms="ORACLE" />
|
||||
<secret-storage>master_key</secret-storage>
|
||||
<user-name>nmgjtjt</user-name>
|
||||
<schema-mapping />
|
||||
<load-sources>user_and_system_sources</load-sources>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="DataSourceManagerImpl" format="xml" multifile-model="true">
|
||||
<data-source source="LOCAL" name="10.15.0.12" uuid="6bc743a1-1925-46b3-8cd4-b2cc4ecd2177">
|
||||
<driver-ref>oracle.19</driver-ref>
|
||||
<synchronize>true</synchronize>
|
||||
<auto-commit>false</auto-commit>
|
||||
<jdbc-driver>oracle.jdbc.OracleDriver</jdbc-driver>
|
||||
<jdbc-url>jdbc:oracle:thin:@10.15.0.12:1521:ORAL</jdbc-url>
|
||||
<jdbc-additional-properties>
|
||||
<property name="com.intellij.clouds.kubernetes.db.host.port" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.enabled" value="false" />
|
||||
<property name="com.intellij.clouds.kubernetes.db.container.port" />
|
||||
</jdbc-additional-properties>
|
||||
<working-dir>$ProjectFileDir$</working-dir>
|
||||
</data-source>
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding">
|
||||
<file url="file://$PROJECT_DIR$/src/main/java" charset="UTF-8" />
|
||||
</component>
|
||||
</project>
|
||||
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="MavenProjectsManager">
|
||||
<option name="originalFiles">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/pom.xml" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8 (2)" project-jdk-type="JavaSDK" />
|
||||
</project>
|
||||
@ -0,0 +1,124 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Palette2">
|
||||
<group name="Swing">
|
||||
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
|
||||
</item>
|
||||
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
|
||||
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
|
||||
<initial-values>
|
||||
<property name="text" value="Button" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="RadioButton" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="CheckBox" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
|
||||
<initial-values>
|
||||
<property name="text" value="Label" />
|
||||
</initial-values>
|
||||
</item>
|
||||
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
|
||||
<preferred-size width="150" height="-1" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
|
||||
<preferred-size width="150" height="50" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
|
||||
<preferred-size width="200" height="200" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
|
||||
</item>
|
||||
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
|
||||
<preferred-size width="-1" height="20" />
|
||||
</default-constraints>
|
||||
</item>
|
||||
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
|
||||
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
|
||||
</item>
|
||||
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
|
||||
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
|
||||
</item>
|
||||
</group>
|
||||
</component>
|
||||
</project>
|
||||
@ -1,192 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id="$MODULE_DIR$/pom.xml" external.system.module.type="SINGLE_MODULE" external.system.module.version="223-2" org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule="true" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet external-system-id="Maven" type="web" name="Web">
|
||||
<configuration>
|
||||
<webroots>
|
||||
<root url="file://$MODULE_DIR$/src/main/webapp" relative="/" />
|
||||
</webroots>
|
||||
<sourceRoots>
|
||||
<root url="file://$MODULE_DIR$/src/main/java" />
|
||||
<root url="file://$MODULE_DIR$/src/main/resources" />
|
||||
</sourceRoots>
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="Spring" name="Spring">
|
||||
<configuration />
|
||||
</facet>
|
||||
</component>
|
||||
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8">
|
||||
<output url="file://$MODULE_DIR$/target/classes" />
|
||||
<output-test url="file://$MODULE_DIR$/target/test-classes" />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/target" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-web:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-logging:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-classic:1.2.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: ch.qos.logback:logback-core:1.2.12" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-to-slf4j:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.logging.log4j:log4j-api:2.17.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:jul-to-slf4j:1.7.36" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.annotation:jakarta.annotation-api:1.3.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.yaml:snakeyaml:1.30" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-json:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jdk8:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.module:jackson-module-parameter-names:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-web:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-beans:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-webmvc:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-aop:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-expression:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-websocket:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-messaging:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.projectlombok:lombok:1.18.26" level="project" />
|
||||
<orderEntry type="library" scope="PROVIDED" name="Maven: javax.servlet:javax.servlet-api:4.0.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: mysql:mysql-connector-java:8.0.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.google.protobuf:protobuf-java:3.11.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.oracle:ojdbc6:11.2.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.github.yedaxia:japidocs:1.4.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.javaparser:javaparser-core:3.6.16" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.freemarker:freemarker:2.3.32" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-boot-starter:3.5.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus:3.5.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-autoconfigure:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-jdbc:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:HikariCP:4.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-extension:3.5.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-core:3.5.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.baomidou:mybatis-plus-annotation:3.5.3.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jsqlparser:jsqlparser:4.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis:3.5.10" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mybatis:mybatis-spring:2.0.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.jeffreyning:mybatisplus-plus:1.7.3-RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.microsoft:sqljdbc4:3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.auth0:java-jwt:4.3.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-databind:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-annotations:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.jackson.core:jackson-core:2.13.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.enc:EndPassJava:1.0.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-lang3:3.12.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-jdbc:2.7.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-core:2.7.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jcl:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jdbc:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-tx:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:fastjson:2.0.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2-extension:2.0.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba.fastjson2:fastjson2:2.0.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-codec:commons-codec:1.15" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.dm:DmJdbcDriver18:1.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: cn.hutool:hutool-all:5.8.25" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.hibernate.validator:hibernate-validator:6.2.0.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: jakarta.validation:jakarta.validation-api:2.0.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.jboss.logging:jboss-logging:3.4.3.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml:classmate:1.5.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.tetragramato:custom-spring-boot-resttemplate:1.0.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-spring-boot-starter-jaxws:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-spring-boot-autoconfigure:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-transports-http:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-core:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.fasterxml.woodstox:woodstox-core:5.0.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.codehaus.woodstox:stax2-api:3.1.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.ws.xmlschema:xmlschema-core:2.2.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-jaxws:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: xml-resolver:xml-resolver:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ow2.asm:asm:5.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-soap:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-wsdl:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-databinding-jaxb:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-bindings-xml:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-frontend-simple:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-addr:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.cxf:cxf-rt-ws-policy:3.2.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.neethi:neethi:3.1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.validation:validation-api:2.0.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-ws:1.3.3.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-jms:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-oxm:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.ws:spring-ws-core:3.1.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.ws:spring-xml:3.1.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.ws:spring-ws-support:3.1.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.sun.mail:javax.mail:1.6.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.activation:activation:1.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: wsdl4j:wsdl4j:1.6.3" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-websocket:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-core:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-websocket:9.0.80" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat.embed:tomcat-embed-core:9.0.74" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.tomcat:tomcat-annotations-api:9.0.74" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:easyexcel:3.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:easyexcel-core:3.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.alibaba:easyexcel-support:3.3.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-collections4:4.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-math3:3.6.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.zaxxer:SparseBitSet:1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-compress:1.19" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.virtuald:curvesapi:1.06" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.poi:poi-ooxml-schemas:4.1.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.xmlbeans:xmlbeans:3.1.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-csv:1.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.ehcache:ehcache:3.10.8" level="project" />
|
||||
<orderEntry type="library" name="Maven: javax.cache:cache-api:1.1.1" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.glassfish.jaxb:jaxb-runtime:2.3.8" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: jakarta.xml.bind:jakarta.xml.bind-api:2.3.3" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: org.glassfish.jaxb:txw2:2.3.8" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.istack:istack-commons-runtime:3.0.12" level="project" />
|
||||
<orderEntry type="library" scope="RUNTIME" name="Maven: com.sun.activation:jakarta.activation:1.2.2" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.slf4j:slf4j-api:1.7.36" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-openapi2-spring-boot-starter:4.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-core:4.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: com.github.xiaoymin:knife4j-openapi2-ui:4.4.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.javassist:javassist:3.25.0-GA" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger2:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spi:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-core:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: net.bytebuddy:byte-buddy:1.12.23" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-schema:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-swagger-common:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-web:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.github.classgraph:classgraph:4.1.7" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-core:2.0.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.plugin:spring-plugin-metadata:2.0.0.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.mapstruct:mapstruct:1.3.1.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-models:1.6.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.swagger:swagger-annotations:1.6.6" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-bean-validators:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.springfox:springfox-spring-webmvc:2.10.5" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.session:spring-session-data-redis:2.7.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-redis:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-keyvalue:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.data:spring-data-commons:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework:spring-context-support:5.3.27" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.springframework.boot:spring-boot-starter-data-redis:2.7.11" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.lettuce:lettuce-core:6.1.10.RELEASE" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-common:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-handler:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-resolver:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-buffer:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-transport-native-unix-common:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-codec:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.netty:netty-transport:4.1.91.Final" level="project" />
|
||||
<orderEntry type="library" name="Maven: io.projectreactor:reactor-core:3.4.29" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.reactivestreams:reactive-streams:1.0.4" level="project" />
|
||||
<orderEntry type="library" name="Maven: redis.clients:jedis:3.8.0" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.commons:commons-pool2:2.11.1" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpclient:4.5.14" level="project" />
|
||||
<orderEntry type="library" name="Maven: org.apache.httpcomponents:httpcore:4.4.16" level="project" />
|
||||
<orderEntry type="library" name="Maven: commons-io:commons-io:2.4" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
@ -1,201 +0,0 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
@ -1,37 +0,0 @@
|
||||
# IntegralManager
|
||||
|
||||
#### 介绍
|
||||
天润科丰小程序后台接口
|
||||
|
||||
#### 软件架构
|
||||
采用springbbot +mybatisplus +tomcat +负载均衡
|
||||
|
||||
|
||||
#### 安装教程
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 使用说明
|
||||
|
||||
1. xxxx
|
||||
2. xxxx
|
||||
3. xxxx
|
||||
|
||||
#### 参与贡献
|
||||
|
||||
1. Fork 本仓库
|
||||
2. 新建 Feat_xxx 分支
|
||||
3. 提交代码
|
||||
4. 新建 Pull Request
|
||||
|
||||
|
||||
#### 特技
|
||||
|
||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
||||
2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com)
|
||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目
|
||||
4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
|
||||
5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
||||
6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
||||
@ -0,0 +1,46 @@
|
||||
package com.nmgs.common;
|
||||
|
||||
import com.nmgs.config.ResultData;
|
||||
import com.nmgs.util.LogUtil;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.ExceptionHandler;
|
||||
import org.springframework.web.bind.annotation.ResponseStatus;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
@Slf4j
|
||||
@RestControllerAdvice
|
||||
public class GlobalExceptionHandler {
|
||||
|
||||
@ExceptionHandler(DataAccessException.class)
|
||||
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
public ResultData<String> handleDataAccessException(DataAccessException e) {
|
||||
LogUtil.WriteLog_Error("数据库操作失败:" + e.getMessage(),"GlobalExceptionHandler");
|
||||
return ResultData.fail("数据库操作失败" );
|
||||
}
|
||||
|
||||
@ExceptionHandler(SQLException.class)
|
||||
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
public ResultData<String> handleSQLException(SQLException e) {
|
||||
LogUtil.WriteLog_Error("数据库SQL执行失败:" + e.getMessage(),"GlobalExceptionHandler");
|
||||
return ResultData.fail("数据库SQL执行失败");
|
||||
}
|
||||
|
||||
@ExceptionHandler(IllegalArgumentException.class)
|
||||
@ResponseStatus(HttpStatus.BAD_REQUEST)
|
||||
public ResultData<String> handleIllegalArgumentException(IllegalArgumentException e) {
|
||||
LogUtil.WriteLog_Error("参数错误:" + e.getMessage(),"GlobalExceptionHandler");
|
||||
return ResultData.fail("参数错误" );
|
||||
}
|
||||
|
||||
@ExceptionHandler(Exception.class)
|
||||
@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)
|
||||
public ResultData<String> handleGenericException(Exception e) {
|
||||
LogUtil.WriteLog_Error("服务器内部错误:" + e.getMessage(),"GlobalExceptionHandler");
|
||||
return ResultData.fail("服务器内部错误" );
|
||||
}
|
||||
}
|
||||
@ -1,17 +0,0 @@
|
||||
package com.nmgs.controller;
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.PostConstruct;
|
||||
|
||||
@Component
|
||||
@Api(tags = "项目启动初始化")
|
||||
public class InitController {
|
||||
|
||||
@PostConstruct
|
||||
public void init() {
|
||||
// 初始化代码
|
||||
System.out.println("初始化方法被调用");
|
||||
}
|
||||
}
|
||||
@ -1,71 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.IntegrationList;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface IntegrationListMapper extends MppBaseMapper<IntegrationList> {
|
||||
|
||||
|
||||
/**
|
||||
* 获取用户增加积分清单
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<IntegrationList> getUserAddIntegation(@Param("params") Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取用户消费积分清单
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<IntegrationList> getUserPayIntegation(@Param("params") Map<String, Object> params);
|
||||
|
||||
Integer getMaxId();
|
||||
|
||||
/**
|
||||
* 获取每日积分增长量
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getIntegrationGrowTotal(@Param("params")Map<String, Object> param);
|
||||
|
||||
/**
|
||||
* 获取车辆积分增长量排名前十
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getCarIntegrationGrowTotal(@Param("params")Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取月增长积分、消费积分
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Map<String, Object> getMonthFeeTotal(@Param("params")Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 消费积分分类占比
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getFeeTypeTotal(@Param("params")Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 根据日期获取排名积分奖励情况
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<IntegrationList> getAMEScoreByTime(@Param("params") Map<String, Object> params);
|
||||
|
||||
@Select("select max(list.TOTALADDINTEGRATION) from INTEGRATION_LIST_TABLE list where list.USERID = #{id}")
|
||||
BigDecimal getTotalAddIntegrationByUserId(@Param("id")Integer id);
|
||||
}
|
||||
@ -1,319 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapper.IntegrationListMapper">
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID) FROM INTEGRATION_LIST_TABLE
|
||||
</select>
|
||||
|
||||
<select id="getUserAddIntegation" resultType="com.nmgs.entity.IntegrationList">
|
||||
select
|
||||
list.ID,
|
||||
list.ACARNO ,
|
||||
list.LASTINTEGRATION,
|
||||
list.PAYINTEGRATION ,
|
||||
list.RESTINTEGRATION,
|
||||
list.PAYTIME,
|
||||
case
|
||||
when list.PAYTYPE = 'P' then '加油'
|
||||
when list.PAYTYPE = 'PM' then '加油里程'
|
||||
when list.PAYTYPE = 'M' then '里程'
|
||||
else ''end as PAYTYPE
|
||||
from integration_list_table list
|
||||
<where>
|
||||
and list.PAYTYPE in ('P','PM','M')
|
||||
<!-- 车牌号查询条件 -->
|
||||
<if test="params.aCarNo != null and params.aCarNo != ''">
|
||||
<bind name="aCarNo" value="'%'+params.aCarNo+'%'"/>
|
||||
AND list.ACARNO LIKE #{aCarNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getUserPayIntegation" resultType="com.nmgs.entity.IntegrationList">
|
||||
select
|
||||
list.ID,
|
||||
list.ACARNO ,
|
||||
list.LASTINTEGRATION,
|
||||
list.PAYINTEGRATION ,
|
||||
list.RESTINTEGRATION,
|
||||
list.PAYTIME,
|
||||
case
|
||||
when list.PAYTYPE = 'C' then '餐饮消费'
|
||||
else ''end as PAYTYPE,
|
||||
area.VALUE as serviceAreaName
|
||||
from integration_list_table list
|
||||
left join cafter_table caf on caf.INTEGRATIONLISTID = list.id
|
||||
left join service_area_operators_table operation on operation.JOBNUMBER = caf.USERJOBNUMBER
|
||||
left join service_area_table area on area.ID = operation.SERVICEAREAID
|
||||
<where>
|
||||
and list.PAYTYPE in ('C')
|
||||
<!-- 车牌号查询条件 -->
|
||||
<if test="params.aCarNo != null and params.aCarNo != ''">
|
||||
<bind name="aCarNo" value="'%'+params.aCarNo+'%'"/>
|
||||
AND list.ACARNO LIKE #{aCarNo}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getIntegrationGrowTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
sum(list.PAYINTEGRATION/100.00) as TOTALCOUNT
|
||||
from INTEGRATION_LIST_TABLE list
|
||||
<where>
|
||||
and list.PAYTYPE not in ('FC','FP')
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getCarIntegrationGrowTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT RESULT.* FROM ( select
|
||||
CONCAT(SUBSTR(list.ACARNO,0,INSTR(list.ACARNO,'_')-1),CONCAT(CONCAT('(',color.TEXT),')')) as ACARNO,
|
||||
sum(list.PAYINTEGRATION/100.00) as TOTALCOUNT
|
||||
from
|
||||
integration_list_table list
|
||||
left join platecolor_text color on color.VALUE = SUBSTR(list.ACARNO,INSTR(list.ACARNO,'_')+1)
|
||||
<where>
|
||||
and list.PAYTYPE in ('AM','AP')
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY ACARNO,color.TEXT
|
||||
order by TOTALCOUNT desc) RESULT where
|
||||
ROWNUM <= 10
|
||||
</select>
|
||||
|
||||
<select id="getMonthFeeTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
sum(case when list.PAYTYPE not in ('FC','FP') then list.PAYINTEGRATION/100.00 else 0 end ) as ATOTAL,
|
||||
sum(case when list.PAYTYPE in ('FC','FP') then list.PAYINTEGRATION/100.00 else 0 end ) FTOTAL
|
||||
from
|
||||
integration_list_table list
|
||||
<where>
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="getFeeTypeTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
'FC' as PEYTYPE,
|
||||
peytype.TEXT as PEYTYPENAME,
|
||||
NVL(sum(case when list.PAYTYPE in ('FC') then list.PAYINTEGRATION/100.00 else 0 end ),0) as FTOTAL
|
||||
from
|
||||
PEYTYPE_TEXT peytype
|
||||
left join integration_list_table list on peytype.VALUE = list.PAYTYPE
|
||||
<where>
|
||||
and peytype.VALUE in ('FC')
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY peytype.VALUE,peytype.TEXT
|
||||
UNION ALL
|
||||
select
|
||||
'FP' as PEYTYPE,
|
||||
peytype.TEXT as PEYTYPENAME,
|
||||
nvl(sum(case when list.PAYTYPE in ('FP') then list.PAYINTEGRATION/100.00 else 0 end ),0) as FTOTAL
|
||||
from
|
||||
PEYTYPE_TEXT peytype
|
||||
left join integration_list_table list on peytype.VALUE = list.PAYTYPE
|
||||
<where>
|
||||
and peytype.VALUE in ('FP')
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.PAYTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.PAYTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.PAYTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY peytype.VALUE,peytype.TEXT
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getAMEScoreByTime" resultType="com.nmgs.entity.IntegrationList">
|
||||
select
|
||||
*
|
||||
from integration_list_table list
|
||||
<where>
|
||||
and list.PAYTYPE in ('AME')
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.startTime != null and params.startTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.MONTHMILEGRANTTIME >= dateadd(day,0,#{params.startTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.MONTHMILEGRANTTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.MONTHMILEGRANTTIME >= TO_DATE(#{params.startTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.MONTHMILEGRANTTIME >= STR_TO_DATE(#{params.startTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.endTime != null and params.endTime != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND list.MONTHMILEGRANTTIME < dateadd(day,0,#{params.endTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND list.MONTHMILEGRANTTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND list.MONTHMILEGRANTTIME < TO_DATE(#{params.endTime}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND list.MONTHMILEGRANTTIME < STR_TO_DATE(#{params.endTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -1,35 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.PayIntegrationNumber;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface PayIntegrationNumberMapper extends MppBaseMapper<PayIntegrationNumber> {
|
||||
|
||||
|
||||
/**
|
||||
* 获取配置信息
|
||||
* @return
|
||||
*/
|
||||
List<PayIntegrationNumber> getPayIntegrationNumberList();
|
||||
|
||||
/**
|
||||
* 获取最大id
|
||||
* @return
|
||||
*/
|
||||
Integer getMaxId();
|
||||
|
||||
|
||||
/**
|
||||
* 根据类型获取配置的积分
|
||||
* @param type
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT pay.ID,pay.VALUE,pay.type FROM pay_integration_number_table pay where pay.type=#{type}")
|
||||
PayIntegrationNumber getAuScore(@Param("type") String type);
|
||||
}
|
||||
@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapper.PayIntegrationNumberMapper">
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID) FROM pay_integration_number_table
|
||||
</select>
|
||||
|
||||
<select id="getPayIntegrationNumberList" resultType="com.nmgs.entity.PayIntegrationNumber">
|
||||
SELECT
|
||||
pay.ID,
|
||||
pay.VALUE/100.00 as VALUE,
|
||||
pay.type,
|
||||
pey.TEXT as typeName
|
||||
FROM pay_integration_number_table pay
|
||||
left join PEYTYPE_TEXT pey on pey.VALUE = pay.TYPE
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -1,60 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.ServiceArea;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface ServiceAreaMapper extends MppBaseMapper<ServiceArea> {
|
||||
/**
|
||||
* 分页查找岗位数据
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceArea> getServiceAreaList(Page<ServiceArea> page, @Param("params") Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 获取最大id
|
||||
* @return
|
||||
*/
|
||||
Integer getMaxId();
|
||||
|
||||
/**
|
||||
*获取服务区类型数据
|
||||
* @return
|
||||
*/
|
||||
List<Map<String,Object>> selectServiceTypeList();
|
||||
|
||||
/**
|
||||
*获取服务区服务种类数据
|
||||
* @return
|
||||
*/
|
||||
List<Map<String,Object>> selectServiceKindList();
|
||||
|
||||
/**
|
||||
* 根据日期获取服务器核销次数前五
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getServiceAreaCafCount(@Param("params") Map<String, Object> params);
|
||||
/**
|
||||
* 根据日期获取服务器积分消费排名
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getServiceAreaCafTotal(@Param("params")Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 服务器积分消费占比
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> getServiceAreaFee(@Param("params")Map<String, Object> params);
|
||||
}
|
||||
@ -1,236 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapper.ServiceAreaMapper">
|
||||
|
||||
<select id="getServiceAreaList" parameterType="java.util.HashMap" resultType="com.nmgs.entity.ServiceArea">
|
||||
<if test="params.DBTYPE == 1">
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
select
|
||||
area.ID,
|
||||
area.AREANAME,
|
||||
area.SERVICETYPE,
|
||||
area.SERVICEKIND,
|
||||
LISTAGG(kind.TEXT,', ') WITHIN GROUP(ORDER BY kind.VALUE) as serviceKindName,
|
||||
type.TEXT as serviceTypeName
|
||||
from
|
||||
service_area_table area
|
||||
left join service_area_kind_text kind on INSTR(area.SERVICEKIND,kind.VALUE) > 0
|
||||
left join service_area_TYPE_text type on type.VALUE = area.SERVICETYPE
|
||||
<where>
|
||||
<!-- 服务区名称 -->
|
||||
<if test="params.areaName != null and params.areaName != ''">
|
||||
<bind name="areaName" value="'%'+params.areaName+'%'"/>
|
||||
AND area.AREANAME LIKE #{areaName}
|
||||
</if>
|
||||
|
||||
<!-- 服务区类型 -->
|
||||
<if test="params.serviceType != null and params.serviceType != ''">
|
||||
AND area.SERVICETYPE = #{params.serviceType}
|
||||
</if>
|
||||
|
||||
<!-- 服务种类 -->
|
||||
<if test="params.serviceKindQuery != null ">
|
||||
and INSTR(area.SERVICEKIND,#{params.serviceKindQuery}) > 0
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY area.ID,area.AREANAME,area.SERVICETYPE,area.SERVICEKIND,type.TEXT
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
select
|
||||
area.ID,
|
||||
area.AREANAME,
|
||||
area.SERVICETYPE,
|
||||
area.SERVICEKIND,
|
||||
GROUP_CONCAT(kind.TEXT ORDER BY kind.VALUE) as serviceKindName,
|
||||
type.TEXT as serviceTypeName
|
||||
from
|
||||
service_area_table area
|
||||
left join service_area_kind_text kind on INSTR(area.SERVICEKIND,kind.VALUE) > 0
|
||||
left join service_area_TYPE_text type on type.VALUE = area.SERVICETYPE
|
||||
<where>
|
||||
<!-- 服务区名称 -->
|
||||
<if test="params.areaNameQuery != null and params.areaNameQuery != ''">
|
||||
<bind name="areaNameQuery" value="'%'+params.areaNameQuery+'%'"/>
|
||||
AND area.AREANAME LIKE #{areaNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 服务区类型 -->
|
||||
<if test="params.serviceTypeQuery != null ">
|
||||
AND area.SERVICETYPE = #{params.serviceTypeQuery}
|
||||
</if>
|
||||
|
||||
<!-- 服务种类 -->
|
||||
<if test="params.serviceKindQuery != null ">
|
||||
and INSTR(area.SERVICEKIND,#{params.serviceKindQuery}) > 0
|
||||
</if>
|
||||
</where>
|
||||
GROUP BY area.ID
|
||||
</if>
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectServiceTypeList" resultType="java.util.HashMap">
|
||||
SELECT * FROM service_area_TYPE_text sub order by sub.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectServiceKindList" resultType="java.util.HashMap">
|
||||
SELECT * FROM service_area_kind_text p order by p.VALUE
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID) FROM SERVICE_AREA_TABLE
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getServiceAreaCafCount" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT RESULT.* FROM (
|
||||
select
|
||||
area.ID as ID,
|
||||
area.AREANAME as AREANAME,
|
||||
count(caf.id) as FEECOUNT
|
||||
from service_area_table area
|
||||
left join service_area_operators_table operation on operation.SERVICEAREAID = area.ID
|
||||
left join cafter_table caf on operation.JOBNUMBER = caf.USERJOBNUMBER
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
left join WEIXN_USER_TABLE u on u.ID = caf.USERID
|
||||
left join integration_list_table list on list.ID = caf.INTEGRATIONLISTID
|
||||
GROUP BY area.ID,area.AREANAME
|
||||
order by FEECOUNT desc
|
||||
) RESULT where
|
||||
ROWNUM <= 5
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getServiceAreaCafTotal" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
SELECT RESULT.* FROM (
|
||||
select
|
||||
area.ID as ID,
|
||||
area.AREANAME as AREANAME,
|
||||
case when sum(list.PAYINTEGRATION) is not null then sum(list.PAYINTEGRATION/100.00) else 0 end as FEETOTAL
|
||||
from service_area_table area
|
||||
left join service_area_operators_table operation on operation.SERVICEAREAID = area.ID
|
||||
left join cafter_table caf on operation.JOBNUMBER = caf.USERJOBNUMBER
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
left join WEIXN_USER_TABLE u on u.ID = caf.USERID
|
||||
left join integration_list_table list on list.ID = caf.INTEGRATIONLISTID
|
||||
GROUP BY area.ID,area.AREANAME
|
||||
order by FEETOTAL desc
|
||||
) RESULT where
|
||||
ROWNUM <= 5
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="getServiceAreaFee" parameterType="java.util.HashMap" resultType="java.util.HashMap">
|
||||
select
|
||||
area.ID as ID,
|
||||
area.AREANAME as AREANAME,
|
||||
case when sum(list.PAYINTEGRATION) is not null then sum(list.PAYINTEGRATION/100.00) else 0 end as FEETOTAL
|
||||
from service_area_table area
|
||||
left join service_area_operators_table operation on operation.SERVICEAREAID = area.ID
|
||||
left join cafter_table caf on operation.JOBNUMBER = caf.USERJOBNUMBER
|
||||
<!-- 统计日期(起始)查询条件 -->
|
||||
<if test="params.classDateBeginQuery != null and params.classDateBeginQuery != ''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME >= dateadd(day,0,#{params.classDateBeginQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME >= TO_DATE(#{params.classDateBeginQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME >= STR_TO_DATE(#{params.classDateBeginQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<!-- 统计日期(终止)查询条件 -->
|
||||
<if test="params.classDateEndQuery != null and params.classDateEndQuery != '' ">
|
||||
<if test="params.DBTYPE == 1">
|
||||
AND caf.CAFTERTIME <= dateadd(day,0,#{params.classDateEndQuery})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
AND caf.CAFTERTIME <= TO_DATE(#{params.classDateEndQuery}, 'SYYYY-MM-DD HH24:MI:SS')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
AND caf.CAFTERTIME <= STR_TO_DATE(#{params.classDateEndQuery}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
left join WEIXN_USER_TABLE u on u.ID = caf.USERID
|
||||
left join integration_list_table list on list.ID = caf.INTEGRATIONLISTID
|
||||
GROUP BY area.ID,area.AREANAME
|
||||
order by FEETOTAL desc
|
||||
</select>
|
||||
</mapper>
|
||||
@ -1,30 +0,0 @@
|
||||
package com.nmgs.mapper;
|
||||
|
||||
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.ServiceAreaPic;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface ServiceAreaPicMapper extends MppBaseMapper<ServiceAreaPic> {
|
||||
|
||||
/**
|
||||
* 获取最大id
|
||||
* @return
|
||||
*/
|
||||
Integer getMaxId();
|
||||
|
||||
|
||||
@Delete("delete from service_area_pic_table where SERVICEID=#{id}")
|
||||
int deletePicByAreaId(@Param("id") Integer id);
|
||||
|
||||
@Select("select ID,SERVICEID,PICDATA from service_area_pic_table where SERVICEID=#{params.id}")
|
||||
List<ServiceAreaPic> getAreaPic(@Param("params")Map<String, Object> params);
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapper.ServiceAreaPicMapper">
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID) FROM service_area_pic_table
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,18 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface AppointmentInfoMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addAppointmentInfo(@Param("params") Map<String,Object> param);
|
||||
public int updateConpleteStatus(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.AppointmentInfoMyMapper">
|
||||
<update id="updateConpleteStatus" parameterType="java.util.HashMap">
|
||||
update APPOINTMENT_INFO_TABLE
|
||||
set COMPLETESTATUS=#{params.completeStatus}
|
||||
where ORDERID = #{params.orderId}
|
||||
</update>
|
||||
<insert id="addAppointmentInfo" parameterType="java.util.HashMap">
|
||||
insert into APPOINTMENT_INFO_TABLE(ID,USERID,ACARNO,APPOINTMENTTYPE,APPOINTMENTTIME,APPOINTMENTLINEID,
|
||||
CREATETIME,SERVICEAREAID,MEALS,MEALSCOUNT,COMPLETESTATUS,INTEGRATIONLISTID,
|
||||
SERVICEOPERATIONID,TOTALINTEGRAL,ORDERID)
|
||||
values (#{params.maxId},${params.userId},#{params.acarno},#{params.appointmenttype},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.appointtime}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.appointtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.appointtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.appointtime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.appointmentlineid},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.createtime}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.createtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.createtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.createtime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.serviceareaId},#{params.meals},#{params.mealscount},#{params.completeStatus},#{params.integrationListId},
|
||||
#{params.serviceOperationId,jdbcType=VARCHAR},#{params.totalIntegral},#{params.orderId})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,19 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface CafterTableMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addcafter(@Param("params") Map<String,Object> param);
|
||||
public int updatecafter(@Param("params") Map<String,Object> param);
|
||||
public int updatecafterConpleteStatus(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.CafterTableMyMapper">
|
||||
<update id="updatecafter" parameterType="java.util.HashMap">
|
||||
update CAFTER_TABLE
|
||||
set rollback=#{params.rollback}
|
||||
<if test="params.rollbackTime != null and params.rollbackTime !=''">
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
,ROLLBACKTIME = dateadd(day,0,#{params.rollbackTime})
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
,ROLLBACKTIME= TO_DATE(#{params.rollbackTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
,ROLLBACKTIME= TO_DATE(#{params.rollbackTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
,ROLLBACKTIME= STR_TO_DATE(#{params.rollbackTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.integralrollback != null and params.integralrollback !=''">
|
||||
,INTEGRALROLLBACK=#{params.integralrollback}
|
||||
</if>
|
||||
where ORDERID = #{params.orderId} AND USERJOBNUMBER= #{params.serverOperationId}
|
||||
</update>
|
||||
<insert id="addcafter" parameterType="java.util.HashMap">
|
||||
insert into CAFTER_TABLE(ID,
|
||||
ACARNO,
|
||||
USERID,
|
||||
CAFTERTIME,
|
||||
USERJOBNUMBER,
|
||||
TRIMINTEGRAL,
|
||||
INTEGRATIONLISTID,
|
||||
ORDERID,CONTENT) values (#{params.maxId},#{params.acarNo},#{params.userId},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.cafterTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.cafterTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.cafterTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.cafterTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.userJobnumber}, #{params.trimintegral},#{params.integrationListId},#{params.orderId},#{params.content})
|
||||
</insert>
|
||||
<update id="updatecafterConpleteStatus" parameterType="java.util.HashMap">
|
||||
update CAFTER_TABLE
|
||||
set COMPLETESTATUS=#{params.completeStatus}
|
||||
where ORDERID = #{params.orderId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,17 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegralLeavingMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralLeaving(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.IntegralLeavingMyMapper">
|
||||
|
||||
<insert id="addIntegralLeaving" parameterType="java.util.HashMap">
|
||||
insert into INTEGRAL_LEAVEMESSAGE_TABLE(ID,USERID,POSITION,MESSAGE,CREATETIME,REPLYSTATUS)
|
||||
values(#{params.maxId},(SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId}),
|
||||
#{params.positon},#{params.message},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.currentDate}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.currentDate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.currentDate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.currentDate}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.replyStatus})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,23 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegralSignMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户签到信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralSign(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 修改用户签到信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int updateIntegralSign(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.IntegralSignMyMapper">
|
||||
|
||||
<insert id="addIntegralSign" parameterType="java.util.HashMap">
|
||||
insert into INTEGRAL_SIGN_TABLE(USERID,MONTH,DAY${params.dayvalue})
|
||||
values((SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId}),
|
||||
#{params.month},'Y')
|
||||
</insert>
|
||||
<update id="updateIntegralSign" parameterType="java.util.HashMap">
|
||||
UPDATE INTEGRAL_SIGN_TABLE set Day${params.dayvalue}='Y' where USERID=(SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId})
|
||||
AND MONTH=#{params.month}
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,17 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegrationListMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户签到积分信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralList(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.IntegrationListMyMapper">
|
||||
<insert id="addIntegralList" parameterType="java.util.HashMap">
|
||||
INSERT INTO integration_list_table ( ID, USERID,ACARNO, LASTINTEGRATION, TOTALADDINTEGRATION,PAYINTEGRATION, RESTINTEGRATION,
|
||||
PAYTIME, PAYTYPE,CPENABLEINTEGRATION,OGENABLEINTEGRATION )
|
||||
values(#{params.maxid},#{params.userId},#{params.acarNo},#{params.lastintegration},#{params.totalintegration},
|
||||
#{params.payintegration},#{params.restintegration},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.payTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.payTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.payTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.payTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.paytype},#{params.cpenableintegration},#{params.ogenableintegration})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,55 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.ServiceAreaOperators;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface OperatorsMyMapper extends MppBaseMapper<ServiceAreaOperators> {
|
||||
|
||||
/**
|
||||
* 分页查询运营人员数据
|
||||
*
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getOperatorsList(Page<ServiceAreaOperators> page, @Param("params") Map<String, Object> params);
|
||||
|
||||
|
||||
/**
|
||||
* 获取员工角色
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> selectRoleListList();
|
||||
|
||||
/**
|
||||
* 获取服务区
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> selectServiceAreaList();
|
||||
|
||||
|
||||
/**
|
||||
* 获取最大id
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Integer getMaxId();
|
||||
|
||||
/**
|
||||
* 根据工号获取数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<ServiceAreaOperators> getOperationByJobNumber(@Param("jobNumber") String jobNumber);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.OperatorsMyMapper">
|
||||
|
||||
|
||||
<select id="getOperatorsList" parameterType="java.util.HashMap" resultType="com.nmgs.entity.ServiceAreaOperators">
|
||||
SELECT
|
||||
oper.ID,
|
||||
oper.JOBNUMBER,
|
||||
oper.JOBNUMBERINFO,
|
||||
oper.ROLEID,
|
||||
oper.SERVICEAREAID,
|
||||
oper.USERNAME,
|
||||
oper.PASSWORD,
|
||||
r.VALUE as roleName,
|
||||
area.AREANAME as serviceAreaName
|
||||
FROM
|
||||
service_area_operators_table oper
|
||||
LEFT JOIN service_area_table area on area.ID = oper.SERVICEAREAID
|
||||
LEFT JOIN service_area_operators_role_text r on r.ID = oper.ROLEID
|
||||
<where>
|
||||
|
||||
<!-- 姓名查询条件 -->
|
||||
<if test="params.userNameQuery != null and params.userNameQuery != ''">
|
||||
<bind name="userNameQuery" value="'%'+params.userNameQuery+'%'"/>
|
||||
AND oper.USERNAME LIKE #{userNameQuery}
|
||||
</if>
|
||||
|
||||
<!-- 服务区查询条件 -->
|
||||
<if test="params.serviceAreaQuery != null ">
|
||||
AND oper.SERVICEAREAID = #{params.serviceAreaQuery}
|
||||
</if>
|
||||
|
||||
|
||||
<!-- 工号查询条件 -->
|
||||
<if test="params.jobNumberQuery != null and params.jobNumberQuery != ''">
|
||||
<bind name="jobNumberQuery" value="'%'+params.jobNumberQuery+'%'"/>
|
||||
AND oper.JOBNUMBER LIKE #{jobNumberQuery}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY oper.JOBNUMBER
|
||||
</select>
|
||||
|
||||
<select id="selectRoleListList" resultType="java.util.HashMap">
|
||||
SELECT *
|
||||
FROM service_area_operators_role_text sub
|
||||
order by sub.ID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectServiceAreaList" resultType="java.util.HashMap">
|
||||
SELECT area.ID, area.AREANAME
|
||||
FROM SERVICE_AREA_TABLE area
|
||||
order by area.ID
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getMaxId" resultType="java.lang.Integer">
|
||||
SELECT MAX(ID)
|
||||
FROM service_area_operators_table
|
||||
</select>
|
||||
|
||||
<select id="getOperationByJobNumber" resultType="com.nmgs.entity.ServiceAreaOperators">
|
||||
SELECT oper.ID,
|
||||
oper.JOBNUMBER,
|
||||
oper.JOBNUMBERINFO,
|
||||
oper.ROLEID,
|
||||
oper.SERVICEAREAID,
|
||||
oper.USERNAME,
|
||||
oper.PASSWORD,
|
||||
r.VALUE as roleName,
|
||||
area.AREANAME as serviceAreaName,
|
||||
saoc.INPUTMENEY AS inputMeney
|
||||
FROM service_area_operators_table oper
|
||||
LEFT JOIN service_area_table area on area.ID = oper.SERVICEAREAID
|
||||
LEFT JOIN service_area_operators_role_text r on r.ID = oper.ROLEID
|
||||
LEFT JOIN SERVICE_AREA_OPERATORS_COMPANY_TEXT saoc on saoc.ID = oper.COMPANYID
|
||||
where JOBNUMBER = #{jobNumber}
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,28 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface UserTableMysqlMapper {
|
||||
|
||||
/**
|
||||
* 新增用户
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addUser(@Param("params") Map<String,Object> param);
|
||||
|
||||
/**
|
||||
* 用户信息修改
|
||||
* @return
|
||||
*/
|
||||
public int updateUser(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 用户信息修改
|
||||
* @return
|
||||
*/
|
||||
public int updateUserById(@Param("params") Map<String,Object> param);
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.UserTableMysqlMapper">
|
||||
<update id="updateUser" parameterType="java.util.HashMap">
|
||||
update WEIXN_USER_TABLE set CERTIFICATION=#{params.certification} ,NUMBERPICNAME=#{params.filename}
|
||||
<if test="params.phone != null and params.phone !=''">
|
||||
,phone=#{params.phone}
|
||||
</if>
|
||||
<if test="params.realName != null and params.realName !=''">
|
||||
,REALNAME=#{params.realName}
|
||||
</if>
|
||||
<if test="params.idNumber != null and params.idNumber !=''">
|
||||
,IDNUMBER=#{params.idNumber}
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
,CREATETIME <= dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
,CREATETIME= STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where OPENID=#{params.openid}
|
||||
</update>
|
||||
<insert id="addUser">
|
||||
insert into WEIXN_USER_TABLE(ID,OPENID,USERNAME,CREATETIME,ENABLEINTEGRATION,STARLEVEL,OILENABLEINTEGRATION,GASENABLEINTEGRATION,
|
||||
SPENABLEINTEGRATION,CAFENABLEINTEGRATION,CERTIFICATION,OGENABLEINTEGRATION,CPENABLEINTEGRATION,REFERRERCODE)
|
||||
values(#{params.userid},#{params.openid},#{params.username}
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
,dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
,TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
,TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
,STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
,0,0,0,0,0,0,0,0,0,#{params.REFERRERCODE})
|
||||
</insert>
|
||||
<update id="updateUserById" parameterType="java.util.HashMap">
|
||||
update WEIXN_USER_TABLE SET
|
||||
<if test="params.enabledTICp !='' and params.enabledTICp != null">
|
||||
CPENABLEINTEGRATION=#{params.enabledTICp},
|
||||
</if>
|
||||
<if test="params.enabledTIOG !='' and params.enabledTIOG != null">
|
||||
OGENABLEINTEGRATION=#{params.enabledTIOG},
|
||||
</if>
|
||||
ENABLEINTEGRATION= #{params.enabledTI}
|
||||
where OPENID=#{params.userId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,28 @@
|
||||
package com.nmgs.mapperset.mysqlmapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface UserVehicleMyMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addUserVehicle(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 修改用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int updateUserVehicle(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 删除用户车辆信息
|
||||
* @return
|
||||
*/
|
||||
public int delUserVehcile(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.mysqlmapper.UserVehicleMyMapper">
|
||||
<update id="updateUserVehicle" parameterType="java.util.HashMap">
|
||||
update user_vehicle_table
|
||||
set CERTIFICATION=#{params.certification}
|
||||
<if test="params.cancelTime != null and params.cancelTime !=''">
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
,CANCELTIME = dateadd(day,0,#{params.cancelTime})
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
,CANCELTIME= TO_DATE(#{params.cancelTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
,CANCELTIME= TO_DATE(#{params.cancelTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
,CANCELTIME= STR_TO_DATE(#{params.cancelTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.createTime != null and params.createTime !=''">
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
,CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
,CREATETIME= STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.licensepic != null and params.licensepic !=''">
|
||||
,LICENSEPICNAME=#{params.licensepic}
|
||||
</if>
|
||||
<if test="params.permitpic != null and params.permitpic !=''">
|
||||
,PERMITPICNAME=#{params.permitpic}
|
||||
</if>
|
||||
<if test="params.vehiclePic != null and params.vehiclePic !=''">
|
||||
,VEHICLEPICNAME=#{params.vehiclePic}
|
||||
</if>
|
||||
<if test="params.referrerCode != null and params.referrerCode !=''">
|
||||
,REFERRERCODE=#{params.referrerCode}
|
||||
</if>
|
||||
<if test="params.checkName != null and params.checkName !=''">
|
||||
,CHECKUSERNAME=#{params.checkName}
|
||||
</if>
|
||||
<if test="params.checkUserNumber != null and params.checkUserNumber !=''">
|
||||
,CHECKUSERNUMBER=#{params.checkUserNumber}
|
||||
</if>
|
||||
where USERID=#{params.userId} AND ACARNO=#{params.aCarNo}
|
||||
<if test="params.commonCondition !=null and params.commonCondition !=''">
|
||||
AND ${params.commonCondition}
|
||||
</if>
|
||||
</update>
|
||||
<insert id="addUserVehicle" parameterType="java.util.HashMap">
|
||||
insert into user_vehicle_table(USERID,ACARNO,CREATETIME,CERTIFICATION)
|
||||
values((SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openid}),#{params.aCarNo},
|
||||
<if test="params.DBTYPEBAK == 1">
|
||||
dateadd(day,0,#{params.createTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 2">
|
||||
TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 3">
|
||||
TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPEBAK == 4">
|
||||
STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.certification})
|
||||
</insert>
|
||||
|
||||
<delete id="delUserVehcile" parameterType="java.util.HashMap">
|
||||
delete from user_vehicle_table where USERID=#{params.userId} AND ACARNO=#{params.aCarNo}
|
||||
<if test="params.commonCondition !=null and params.commonCondition !=''">
|
||||
AND ${params.commonCondition}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,18 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface AppointmentInfoMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addAppointmentInfo(@Param("params") Map<String,Object> param);
|
||||
public int updateConpleteStatus(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,46 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.AppointmentInfoMapper">
|
||||
<update id="updateConpleteStatus" parameterType="java.util.HashMap">
|
||||
update APPOINTMENT_INFO_TABLE
|
||||
set COMPLETESTATUS=#{params.completeStatus}
|
||||
where ORDERID = #{params.orderId}
|
||||
</update>
|
||||
<insert id="addAppointmentInfo" parameterType="java.util.HashMap">
|
||||
insert into APPOINTMENT_INFO_TABLE(ID,USERID,ACARNO,APPOINTMENTTYPE,APPOINTMENTTIME,APPOINTMENTLINEID,
|
||||
CREATETIME,SERVICEAREAID,MEALS,MEALSCOUNT,COMPLETESTATUS,INTEGRATIONLISTID,
|
||||
SERVICEOPERATIONID,TOTALINTEGRAL,ORDERID)
|
||||
values (#{params.maxId},${params.userId},#{params.acarno},#{params.appointmenttype},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.appointtime}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.appointtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.appointtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.appointtime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.appointmentlineid},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.createtime}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.createtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.createtime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.createtime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.serviceareaId},#{params.meals},#{params.mealscount},#{params.completeStatus},#{params.integrationListId},
|
||||
#{params.serviceOperationId,jdbcType=VARCHAR},#{params.totalIntegral},#{params.orderId})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,19 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface CafterTableMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addcafter(@Param("params") Map<String,Object> param);
|
||||
public int updatecafter(@Param("params") Map<String,Object> param);
|
||||
public int updatecafterConpleteStatus(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.CafterTableMapper">
|
||||
<update id="updatecafter" parameterType="java.util.HashMap">
|
||||
update CAFTER_TABLE
|
||||
set rollback=#{params.rollback}
|
||||
<if test="params.rollbackTime != null and params.rollbackTime !=''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
,ROLLBACKTIME = dateadd(day,0,#{params.rollbackTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
,ROLLBACKTIME= TO_DATE(#{params.rollbackTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
,ROLLBACKTIME= TO_DATE(#{params.rollbackTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
,ROLLBACKTIME= STR_TO_DATE(#{params.cancelTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.integralrollback != null and params.integralrollback !=''">
|
||||
,INTEGRALROLLBACK=#{params.integralrollback}
|
||||
</if>
|
||||
where ORDERID = #{params.orderId} AND USERJOBNUMBER= #{params.serverOperationId}
|
||||
</update>
|
||||
<update id="updatecafterConpleteStatus" parameterType="java.util.HashMap">
|
||||
update CAFTER_TABLE
|
||||
set COMPLETESTATUS=#{params.completeStatus}
|
||||
where ORDERID = #{params.orderId}
|
||||
</update>
|
||||
<insert id="addcafter" parameterType="java.util.HashMap">
|
||||
insert into CAFTER_TABLE(ID,
|
||||
ACARNO,
|
||||
USERID,
|
||||
CAFTERTIME,
|
||||
USERJOBNUMBER,
|
||||
TRIMINTEGRAL,
|
||||
INTEGRATIONLISTID,
|
||||
ORDERID,CONTENT) values (#{params.maxId},#{params.acarNo},#{params.userId},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.cafterTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.cafterTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.cafterTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.cafterTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.userJobnumber}, #{params.trimintegral},#{params.integrationListId},#{params.orderId},#{params.content})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,17 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegralLeavingMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralLeaving(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.IntegralLeavingMapper">
|
||||
|
||||
<insert id="addIntegralLeaving" parameterType="java.util.HashMap">
|
||||
insert into INTEGRAL_LEAVEMESSAGE_TABLE(ID,USERID,POSITION,MESSAGE,CREATETIME,REPLYSTATUS)
|
||||
values(#{params.maxId},(SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId}),
|
||||
#{params.positon},#{params.message},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.currentDate}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.currentDate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.currentDate}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.currentDate}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.replyStatus})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,23 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegralSignMapper {
|
||||
|
||||
/**
|
||||
* 新增用户签到信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralSign(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 修改用户签到信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int updateIntegralSign(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.IntegralSignMapper">
|
||||
|
||||
<insert id="addIntegralSign" parameterType="java.util.HashMap">
|
||||
insert into INTEGRAL_SIGN_TABLE(USERID,MONTH,DAY${params.dayvalue})
|
||||
values((SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId}),
|
||||
#{params.month},'Y')
|
||||
</insert>
|
||||
<update id="updateIntegralSign" parameterType="java.util.HashMap">
|
||||
UPDATE INTEGRAL_SIGN_TABLE set Day${params.dayvalue}='Y' where USERID=(SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openId})
|
||||
AND MONTH=#{params.month}
|
||||
</update>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,17 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface IntegrationListMapper {
|
||||
|
||||
/**
|
||||
* 新增用户签到积分信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addIntegralList(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.IntegrationListMapper">
|
||||
<insert id="addIntegralList" parameterType="java.util.HashMap">
|
||||
INSERT INTO integration_list_table ( ID, USERID,ACARNO, LASTINTEGRATION,
|
||||
<if test="params.totalintegration != null and params.totalintegration !=''">
|
||||
TOTALADDINTEGRATION,
|
||||
</if>
|
||||
PAYINTEGRATION, RESTINTEGRATION,
|
||||
PAYTIME, PAYTYPE,CPENABLEINTEGRATION,OGENABLEINTEGRATION )
|
||||
values(#{params.maxid},#{params.userId},#{params.acarNo},#{params.lastintegration},
|
||||
<if test="params.totalintegration != null and params.totalintegration !=''">
|
||||
#{params.totalintegration},
|
||||
</if>
|
||||
#{params.payintegration},#{params.restintegration},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.payTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.payTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.payTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.payTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.paytype},#{params.cpenableintegration},#{params.ogenableintegration})
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
@ -1,52 +1,55 @@
|
||||
package com.nmgs.mapper;
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.github.jeffreyning.mybatisplus.base.MppBaseMapper;
|
||||
import com.nmgs.entity.ServiceAreaOperators;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
//@Mapper
|
||||
public interface OperatorsMapper extends MppBaseMapper<ServiceAreaOperators> {
|
||||
|
||||
/**
|
||||
* 分页查询运营人员数据
|
||||
*
|
||||
* @param page
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
Page<ServiceAreaOperators> getOperatorsList(Page<ServiceAreaOperators> page, @Param("params")Map<String, Object> params);
|
||||
|
||||
Page<ServiceAreaOperators> getOperatorsList(Page<ServiceAreaOperators> page, @Param("params") Map<String, Object> params);
|
||||
|
||||
|
||||
/**
|
||||
* 获取员工角色
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String,Object>> selectRoleListList();
|
||||
List<Map<String, Object>> selectRoleListList();
|
||||
|
||||
/**
|
||||
* 获取服务区
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<Map<String,Object>> selectServiceAreaList();
|
||||
List<Map<String, Object>> selectServiceAreaList();
|
||||
|
||||
|
||||
/**
|
||||
* 获取最大id
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Integer getMaxId();
|
||||
|
||||
/**
|
||||
* 根据工号获取数据
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
List<ServiceAreaOperators> getOperationByJobNumber(@Param("jobNumber")String jobNumber);
|
||||
List<ServiceAreaOperators> getOperationByJobNumber(@Param("jobNumber") String jobNumber);
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,29 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface UserTableMapper {
|
||||
|
||||
/**
|
||||
* 新增用户
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addUser(@Param("params") Map<String,Object> param);
|
||||
|
||||
/**
|
||||
* 用户信息修改
|
||||
* @return
|
||||
*/
|
||||
public int updateUser(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 用户信息修改
|
||||
* @return
|
||||
*/
|
||||
public int updateUserById(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.UserTableMapper">
|
||||
<update id="updateUser" parameterType="java.util.HashMap">
|
||||
update WEIXN_USER_TABLE set CERTIFICATION=#{params.certification} ,NUMBERPICNAME=#{params.filename}
|
||||
<if test="params.phone != null and params.phone !=''">
|
||||
,phone=#{params.phone}
|
||||
</if>
|
||||
<if test="params.realName != null and params.realName !=''">
|
||||
,REALNAME=#{params.realName}
|
||||
</if>
|
||||
<if test="params.idNumber != null and params.idNumber !=''">
|
||||
,IDNUMBER=#{params.idNumber}
|
||||
</if>
|
||||
<if test="params.DBTYPE == 1">
|
||||
,CREATETIME <= dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
,CREATETIME= STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
where OPENID=#{params.openid}
|
||||
</update>
|
||||
<insert id="addUser">
|
||||
insert into WEIXN_USER_TABLE(ID,OPENID,USERNAME,CREATETIME,ENABLEINTEGRATION,STARLEVEL,OILENABLEINTEGRATION,GASENABLEINTEGRATION,
|
||||
SPENABLEINTEGRATION,CAFENABLEINTEGRATION,CERTIFICATION,OGENABLEINTEGRATION,CPENABLEINTEGRATION,REFERRERCODE)
|
||||
values(#{params.userid},#{params.openid},#{params.username}
|
||||
<if test="params.DBTYPE == 1">
|
||||
,dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
,TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
,TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
,STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
,0,0,0,0,0,0,0,0,0,#{params.REFERRERCODE})
|
||||
</insert>
|
||||
<update id="updateUserById" parameterType="java.util.HashMap">
|
||||
update WEIXN_USER_TABLE SET
|
||||
<if test="params.enabledTICp !='' and params.enabledTICp != null">
|
||||
CPENABLEINTEGRATION=#{params.enabledTICp},
|
||||
</if>
|
||||
<if test="params.enabledTIOG !='' and params.enabledTIOG != null">
|
||||
OGENABLEINTEGRATION=#{params.enabledTIOG},
|
||||
</if>
|
||||
ENABLEINTEGRATION= #{params.enabledTI}
|
||||
where OPENID=#{params.userId}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@ -0,0 +1,28 @@
|
||||
package com.nmgs.mapperset.oraclemapper;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
//@Mapper
|
||||
public interface UserVehicleMapper {
|
||||
|
||||
/**
|
||||
* 新增用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int addUserVehicle(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 修改用户车辆信息
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
public int updateUserVehicle(@Param("params") Map<String,Object> param);
|
||||
/**
|
||||
* 删除用户车辆信息
|
||||
* @return
|
||||
*/
|
||||
public int delUserVehcile(@Param("params") Map<String,Object> param);
|
||||
|
||||
}
|
||||
@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.nmgs.mapperset.oraclemapper.UserVehicleMapper">
|
||||
<update id="updateUserVehicle" parameterType="java.util.HashMap">
|
||||
update user_vehicle_table
|
||||
set CERTIFICATION=#{params.certification}
|
||||
<if test="params.cancelTime != null and params.cancelTime !=''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
,CANCELTIME = dateadd(day,0,#{params.cancelTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
,CANCELTIME= TO_DATE(#{params.cancelTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
,CANCELTIME= TO_DATE(#{params.cancelTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
,CANCELTIME= STR_TO_DATE(#{params.cancelTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.createTime != null and params.createTime !=''">
|
||||
<if test="params.DBTYPE == 1">
|
||||
,CREATETIME = dateadd(day,0,#{params.createTime})
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
,CREATETIME= TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss')
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
,CREATETIME= STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s')
|
||||
</if>
|
||||
</if>
|
||||
<if test="params.licensepic != null and params.licensepic !=''">
|
||||
,LICENSEPICNAME=#{params.licensepic}
|
||||
</if>
|
||||
<if test="params.permitpic != null and params.permitpic !=''">
|
||||
,PERMITPICNAME=#{params.permitpic}
|
||||
</if>
|
||||
<if test="params.vehiclePic != null and params.vehiclePic !=''">
|
||||
,VEHICLEPICNAME=#{params.vehiclePic}
|
||||
</if>
|
||||
<if test="params.referrerCode != null and params.referrerCode !=''">
|
||||
,REFERRERCODE=#{params.referrerCode}
|
||||
</if>
|
||||
<if test="params.checkName != null and params.checkName !=''">
|
||||
,CHECKUSERNAME=#{params.checkName}
|
||||
</if>
|
||||
<if test="params.checkUserNumber != null and params.checkUserNumber !=''">
|
||||
,CHECKUSERNUMBER=#{params.checkUserNumber}
|
||||
</if>
|
||||
where USERID=#{params.userId} AND ACARNO=#{params.aCarNo}
|
||||
<if test="params.commonCondition !=null and params.commonCondition !=''">
|
||||
AND ${params.commonCondition}
|
||||
</if>
|
||||
</update>
|
||||
<insert id="addUserVehicle" parameterType="java.util.HashMap">
|
||||
insert into user_vehicle_table(USERID,ACARNO,CREATETIME,CERTIFICATION)
|
||||
values((SELECT ID FROM WEIXN_USER_TABLE WHERE OPENID=#{params.openid}),#{params.aCarNo},
|
||||
<if test="params.DBTYPE == 1">
|
||||
dateadd(day,0,#{params.createTime}),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 2">
|
||||
TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 3">
|
||||
TO_DATE(#{params.createTime}, 'YYYY-MM-DD HH24:mi:ss'),
|
||||
</if>
|
||||
<if test="params.DBTYPE == 4">
|
||||
STR_TO_DATE(#{params.createTime}, '%Y-%m-%d %H:%i:%s'),
|
||||
</if>
|
||||
#{params.certification})
|
||||
</insert>
|
||||
|
||||
<delete id="delUserVehcile" parameterType="java.util.HashMap">
|
||||
delete from user_vehicle_table where USERID=#{params.userId} AND ACARNO=#{params.aCarNo}
|
||||
<if test="params.commonCondition !=null and params.commonCondition !=''">
|
||||
AND ${params.commonCondition}
|
||||
</if>
|
||||
</delete>
|
||||
|
||||
|
||||
</mapper>
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue