Commit 291f3d59f49f9b47036800cdedcbcdd80675c158
Merge branch 'master' of
192.168.168.201:panzhaov5/control_service_data_Interface
Showing
25 changed files
with
2387 additions
and
2383 deletions
Too many changes to show.
To preserve performance only 25 of 145 files are displayed.
README.md
pom.xml
| 1 | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 2 | - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 3 | - | ||
| 4 | - <modelVersion>4.0.0</modelVersion> | ||
| 5 | - <groupId>com.bsth</groupId> | ||
| 6 | - <artifactId>control_service_data_interface</artifactId> | ||
| 7 | - <version>0.0.1-SNAPSHOT</version> | ||
| 8 | - <packaging>jar</packaging> | ||
| 9 | - | ||
| 10 | - <parent> | ||
| 11 | - <groupId>org.springframework.boot</groupId> | ||
| 12 | - <artifactId>spring-boot-starter-parent</artifactId> | ||
| 13 | - <version>1.5.2.RELEASE</version> | ||
| 14 | - </parent> | ||
| 15 | - | ||
| 16 | - <dependencies> | ||
| 17 | - <dependency> | ||
| 18 | - <groupId>org.apache.cxf</groupId> | ||
| 19 | - <artifactId>cxf-rt-frontend-jaxws</artifactId> | ||
| 20 | - <version>3.1.10</version> | ||
| 21 | - </dependency> | ||
| 22 | - | ||
| 23 | - <dependency> | ||
| 24 | - <groupId>org.apache.cxf</groupId> | ||
| 25 | - <artifactId>cxf-rt-transports-http</artifactId> | ||
| 26 | - <version>3.1.10</version> | ||
| 27 | - </dependency> | ||
| 28 | - | ||
| 29 | - <dependency> | ||
| 30 | - <groupId>org.apache.cxf</groupId> | ||
| 31 | - <artifactId>cxf-rt-rs-service-description</artifactId> | ||
| 32 | - <version>3.1.10</version> | ||
| 33 | - </dependency> | ||
| 34 | - | ||
| 35 | - <dependency> | ||
| 36 | - <groupId>org.springframework.boot</groupId> | ||
| 37 | - <artifactId>spring-boot-starter-web</artifactId> | ||
| 38 | - </dependency> | ||
| 39 | - | ||
| 40 | - <dependency> | ||
| 41 | - <groupId>org.springframework.boot</groupId> | ||
| 42 | - <artifactId>spring-boot-starter-tomcat</artifactId> | ||
| 43 | - <scope>provided</scope> | ||
| 44 | - </dependency> | ||
| 45 | - | ||
| 46 | - <dependency> | ||
| 47 | - <groupId>org.springframework.boot</groupId> | ||
| 48 | - <artifactId>spring-boot-starter-data-jpa</artifactId> | ||
| 49 | - </dependency> | ||
| 50 | - <dependency> | ||
| 51 | - <groupId>org.springframework.boot</groupId> | ||
| 52 | - <artifactId>spring-boot-starter-aop</artifactId> | ||
| 53 | - </dependency> | ||
| 54 | - | ||
| 55 | - <dependency> | ||
| 56 | - <groupId>org.springframework.boot</groupId> | ||
| 57 | - <artifactId>spring-boot-starter-data-redis</artifactId> | ||
| 58 | - </dependency> | ||
| 59 | - | ||
| 60 | - <dependency> | ||
| 61 | - <groupId>org.springframework</groupId> | ||
| 62 | - <artifactId>spring-context-support</artifactId> | ||
| 63 | - </dependency> | ||
| 64 | - <dependency> | ||
| 65 | - <groupId>mysql</groupId> | ||
| 66 | - <artifactId>mysql-connector-java</artifactId> | ||
| 67 | - </dependency> | ||
| 68 | - | ||
| 69 | - <dependency> | ||
| 70 | - <groupId>joda-time</groupId> | ||
| 71 | - <artifactId>joda-time</artifactId> | ||
| 72 | - </dependency> | ||
| 73 | - <dependency> | ||
| 74 | - <groupId>com.alibaba</groupId> | ||
| 75 | - <artifactId>fastjson</artifactId> | ||
| 76 | - <version>1.2.4</version> | ||
| 77 | - </dependency> | ||
| 78 | - | ||
| 79 | - <dependency> | ||
| 80 | - <groupId>org.apache.httpcomponents</groupId> | ||
| 81 | - <artifactId>httpclient</artifactId> | ||
| 82 | - </dependency> | ||
| 83 | - | ||
| 84 | - <dependency> | ||
| 85 | - <groupId>commons-dbcp</groupId> | ||
| 86 | - <artifactId>commons-dbcp</artifactId> | ||
| 87 | - </dependency> | ||
| 88 | - <dependency> | ||
| 89 | - <groupId>commons-lang</groupId> | ||
| 90 | - <artifactId>commons-lang</artifactId> | ||
| 91 | - <version>2.6</version> | ||
| 92 | - </dependency> | ||
| 93 | - <dependency> | ||
| 94 | - <groupId>org.apache.commons</groupId> | ||
| 95 | - <artifactId>commons-lang3</artifactId> | ||
| 96 | - <version>3.4</version> | ||
| 97 | - </dependency> | ||
| 98 | - <dependency> | ||
| 99 | - <groupId>commons-fileupload</groupId> | ||
| 100 | - <artifactId>commons-fileupload</artifactId> | ||
| 101 | - <version>1.2.2</version> | ||
| 102 | - </dependency> | ||
| 103 | - <dependency> | ||
| 104 | - <groupId>commons-io</groupId> | ||
| 105 | - <artifactId>commons-io</artifactId> | ||
| 106 | - <version>2.4</version> | ||
| 107 | - </dependency> | ||
| 108 | - <dependency> | ||
| 109 | - <groupId>org.codehaus.janino</groupId> | ||
| 110 | - <artifactId>janino</artifactId> | ||
| 111 | - </dependency> | ||
| 112 | - | ||
| 113 | - <dependency> | ||
| 114 | - <groupId>org.apache.poi</groupId> | ||
| 115 | - <artifactId>poi</artifactId> | ||
| 116 | - <version>3.13</version> | ||
| 117 | - </dependency> | ||
| 118 | - | ||
| 119 | - <dependency> | ||
| 120 | - <groupId>com.google.guava</groupId> | ||
| 121 | - <artifactId>guava</artifactId> | ||
| 122 | - <version>19.0</version> | ||
| 123 | - </dependency> | ||
| 124 | - | ||
| 125 | - <dependency> | ||
| 126 | - <groupId>c3p0</groupId> | ||
| 127 | - <artifactId>c3p0</artifactId> | ||
| 128 | - <version>0.9.1.2</version> | ||
| 129 | - </dependency> | ||
| 130 | - | ||
| 131 | - <dependency> | ||
| 132 | - <groupId>axis</groupId> | ||
| 133 | - <artifactId>axis</artifactId> | ||
| 134 | - <version>1.4</version> | ||
| 135 | - </dependency> | ||
| 136 | - | ||
| 137 | - <dependency> | ||
| 138 | - <groupId>com.fasterxml.jackson.jaxrs</groupId> | ||
| 139 | - <artifactId>jackson-jaxrs-json-provider</artifactId> | ||
| 140 | - <version>2.8.7</version> | ||
| 141 | - </dependency> | ||
| 142 | - | ||
| 143 | - <dependency> | ||
| 144 | - <groupId>org.eclipse.jetty</groupId> | ||
| 145 | - <artifactId>jetty-util</artifactId> | ||
| 146 | - <version>8.1.15.v20140411</version> | ||
| 147 | - </dependency> | ||
| 148 | - | ||
| 149 | - <dependency> | ||
| 150 | - <groupId>org.apache.geronimo.specs</groupId> | ||
| 151 | - <artifactId>geronimo-jaxws_2.2_spec</artifactId> | ||
| 152 | - <version>1.0</version> | ||
| 153 | - </dependency> | ||
| 154 | - </dependencies> | ||
| 155 | - | ||
| 156 | - <build> | ||
| 157 | - <plugins> | ||
| 158 | - <plugin> | ||
| 159 | - <artifactId>maven-compiler-plugin</artifactId> | ||
| 160 | - <version>2.3.2</version><!--$NO-MVN-MAN-VER$ --> | ||
| 161 | - <configuration> | ||
| 162 | - <source>1.7</source> | ||
| 163 | - <target>1.7</target> | ||
| 164 | - </configuration> | ||
| 165 | - </plugin> | ||
| 166 | - <plugin> | ||
| 167 | - <artifactId>maven-war-plugin</artifactId> | ||
| 168 | - <version>2.2</version><!--$NO-MVN-MAN-VER$ --> | ||
| 169 | - <configuration> | ||
| 170 | - <failOnMissingWebXml>false</failOnMissingWebXml> | ||
| 171 | - </configuration> | ||
| 172 | - </plugin> | ||
| 173 | - <plugin> | ||
| 174 | - <groupId>org.springframework.boot</groupId> | ||
| 175 | - <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 176 | - </plugin> | ||
| 177 | - </plugins> | ||
| 178 | - <resources> | ||
| 179 | - <resource> | ||
| 180 | - <directory>src/main/resources</directory> | ||
| 181 | - <filtering>false</filtering> | ||
| 182 | - </resource> | ||
| 183 | - </resources> | ||
| 184 | - </build> | ||
| 185 | - <repositories> | ||
| 186 | - <repository> | ||
| 187 | - <id>spring-snapshots</id> | ||
| 188 | - <url>http://repo.spring.io/snapshot</url> | ||
| 189 | - <snapshots> | ||
| 190 | - <enabled>true</enabled> | ||
| 191 | - </snapshots> | ||
| 192 | - </repository> | ||
| 193 | - <repository> | ||
| 194 | - <id>spring-milestones</id> | ||
| 195 | - <url>http://repo.spring.io/milestone</url> | ||
| 196 | - </repository> | ||
| 197 | - </repositories> | ||
| 198 | - <pluginRepositories> | ||
| 199 | - <pluginRepository> | ||
| 200 | - <id>spring-snapshots</id> | ||
| 201 | - <url>http://repo.spring.io/snapshot</url> | ||
| 202 | - </pluginRepository> | ||
| 203 | - <pluginRepository> | ||
| 204 | - <id>spring-milestones</id> | ||
| 205 | - <url>http://repo.spring.io/milestone</url> | ||
| 206 | - </pluginRepository> | ||
| 207 | - </pluginRepositories> | ||
| 208 | - | ||
| 209 | - <properties> | ||
| 210 | - <start-class>com.bsth.Application</start-class> | ||
| 211 | - </properties> | ||
| 212 | -</project> | 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 3 | + | ||
| 4 | + <modelVersion>4.0.0</modelVersion> | ||
| 5 | + <groupId>com.bsth</groupId> | ||
| 6 | + <artifactId>control_service_data_interface</artifactId> | ||
| 7 | + <version>0.0.1-SNAPSHOT</version> | ||
| 8 | + <packaging>jar</packaging> | ||
| 9 | + | ||
| 10 | + <parent> | ||
| 11 | + <groupId>org.springframework.boot</groupId> | ||
| 12 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
| 13 | + <version>1.5.2.RELEASE</version> | ||
| 14 | + </parent> | ||
| 15 | + | ||
| 16 | + <dependencies> | ||
| 17 | + <dependency> | ||
| 18 | + <groupId>org.apache.cxf</groupId> | ||
| 19 | + <artifactId>cxf-rt-frontend-jaxws</artifactId> | ||
| 20 | + <version>3.1.10</version> | ||
| 21 | + </dependency> | ||
| 22 | + | ||
| 23 | + <dependency> | ||
| 24 | + <groupId>org.apache.cxf</groupId> | ||
| 25 | + <artifactId>cxf-rt-transports-http</artifactId> | ||
| 26 | + <version>3.1.10</version> | ||
| 27 | + </dependency> | ||
| 28 | + | ||
| 29 | + <dependency> | ||
| 30 | + <groupId>org.apache.cxf</groupId> | ||
| 31 | + <artifactId>cxf-rt-rs-service-description</artifactId> | ||
| 32 | + <version>3.1.10</version> | ||
| 33 | + </dependency> | ||
| 34 | + | ||
| 35 | + <dependency> | ||
| 36 | + <groupId>org.springframework.boot</groupId> | ||
| 37 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 38 | + </dependency> | ||
| 39 | + | ||
| 40 | + <dependency> | ||
| 41 | + <groupId>org.springframework.boot</groupId> | ||
| 42 | + <artifactId>spring-boot-starter-tomcat</artifactId> | ||
| 43 | + <scope>provided</scope> | ||
| 44 | + </dependency> | ||
| 45 | + | ||
| 46 | + <dependency> | ||
| 47 | + <groupId>org.springframework.boot</groupId> | ||
| 48 | + <artifactId>spring-boot-starter-data-jpa</artifactId> | ||
| 49 | + </dependency> | ||
| 50 | + <dependency> | ||
| 51 | + <groupId>org.springframework.boot</groupId> | ||
| 52 | + <artifactId>spring-boot-starter-aop</artifactId> | ||
| 53 | + </dependency> | ||
| 54 | + | ||
| 55 | + <dependency> | ||
| 56 | + <groupId>org.springframework.boot</groupId> | ||
| 57 | + <artifactId>spring-boot-starter-data-redis</artifactId> | ||
| 58 | + </dependency> | ||
| 59 | + | ||
| 60 | + <dependency> | ||
| 61 | + <groupId>org.springframework</groupId> | ||
| 62 | + <artifactId>spring-context-support</artifactId> | ||
| 63 | + </dependency> | ||
| 64 | + <dependency> | ||
| 65 | + <groupId>mysql</groupId> | ||
| 66 | + <artifactId>mysql-connector-java</artifactId> | ||
| 67 | + </dependency> | ||
| 68 | + | ||
| 69 | + <dependency> | ||
| 70 | + <groupId>joda-time</groupId> | ||
| 71 | + <artifactId>joda-time</artifactId> | ||
| 72 | + </dependency> | ||
| 73 | + <dependency> | ||
| 74 | + <groupId>com.alibaba</groupId> | ||
| 75 | + <artifactId>fastjson</artifactId> | ||
| 76 | + <version>1.2.4</version> | ||
| 77 | + </dependency> | ||
| 78 | + | ||
| 79 | + <dependency> | ||
| 80 | + <groupId>org.apache.httpcomponents</groupId> | ||
| 81 | + <artifactId>httpclient</artifactId> | ||
| 82 | + </dependency> | ||
| 83 | + | ||
| 84 | + <dependency> | ||
| 85 | + <groupId>commons-dbcp</groupId> | ||
| 86 | + <artifactId>commons-dbcp</artifactId> | ||
| 87 | + </dependency> | ||
| 88 | + <dependency> | ||
| 89 | + <groupId>commons-lang</groupId> | ||
| 90 | + <artifactId>commons-lang</artifactId> | ||
| 91 | + <version>2.6</version> | ||
| 92 | + </dependency> | ||
| 93 | + <dependency> | ||
| 94 | + <groupId>org.apache.commons</groupId> | ||
| 95 | + <artifactId>commons-lang3</artifactId> | ||
| 96 | + <version>3.4</version> | ||
| 97 | + </dependency> | ||
| 98 | + <dependency> | ||
| 99 | + <groupId>commons-fileupload</groupId> | ||
| 100 | + <artifactId>commons-fileupload</artifactId> | ||
| 101 | + <version>1.2.2</version> | ||
| 102 | + </dependency> | ||
| 103 | + <dependency> | ||
| 104 | + <groupId>commons-io</groupId> | ||
| 105 | + <artifactId>commons-io</artifactId> | ||
| 106 | + <version>2.4</version> | ||
| 107 | + </dependency> | ||
| 108 | + <dependency> | ||
| 109 | + <groupId>org.codehaus.janino</groupId> | ||
| 110 | + <artifactId>janino</artifactId> | ||
| 111 | + </dependency> | ||
| 112 | + | ||
| 113 | + <dependency> | ||
| 114 | + <groupId>org.apache.poi</groupId> | ||
| 115 | + <artifactId>poi</artifactId> | ||
| 116 | + <version>3.13</version> | ||
| 117 | + </dependency> | ||
| 118 | + | ||
| 119 | + <dependency> | ||
| 120 | + <groupId>com.google.guava</groupId> | ||
| 121 | + <artifactId>guava</artifactId> | ||
| 122 | + <version>19.0</version> | ||
| 123 | + </dependency> | ||
| 124 | + | ||
| 125 | + <dependency> | ||
| 126 | + <groupId>c3p0</groupId> | ||
| 127 | + <artifactId>c3p0</artifactId> | ||
| 128 | + <version>0.9.1.2</version> | ||
| 129 | + </dependency> | ||
| 130 | + | ||
| 131 | + <dependency> | ||
| 132 | + <groupId>axis</groupId> | ||
| 133 | + <artifactId>axis</artifactId> | ||
| 134 | + <version>1.4</version> | ||
| 135 | + </dependency> | ||
| 136 | + | ||
| 137 | + <dependency> | ||
| 138 | + <groupId>com.fasterxml.jackson.jaxrs</groupId> | ||
| 139 | + <artifactId>jackson-jaxrs-json-provider</artifactId> | ||
| 140 | + <version>2.8.7</version> | ||
| 141 | + </dependency> | ||
| 142 | + | ||
| 143 | + <dependency> | ||
| 144 | + <groupId>org.eclipse.jetty</groupId> | ||
| 145 | + <artifactId>jetty-util</artifactId> | ||
| 146 | + <version>8.1.15.v20140411</version> | ||
| 147 | + </dependency> | ||
| 148 | + | ||
| 149 | + <dependency> | ||
| 150 | + <groupId>org.apache.geronimo.specs</groupId> | ||
| 151 | + <artifactId>geronimo-jaxws_2.2_spec</artifactId> | ||
| 152 | + <version>1.0</version> | ||
| 153 | + </dependency> | ||
| 154 | + </dependencies> | ||
| 155 | + | ||
| 156 | + <build> | ||
| 157 | + <plugins> | ||
| 158 | + <plugin> | ||
| 159 | + <artifactId>maven-compiler-plugin</artifactId> | ||
| 160 | + <version>2.3.2</version><!--$NO-MVN-MAN-VER$ --> | ||
| 161 | + <configuration> | ||
| 162 | + <source>1.7</source> | ||
| 163 | + <target>1.7</target> | ||
| 164 | + </configuration> | ||
| 165 | + </plugin> | ||
| 166 | + <plugin> | ||
| 167 | + <artifactId>maven-war-plugin</artifactId> | ||
| 168 | + <version>2.2</version><!--$NO-MVN-MAN-VER$ --> | ||
| 169 | + <configuration> | ||
| 170 | + <failOnMissingWebXml>false</failOnMissingWebXml> | ||
| 171 | + </configuration> | ||
| 172 | + </plugin> | ||
| 173 | + <plugin> | ||
| 174 | + <groupId>org.springframework.boot</groupId> | ||
| 175 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 176 | + </plugin> | ||
| 177 | + </plugins> | ||
| 178 | + <resources> | ||
| 179 | + <resource> | ||
| 180 | + <directory>src/main/resources</directory> | ||
| 181 | + <filtering>false</filtering> | ||
| 182 | + </resource> | ||
| 183 | + </resources> | ||
| 184 | + </build> | ||
| 185 | + <repositories> | ||
| 186 | + <repository> | ||
| 187 | + <id>spring-snapshots</id> | ||
| 188 | + <url>http://repo.spring.io/snapshot</url> | ||
| 189 | + <snapshots> | ||
| 190 | + <enabled>true</enabled> | ||
| 191 | + </snapshots> | ||
| 192 | + </repository> | ||
| 193 | + <repository> | ||
| 194 | + <id>spring-milestones</id> | ||
| 195 | + <url>http://repo.spring.io/milestone</url> | ||
| 196 | + </repository> | ||
| 197 | + </repositories> | ||
| 198 | + <pluginRepositories> | ||
| 199 | + <pluginRepository> | ||
| 200 | + <id>spring-snapshots</id> | ||
| 201 | + <url>http://repo.spring.io/snapshot</url> | ||
| 202 | + </pluginRepository> | ||
| 203 | + <pluginRepository> | ||
| 204 | + <id>spring-milestones</id> | ||
| 205 | + <url>http://repo.spring.io/milestone</url> | ||
| 206 | + </pluginRepository> | ||
| 207 | + </pluginRepositories> | ||
| 208 | + | ||
| 209 | + <properties> | ||
| 210 | + <start-class>com.bsth.Application</start-class> | ||
| 211 | + </properties> | ||
| 212 | +</project> |
src/.gitignore
src/main/java/com/bsth/Application.java
| 1 | -package com.bsth; | ||
| 2 | - | ||
| 3 | -import org.springframework.boot.SpringApplication; | ||
| 4 | -import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 5 | -import org.springframework.boot.builder.SpringApplicationBuilder; | ||
| 6 | -import org.springframework.boot.web.support.SpringBootServletInitializer; | ||
| 7 | - | ||
| 8 | -import java.util.concurrent.Executors; | ||
| 9 | -import java.util.concurrent.ScheduledExecutorService; | ||
| 10 | - | ||
| 11 | -@SpringBootApplication | ||
| 12 | -public class Application extends SpringBootServletInitializer { | ||
| 13 | - | ||
| 14 | - public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(10); | ||
| 15 | - | ||
| 16 | - @Override | ||
| 17 | - protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | ||
| 18 | - return application.sources(Application.class); | ||
| 19 | - } | ||
| 20 | - | ||
| 21 | - public static void main(String[] args) throws Exception { | ||
| 22 | - SpringApplication.run(Application.class, args); | ||
| 23 | - } | ||
| 24 | - | 1 | +package com.bsth; |
| 2 | + | ||
| 3 | +import org.springframework.boot.SpringApplication; | ||
| 4 | +import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 5 | +import org.springframework.boot.builder.SpringApplicationBuilder; | ||
| 6 | +import org.springframework.boot.web.support.SpringBootServletInitializer; | ||
| 7 | + | ||
| 8 | +import java.util.concurrent.Executors; | ||
| 9 | +import java.util.concurrent.ScheduledExecutorService; | ||
| 10 | + | ||
| 11 | +@SpringBootApplication | ||
| 12 | +public class Application extends SpringBootServletInitializer { | ||
| 13 | + | ||
| 14 | + public static ScheduledExecutorService mainServices = Executors.newScheduledThreadPool(10); | ||
| 15 | + | ||
| 16 | + @Override | ||
| 17 | + protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | ||
| 18 | + return application.sources(Application.class); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public static void main(String[] args) throws Exception { | ||
| 22 | + SpringApplication.run(Application.class, args); | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | } | 25 | } |
| 26 | \ No newline at end of file | 26 | \ No newline at end of file |
src/main/java/com/bsth/StartCommand.java
| 1 | -package com.bsth; | ||
| 2 | - | ||
| 3 | - | ||
| 4 | -import com.bsth.server_rs.gps.buffer.GpsRefreshThread; | ||
| 5 | -import com.bsth.server_rs.schedule.real.thread.ExecSchDataRefreshThread; | ||
| 6 | -import com.bsth.server_rs.schedule.real.thread.SchInOutDataRefreshThread; | ||
| 7 | -import com.bsth.server_rs.thread.RfidCardInfoPersistenceThread; | ||
| 8 | -import org.springframework.beans.factory.annotation.Autowired; | ||
| 9 | -import org.springframework.boot.CommandLineRunner; | ||
| 10 | -import org.springframework.stereotype.Component; | ||
| 11 | - | ||
| 12 | -import java.util.concurrent.ScheduledExecutorService; | ||
| 13 | -import java.util.concurrent.TimeUnit; | ||
| 14 | - | ||
| 15 | - | ||
| 16 | -/** | ||
| 17 | - * 随应用启动运行 | ||
| 18 | - * @author PanZhao | ||
| 19 | - * | ||
| 20 | - */ | ||
| 21 | -@Component | ||
| 22 | -public class StartCommand implements CommandLineRunner{ | ||
| 23 | - | ||
| 24 | - | ||
| 25 | - @Autowired | ||
| 26 | - RfidCardInfoPersistenceThread rfidCardInfoPersistenceThread; | ||
| 27 | - @Autowired | ||
| 28 | - SchInOutDataRefreshThread schInOutDataRefreshThread; | ||
| 29 | - @Autowired | ||
| 30 | - ExecSchDataRefreshThread execSchDataRefreshThread; | ||
| 31 | - @Autowired | ||
| 32 | - GpsRefreshThread gpsRefreshThread; | ||
| 33 | - | ||
| 34 | - @Override | ||
| 35 | - public void run(String... arg0){ | ||
| 36 | - | ||
| 37 | - try { | ||
| 38 | - ScheduledExecutorService sexec = Application.mainServices; | ||
| 39 | - //定时将人车卡数据入库 | ||
| 40 | - sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 10, TimeUnit.SECONDS); | ||
| 41 | - //定时从调度系统刷新进出场数据 | ||
| 42 | - sexec.scheduleWithFixedDelay(schInOutDataRefreshThread, 40, 60, TimeUnit.SECONDS); | ||
| 43 | - //定时从调度系统刷新车辆正在的执行班次 | ||
| 44 | - sexec.scheduleWithFixedDelay(execSchDataRefreshThread, 20, 60, TimeUnit.SECONDS); | ||
| 45 | - //定时刷新实时gps缓存 | ||
| 46 | - Application.mainServices.scheduleWithFixedDelay(gpsRefreshThread, 10, 7, TimeUnit.SECONDS); | ||
| 47 | - | ||
| 48 | - | ||
| 49 | - } catch (Exception e) { | ||
| 50 | - e.printStackTrace(); | ||
| 51 | - } | ||
| 52 | - } | ||
| 53 | -} | 1 | +package com.bsth; |
| 2 | + | ||
| 3 | + | ||
| 4 | +import com.bsth.server_rs.gps.buffer.BasicDataRefreshThread; | ||
| 5 | +import com.bsth.server_rs.gps.buffer.GpsRefreshThread; | ||
| 6 | +import com.bsth.server_rs.schedule.real.thread.ExecSchDataRefreshThread; | ||
| 7 | +import com.bsth.server_rs.schedule.real.thread.SchInOutDataRefreshThread; | ||
| 8 | +import com.bsth.server_rs.thread.RfidCardInfoPersistenceThread; | ||
| 9 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 10 | +import org.springframework.boot.CommandLineRunner; | ||
| 11 | +import org.springframework.stereotype.Component; | ||
| 12 | + | ||
| 13 | +import java.util.concurrent.ScheduledExecutorService; | ||
| 14 | +import java.util.concurrent.TimeUnit; | ||
| 15 | + | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * 随应用启动运行 | ||
| 19 | + * @author PanZhao | ||
| 20 | + * | ||
| 21 | + */ | ||
| 22 | +@Component | ||
| 23 | +public class StartCommand implements CommandLineRunner{ | ||
| 24 | + | ||
| 25 | + | ||
| 26 | + @Autowired | ||
| 27 | + RfidCardInfoPersistenceThread rfidCardInfoPersistenceThread; | ||
| 28 | + @Autowired | ||
| 29 | + SchInOutDataRefreshThread schInOutDataRefreshThread; | ||
| 30 | + @Autowired | ||
| 31 | + ExecSchDataRefreshThread execSchDataRefreshThread; | ||
| 32 | + @Autowired | ||
| 33 | + GpsRefreshThread gpsRefreshThread; | ||
| 34 | + @Autowired | ||
| 35 | + BasicDataRefreshThread basicDataRefreshThread; | ||
| 36 | + | ||
| 37 | + @Override | ||
| 38 | + public void run(String... arg0){ | ||
| 39 | + | ||
| 40 | + try { | ||
| 41 | + ScheduledExecutorService sexec = Application.mainServices; | ||
| 42 | + //定时将人车卡数据入库 | ||
| 43 | + sexec.scheduleWithFixedDelay(rfidCardInfoPersistenceThread, 120, 60 * 10, TimeUnit.SECONDS); | ||
| 44 | + //定时从调度系统刷新进出场数据 | ||
| 45 | + sexec.scheduleWithFixedDelay(schInOutDataRefreshThread, 40, 60, TimeUnit.SECONDS); | ||
| 46 | + //定时从调度系统刷新车辆正在的执行班次 | ||
| 47 | + sexec.scheduleWithFixedDelay(execSchDataRefreshThread, 20, 60, TimeUnit.SECONDS); | ||
| 48 | + //定时刷新实时gps缓存 | ||
| 49 | + Application.mainServices.scheduleWithFixedDelay(gpsRefreshThread, 10, 7, TimeUnit.SECONDS); | ||
| 50 | + //定时刷新基础信息 | ||
| 51 | + Application.mainServices.scheduleWithFixedDelay(basicDataRefreshThread, 30, 30, TimeUnit.MINUTES); | ||
| 52 | + | ||
| 53 | + } catch (Exception e) { | ||
| 54 | + e.printStackTrace(); | ||
| 55 | + } | ||
| 56 | + } | ||
| 57 | +} |
src/main/java/com/bsth/WebAppConfiguration.java
| 1 | -package com.bsth; | ||
| 2 | - | ||
| 3 | -import org.springframework.context.annotation.Bean; | ||
| 4 | -import org.springframework.context.annotation.ComponentScan; | ||
| 5 | -import org.springframework.context.annotation.Configuration; | ||
| 6 | -import org.springframework.web.filter.CharacterEncodingFilter; | ||
| 7 | -import org.springframework.web.filter.HttpPutFormContentFilter; | ||
| 8 | -import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | ||
| 9 | - | ||
| 10 | -import javax.servlet.Filter; | ||
| 11 | - | ||
| 12 | -@Configuration | ||
| 13 | -@ComponentScan | ||
| 14 | -public class WebAppConfiguration extends WebMvcConfigurerAdapter { | ||
| 15 | - | ||
| 16 | - /** | ||
| 17 | - * @Title: httpPutFormContentFilter | ||
| 18 | - * @Description: TODO(弥补浏览器不支持PUT/DELETE,对携带 _method 参数的请求进行转换) | ||
| 19 | - */ | ||
| 20 | - @Bean | ||
| 21 | - public Filter httpPutFormContentFilter() { | ||
| 22 | - return new HttpPutFormContentFilter(); | ||
| 23 | - } | ||
| 24 | - | ||
| 25 | - /** | ||
| 26 | - * @Title: characterEncodingFilter | ||
| 27 | - * @Description: TODO(编码过滤器) | ||
| 28 | - */ | ||
| 29 | - @Bean | ||
| 30 | - public Filter characterEncodingFilter(){ | ||
| 31 | - return new CharacterEncodingFilter("UTF-8"); | ||
| 32 | - } | ||
| 33 | -} | 1 | +package com.bsth; |
| 2 | + | ||
| 3 | +import org.springframework.context.annotation.Bean; | ||
| 4 | +import org.springframework.context.annotation.ComponentScan; | ||
| 5 | +import org.springframework.context.annotation.Configuration; | ||
| 6 | +import org.springframework.web.filter.CharacterEncodingFilter; | ||
| 7 | +import org.springframework.web.filter.HttpPutFormContentFilter; | ||
| 8 | +import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | ||
| 9 | + | ||
| 10 | +import javax.servlet.Filter; | ||
| 11 | + | ||
| 12 | +@Configuration | ||
| 13 | +@ComponentScan | ||
| 14 | +public class WebAppConfiguration extends WebMvcConfigurerAdapter { | ||
| 15 | + | ||
| 16 | + /** | ||
| 17 | + * @Title: httpPutFormContentFilter | ||
| 18 | + * @Description: TODO(弥补浏览器不支持PUT/DELETE,对携带 _method 参数的请求进行转换) | ||
| 19 | + */ | ||
| 20 | + @Bean | ||
| 21 | + public Filter httpPutFormContentFilter() { | ||
| 22 | + return new HttpPutFormContentFilter(); | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * @Title: characterEncodingFilter | ||
| 27 | + * @Description: TODO(编码过滤器) | ||
| 28 | + */ | ||
| 29 | + @Bean | ||
| 30 | + public Filter characterEncodingFilter(){ | ||
| 31 | + return new CharacterEncodingFilter("UTF-8"); | ||
| 32 | + } | ||
| 33 | +} |
src/main/java/com/bsth/common/BasicData.java
| 1 | -package com.bsth.common; | ||
| 2 | - | ||
| 3 | -import com.bsth.Application; | ||
| 4 | -import org.joda.time.format.DateTimeFormat; | ||
| 5 | -import org.joda.time.format.DateTimeFormatter; | ||
| 6 | -import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | -import org.springframework.boot.CommandLineRunner; | ||
| 8 | -import org.springframework.core.annotation.Order; | ||
| 9 | -import org.springframework.jdbc.core.JdbcTemplate; | ||
| 10 | -import org.springframework.stereotype.Component; | ||
| 11 | - | ||
| 12 | -import java.util.HashMap; | ||
| 13 | -import java.util.List; | ||
| 14 | -import java.util.Map; | ||
| 15 | -import java.util.concurrent.TimeUnit; | ||
| 16 | - | ||
| 17 | -/** | ||
| 18 | - * 一些基础数据缓存 | ||
| 19 | - * Created by panzhao on 2017/8/24. | ||
| 20 | - */ | ||
| 21 | -@Component | ||
| 22 | -@Order(1) | ||
| 23 | -public class BasicData implements CommandLineRunner { | ||
| 24 | - | ||
| 25 | - /** | ||
| 26 | - * 线路编码和在执行的班次日期 | ||
| 27 | - * code ——> yyyy-MM-dd | ||
| 28 | - */ | ||
| 29 | - public static Map<String, String> lineDateMap; | ||
| 30 | - | ||
| 31 | - public static Map<String, String> lineStartTimeMap; | ||
| 32 | - | ||
| 33 | - @Autowired | ||
| 34 | - BasicDataLoader basicDataLoader; | ||
| 35 | - | ||
| 36 | - @Override | ||
| 37 | - public void run(String... strings) throws Exception { | ||
| 38 | - basicDataLoader.run(); | ||
| 39 | - Application.mainServices.scheduleWithFixedDelay(basicDataLoader, 60 * 10, 60 * 10, TimeUnit.SECONDS); | ||
| 40 | - } | ||
| 41 | - | ||
| 42 | - private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm"); | ||
| 43 | - private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyyMMdd"); | ||
| 44 | - private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"); | ||
| 45 | - private final static long DAY_TIME = 1000 * 60 * 60 * 24L; | ||
| 46 | - | ||
| 47 | - @Component | ||
| 48 | - public static class BasicDataLoader extends Thread { | ||
| 49 | - | ||
| 50 | - @Autowired | ||
| 51 | - JdbcTemplate jdbcTemplate; | ||
| 52 | - | ||
| 53 | - @Override | ||
| 54 | - public void run() { | ||
| 55 | - loadLineDateMap(); | ||
| 56 | - } | ||
| 57 | - | ||
| 58 | - private void loadLineDateMap(){ | ||
| 59 | - Map<String, String> lineDateMapCopy = new HashMap<>(); | ||
| 60 | - Map<String, String> lineStartTimeMapCopy = new HashMap<>(); | ||
| 61 | - | ||
| 62 | - String sql = "select START_OPT,t2.LINE_CODE from bsth_c_line_config t1 INNER JOIN bsth_c_line t2 on t1.line=t2.id where t2.line_code is not null"; | ||
| 63 | - //String cts = fmtHHmm.print(System.currentTimeMillis()); | ||
| 64 | - | ||
| 65 | - List<Map<String, Object>> list = jdbcTemplate.queryForList(sql); | ||
| 66 | - String lineCode, startTime; | ||
| 67 | - for(Map<String, Object> map : list){ | ||
| 68 | - lineCode = map.get("LINE_CODE").toString(); | ||
| 69 | - startTime = map.get("START_OPT").toString(); | ||
| 70 | - lineDateMapCopy.put(lineCode, calcScheduleDate(startTime)); | ||
| 71 | - lineStartTimeMapCopy.put(lineCode, startTime); | ||
| 72 | - } | ||
| 73 | - | ||
| 74 | - lineDateMap = lineDateMapCopy; | ||
| 75 | - lineStartTimeMap = lineStartTimeMapCopy; | ||
| 76 | - } | ||
| 77 | - | ||
| 78 | - private String calcScheduleDate(String startDate){ | ||
| 79 | - long t = System.currentTimeMillis(); | ||
| 80 | - | ||
| 81 | - if(fmtHHmm.print(t).compareTo(startDate) < 0) | ||
| 82 | - t += DAY_TIME; | ||
| 83 | - | ||
| 84 | - return fmtyyyyMMdd.print(t); | ||
| 85 | - } | ||
| 86 | - } | ||
| 87 | -} | 1 | +package com.bsth.common; |
| 2 | + | ||
| 3 | +import com.bsth.Application; | ||
| 4 | +import org.joda.time.format.DateTimeFormat; | ||
| 5 | +import org.joda.time.format.DateTimeFormatter; | ||
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 7 | +import org.springframework.boot.CommandLineRunner; | ||
| 8 | +import org.springframework.core.annotation.Order; | ||
| 9 | +import org.springframework.jdbc.core.JdbcTemplate; | ||
| 10 | +import org.springframework.stereotype.Component; | ||
| 11 | + | ||
| 12 | +import java.util.HashMap; | ||
| 13 | +import java.util.List; | ||
| 14 | +import java.util.Map; | ||
| 15 | +import java.util.concurrent.TimeUnit; | ||
| 16 | + | ||
| 17 | +/** | ||
| 18 | + * 一些基础数据缓存 | ||
| 19 | + * Created by panzhao on 2017/8/24. | ||
| 20 | + */ | ||
| 21 | +@Component | ||
| 22 | +@Order(1) | ||
| 23 | +public class BasicData implements CommandLineRunner { | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 线路编码和在执行的班次日期 | ||
| 27 | + * code ——> yyyy-MM-dd | ||
| 28 | + */ | ||
| 29 | + public static Map<String, String> lineDateMap; | ||
| 30 | + | ||
| 31 | + public static Map<String, String> lineStartTimeMap; | ||
| 32 | + | ||
| 33 | + @Autowired | ||
| 34 | + BasicDataLoader basicDataLoader; | ||
| 35 | + | ||
| 36 | + @Override | ||
| 37 | + public void run(String... strings) throws Exception { | ||
| 38 | + basicDataLoader.run(); | ||
| 39 | + Application.mainServices.scheduleWithFixedDelay(basicDataLoader, 60 * 10, 60 * 10, TimeUnit.SECONDS); | ||
| 40 | + } | ||
| 41 | + | ||
| 42 | + private static DateTimeFormatter fmtHHmm = DateTimeFormat.forPattern("HH:mm"); | ||
| 43 | + private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyyMMdd"); | ||
| 44 | + private static DateTimeFormatter fmtyyyyMMddHHmm = DateTimeFormat.forPattern("yyyy-MM-ddHH:mm"); | ||
| 45 | + private final static long DAY_TIME = 1000 * 60 * 60 * 24L; | ||
| 46 | + | ||
| 47 | + @Component | ||
| 48 | + public static class BasicDataLoader extends Thread { | ||
| 49 | + | ||
| 50 | + @Autowired | ||
| 51 | + JdbcTemplate jdbcTemplate; | ||
| 52 | + | ||
| 53 | + @Override | ||
| 54 | + public void run() { | ||
| 55 | + loadLineDateMap(); | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + private void loadLineDateMap(){ | ||
| 59 | + Map<String, String> lineDateMapCopy = new HashMap<>(); | ||
| 60 | + Map<String, String> lineStartTimeMapCopy = new HashMap<>(); | ||
| 61 | + | ||
| 62 | + String sql = "select START_OPT,t2.LINE_CODE from bsth_c_line_config t1 INNER JOIN bsth_c_line t2 on t1.line=t2.id where t2.line_code is not null"; | ||
| 63 | + //String cts = fmtHHmm.print(System.currentTimeMillis()); | ||
| 64 | + | ||
| 65 | + List<Map<String, Object>> list = jdbcTemplate.queryForList(sql); | ||
| 66 | + String lineCode, startTime; | ||
| 67 | + for(Map<String, Object> map : list){ | ||
| 68 | + lineCode = map.get("LINE_CODE").toString(); | ||
| 69 | + startTime = map.get("START_OPT").toString(); | ||
| 70 | + lineDateMapCopy.put(lineCode, calcScheduleDate(startTime)); | ||
| 71 | + lineStartTimeMapCopy.put(lineCode, startTime); | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + lineDateMap = lineDateMapCopy; | ||
| 75 | + lineStartTimeMap = lineStartTimeMapCopy; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + private String calcScheduleDate(String startDate){ | ||
| 79 | + long t = System.currentTimeMillis(); | ||
| 80 | + | ||
| 81 | + if(fmtHHmm.print(t).compareTo(startDate) < 0) | ||
| 82 | + t += DAY_TIME; | ||
| 83 | + | ||
| 84 | + return fmtyyyyMMdd.print(t); | ||
| 85 | + } | ||
| 86 | + } | ||
| 87 | +} |
src/main/java/com/bsth/common/BusinessCodeData.java
| 1 | -package com.bsth.common; | ||
| 2 | - | ||
| 3 | -import com.alibaba.fastjson.JSONObject; | ||
| 4 | -import org.springframework.stereotype.Component; | ||
| 5 | - | ||
| 6 | -import java.util.HashMap; | ||
| 7 | -import java.util.Map; | ||
| 8 | -import java.util.Set; | ||
| 9 | - | ||
| 10 | -/** | ||
| 11 | - * 公司编码数据 | ||
| 12 | - * Created by panzhao on 2017/10/10. | ||
| 13 | - */ | ||
| 14 | -@Component | ||
| 15 | -public class BusinessCodeData { | ||
| 16 | - | ||
| 17 | - private static String str = "{\"22\": {\"name\": \"金高公司\",\"fgs\": {\"1\": \"四分公司\",\"2\": \"二分公司\",\"3\": \"三分公司\",\"5\": \"一分公司\"}},\"26\": {\"name\": \"南汇公司\",\"fgs\": {\"1\": \"南汇一分\",\"2\": \"南汇二分\",\"3\": \"南汇三分\",\"4\": \"南汇维修公司\",\"5\": \"南汇公司\"}},\"55\": {\"name\": \"上南公司\",\"fgs\": {\"1\": \"上南二分公司\",\"2\": \"上南三分公司\",\"3\": \"上南六分公司\",\"4\": \"上南一分公司\"}},\"05\": {\"name\": \"杨高公司\",\"fgs\": {\"1\": \"川沙分公司\",\"2\": \"金桥分公司\",\"3\": \"芦潮港分公司\",\"5\": \"杨高分公司\",\"6\": \"周浦分公司\"}},\"24\":{\"name\": \"嘉定公交\",\"fgs\": {\"1\": \"一车队\",\"2\": \"二车队\",\"3\": \"三车队\"}},\"77\": {\"name\": \"闵行公司\",\"fgs\": {\"78\": \"闵行公司\"}},\"99\": {\"name\": \"青浦公交\",\"fgs\": {\"100\": \"青浦公交\"}}}"; | ||
| 18 | - static JSONObject data; | ||
| 19 | - | ||
| 20 | - /** | ||
| 21 | - * 编码和名称对照表 | ||
| 22 | - */ | ||
| 23 | - public static Map<String, String> code2Name; | ||
| 24 | - | ||
| 25 | - static{ | ||
| 26 | - data = JSONObject.parseObject(str); | ||
| 27 | - code2Name = new HashMap<>(); | ||
| 28 | - | ||
| 29 | - Set<String> ks = data.keySet(), fgsKs; | ||
| 30 | - JSONObject subObj, fgsObj; | ||
| 31 | - for(String k : ks){ | ||
| 32 | - subObj = JSONObject.parseObject(data.getString(k)); | ||
| 33 | - code2Name.put(k, subObj.getString("name")); | ||
| 34 | - | ||
| 35 | - //fgs | ||
| 36 | - fgsObj = JSONObject.parseObject(subObj.getString("fgs")); | ||
| 37 | - fgsKs = fgsObj.keySet(); | ||
| 38 | - for(String k2 : fgsKs){ | ||
| 39 | - code2Name.put(k + "_" + k2, fgsObj.getString(k2)); | ||
| 40 | - } | ||
| 41 | - } | ||
| 42 | - } | ||
| 43 | -} | 1 | +package com.bsth.common; |
| 2 | + | ||
| 3 | +import com.alibaba.fastjson.JSONObject; | ||
| 4 | +import org.springframework.stereotype.Component; | ||
| 5 | + | ||
| 6 | +import java.util.HashMap; | ||
| 7 | +import java.util.Map; | ||
| 8 | +import java.util.Set; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 公司编码数据 | ||
| 12 | + * Created by panzhao on 2017/10/10. | ||
| 13 | + */ | ||
| 14 | +@Component | ||
| 15 | +public class BusinessCodeData { | ||
| 16 | + | ||
| 17 | + private static String str = "{\"22\": {\"name\": \"金高公司\",\"fgs\": {\"1\": \"四分公司\",\"2\": \"二分公司\",\"3\": \"三分公司\",\"5\": \"一分公司\"}},\"26\": {\"name\": \"南汇公司\",\"fgs\": {\"1\": \"南汇一分\",\"2\": \"南汇二分\",\"3\": \"南汇三分\",\"4\": \"南汇维修公司\",\"5\": \"南汇公司\"}},\"55\": {\"name\": \"上南公司\",\"fgs\": {\"1\": \"上南二分公司\",\"2\": \"上南三分公司\",\"3\": \"上南六分公司\",\"4\": \"上南一分公司\"}},\"05\": {\"name\": \"杨高公司\",\"fgs\": {\"1\": \"川沙分公司\",\"2\": \"金桥分公司\",\"3\": \"芦潮港分公司\",\"5\": \"杨高分公司\",\"6\": \"周浦分公司\"}},\"24\":{\"name\": \"嘉定公交\",\"fgs\": {\"1\": \"一车队\",\"2\": \"二车队\",\"3\": \"三车队\"}},\"77\": {\"name\": \"闵行公司\",\"fgs\": {\"78\": \"闵行公司\"}},\"99\": {\"name\": \"青浦公交\",\"fgs\": {\"100\": \"青浦公交\"}}}"; | ||
| 18 | + static JSONObject data; | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 编码和名称对照表 | ||
| 22 | + */ | ||
| 23 | + public static Map<String, String> code2Name; | ||
| 24 | + | ||
| 25 | + static{ | ||
| 26 | + data = JSONObject.parseObject(str); | ||
| 27 | + code2Name = new HashMap<>(); | ||
| 28 | + | ||
| 29 | + Set<String> ks = data.keySet(), fgsKs; | ||
| 30 | + JSONObject subObj, fgsObj; | ||
| 31 | + for(String k : ks){ | ||
| 32 | + subObj = JSONObject.parseObject(data.getString(k)); | ||
| 33 | + code2Name.put(k, subObj.getString("name")); | ||
| 34 | + | ||
| 35 | + //fgs | ||
| 36 | + fgsObj = JSONObject.parseObject(subObj.getString("fgs")); | ||
| 37 | + fgsKs = fgsObj.keySet(); | ||
| 38 | + for(String k2 : fgsKs){ | ||
| 39 | + code2Name.put(k + "_" + k2, fgsObj.getString(k2)); | ||
| 40 | + } | ||
| 41 | + } | ||
| 42 | + } | ||
| 43 | +} |
src/main/java/com/bsth/common/ResponseCode.java
| 1 | -package com.bsth.common; | ||
| 2 | - | ||
| 3 | -/** | ||
| 4 | - * | ||
| 5 | - * @ClassName: ResponseCode | ||
| 6 | - * @Description: TODO(响应状态码) | ||
| 7 | - * @author PanZhao | ||
| 8 | - * @date 2016年3月18日 下午11:12:08 | ||
| 9 | - * | ||
| 10 | - */ | ||
| 11 | -public enum ResponseCode { | ||
| 12 | - | ||
| 13 | - SUCCESS("操作成功", 200), | ||
| 14 | - NO_PERMISSION("无资源访问权限", 403), | ||
| 15 | - NO_AUTHENTICATION("客户端未授权", 407), | ||
| 16 | - ERROR("服务器异常", 500); | ||
| 17 | - | ||
| 18 | - private String text; | ||
| 19 | - private int code; | ||
| 20 | - | ||
| 21 | - ResponseCode(String text, int code) { | ||
| 22 | - this.text = text; | ||
| 23 | - this.code = code; | ||
| 24 | - } | ||
| 25 | - | ||
| 26 | - @Override | ||
| 27 | - public String toString() { | ||
| 28 | - return this.code + ""; | ||
| 29 | - } | ||
| 30 | - | ||
| 31 | - public String getText() { | ||
| 32 | - return this.text; | ||
| 33 | - } | ||
| 34 | -} | 1 | +package com.bsth.common; |
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * | ||
| 5 | + * @ClassName: ResponseCode | ||
| 6 | + * @Description: TODO(响应状态码) | ||
| 7 | + * @author PanZhao | ||
| 8 | + * @date 2016年3月18日 下午11:12:08 | ||
| 9 | + * | ||
| 10 | + */ | ||
| 11 | +public enum ResponseCode { | ||
| 12 | + | ||
| 13 | + SUCCESS("操作成功", 200), | ||
| 14 | + NO_PERMISSION("无资源访问权限", 403), | ||
| 15 | + NO_AUTHENTICATION("客户端未授权", 407), | ||
| 16 | + ERROR("服务器异常", 500); | ||
| 17 | + | ||
| 18 | + private String text; | ||
| 19 | + private int code; | ||
| 20 | + | ||
| 21 | + ResponseCode(String text, int code) { | ||
| 22 | + this.text = text; | ||
| 23 | + this.code = code; | ||
| 24 | + } | ||
| 25 | + | ||
| 26 | + @Override | ||
| 27 | + public String toString() { | ||
| 28 | + return this.code + ""; | ||
| 29 | + } | ||
| 30 | + | ||
| 31 | + public String getText() { | ||
| 32 | + return this.text; | ||
| 33 | + } | ||
| 34 | +} |
src/main/java/com/bsth/controller/UserController.java
| 1 | -package com.bsth.controller; | ||
| 2 | - | ||
| 3 | -import com.bsth.service.UserService; | ||
| 4 | -import org.springframework.beans.factory.annotation.Autowired; | ||
| 5 | -import org.springframework.web.bind.annotation.RequestMapping; | ||
| 6 | -import org.springframework.web.bind.annotation.RestController; | ||
| 7 | - | ||
| 8 | -/** | ||
| 9 | - * Created by panzhao on 2017/9/4. | ||
| 10 | - */ | ||
| 11 | -@RestController | ||
| 12 | -@RequestMapping("/user") | ||
| 13 | -public class UserController { | ||
| 14 | - | ||
| 15 | - @Autowired | ||
| 16 | - UserService userService; | ||
| 17 | - | ||
| 18 | - @RequestMapping("load_db_data") | ||
| 19 | - private void loadDbData(){ | ||
| 20 | - userService.loadData(); | ||
| 21 | - } | ||
| 22 | -} | 1 | +package com.bsth.controller; |
| 2 | + | ||
| 3 | +import com.bsth.service.UserService; | ||
| 4 | +import org.springframework.beans.factory.annotation.Autowired; | ||
| 5 | +import org.springframework.web.bind.annotation.RequestMapping; | ||
| 6 | +import org.springframework.web.bind.annotation.RestController; | ||
| 7 | + | ||
| 8 | +/** | ||
| 9 | + * Created by panzhao on 2017/9/4. | ||
| 10 | + */ | ||
| 11 | +@RestController | ||
| 12 | +@RequestMapping("/user") | ||
| 13 | +public class UserController { | ||
| 14 | + | ||
| 15 | + @Autowired | ||
| 16 | + UserService userService; | ||
| 17 | + | ||
| 18 | + @RequestMapping("load_db_data") | ||
| 19 | + private void loadDbData(){ | ||
| 20 | + userService.loadData(); | ||
| 21 | + } | ||
| 22 | +} |
src/main/java/com/bsth/entity/ChildTaskPlan.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | -import com.bsth.server_rs.adapter.DateTimeAdapter; | ||
| 4 | -import com.fasterxml.jackson.annotation.JsonIgnore; | ||
| 5 | - | ||
| 6 | -import javax.persistence.*; | ||
| 7 | -import javax.xml.bind.annotation.XmlRootElement; | ||
| 8 | -import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||
| 9 | -import java.io.Serializable; | ||
| 10 | -import java.util.Date; | ||
| 11 | - | ||
| 12 | - | ||
| 13 | -/** | ||
| 14 | - * | ||
| 15 | - * @ClassName: ChildTaskPlan | ||
| 16 | - * @Description: TODO(子任务) | ||
| 17 | - * @author PanZhao | ||
| 18 | - * @date 2016年6月20日 上午11:22:22 | ||
| 19 | - * | ||
| 20 | - */ | ||
| 21 | -@XmlRootElement | ||
| 22 | -@Entity | ||
| 23 | -@Table(name = "bsth_c_s_child_task") | ||
| 24 | -@NamedEntityGraphs({ | ||
| 25 | - @NamedEntityGraph(name = "childTaskPlan_schedule", attributeNodes = { | ||
| 26 | - @NamedAttributeNode("schedule") | ||
| 27 | - }) | ||
| 28 | -}) | ||
| 29 | -public class ChildTaskPlan implements Serializable { | ||
| 30 | - | ||
| 31 | - @Id | ||
| 32 | - private Long id; | ||
| 33 | - | ||
| 34 | - /** | ||
| 35 | - * 任务类型1 | ||
| 36 | - * 正常,临加 | ||
| 37 | - */ | ||
| 38 | - private String type1; | ||
| 39 | - | ||
| 40 | - /** | ||
| 41 | - * 任务类型2 | ||
| 42 | - * 1 线路上站点间 | ||
| 43 | - * 2 进场 | ||
| 44 | - * 3 出场 | ||
| 45 | - * 4 区间掉头 | ||
| 46 | - */ | ||
| 47 | - private String type2; | ||
| 48 | - | ||
| 49 | - /** | ||
| 50 | - * 起点 | ||
| 51 | - */ | ||
| 52 | - private String startStation; | ||
| 53 | - | ||
| 54 | - /** | ||
| 55 | - * 起点站名称 | ||
| 56 | - */ | ||
| 57 | - private String startStationName; | ||
| 58 | - | ||
| 59 | - /** | ||
| 60 | - * 终点 | ||
| 61 | - */ | ||
| 62 | - private String endStation; | ||
| 63 | - | ||
| 64 | - /** | ||
| 65 | - * 终点站名称 | ||
| 66 | - */ | ||
| 67 | - private String endStationName; | ||
| 68 | - | ||
| 69 | - /** | ||
| 70 | - * 里程类型 | ||
| 71 | - */ | ||
| 72 | - private String mileageType; | ||
| 73 | - | ||
| 74 | - /** | ||
| 75 | - * 里程 | ||
| 76 | - */ | ||
| 77 | - private Float mileage; | ||
| 78 | - | ||
| 79 | - /** | ||
| 80 | - * 开始时间 HH:mm | ||
| 81 | - */ | ||
| 82 | - private String startDate; | ||
| 83 | - | ||
| 84 | - /** | ||
| 85 | - * 结束时间 HH:mm | ||
| 86 | - */ | ||
| 87 | - private String endDate; | ||
| 88 | - | ||
| 89 | - /** | ||
| 90 | - * 是否烂班 | ||
| 91 | - */ | ||
| 92 | - private boolean destroy; | ||
| 93 | - | ||
| 94 | - /** | ||
| 95 | - * 烂班原因 | ||
| 96 | - */ | ||
| 97 | - private String destroyReason; | ||
| 98 | - | ||
| 99 | - /** 创建日期 */ | ||
| 100 | - private Date createDate; | ||
| 101 | - | ||
| 102 | - /** | ||
| 103 | - * 主排班计划 | ||
| 104 | - */ | ||
| 105 | - @JsonIgnore | ||
| 106 | - @ManyToOne(fetch = FetchType.LAZY) | ||
| 107 | - @JoinColumn(name = "schedule") | ||
| 108 | - private ScheduleRealInfo schedule; | ||
| 109 | - | ||
| 110 | - private String remarks; | ||
| 111 | - | ||
| 112 | - public Long getId() { | ||
| 113 | - return id; | ||
| 114 | - } | ||
| 115 | - | ||
| 116 | - public void setId(Long id) { | ||
| 117 | - this.id = id; | ||
| 118 | - } | ||
| 119 | - | ||
| 120 | - public String getType1() { | ||
| 121 | - return type1; | ||
| 122 | - } | ||
| 123 | - | ||
| 124 | - public void setType1(String type1) { | ||
| 125 | - this.type1 = type1; | ||
| 126 | - } | ||
| 127 | - | ||
| 128 | - public String getType2() { | ||
| 129 | - return type2; | ||
| 130 | - } | ||
| 131 | - | ||
| 132 | - public void setType2(String type2) { | ||
| 133 | - this.type2 = type2; | ||
| 134 | - } | ||
| 135 | - | ||
| 136 | - public String getStartStation() { | ||
| 137 | - return startStation; | ||
| 138 | - } | ||
| 139 | - | ||
| 140 | - public void setStartStation(String startStation) { | ||
| 141 | - this.startStation = startStation; | ||
| 142 | - } | ||
| 143 | - | ||
| 144 | - public String getEndStation() { | ||
| 145 | - return endStation; | ||
| 146 | - } | ||
| 147 | - | ||
| 148 | - public void setEndStation(String endStation) { | ||
| 149 | - this.endStation = endStation; | ||
| 150 | - } | ||
| 151 | - | ||
| 152 | - public String getMileageType() { | ||
| 153 | - return mileageType; | ||
| 154 | - } | ||
| 155 | - | ||
| 156 | - public void setMileageType(String mileageType) { | ||
| 157 | - this.mileageType = mileageType; | ||
| 158 | - } | ||
| 159 | - | ||
| 160 | - public Float getMileage() { | ||
| 161 | - return mileage; | ||
| 162 | - } | ||
| 163 | - | ||
| 164 | - public void setMileage(Float mileage) { | ||
| 165 | - this.mileage = mileage; | ||
| 166 | - } | ||
| 167 | - | ||
| 168 | - public String getStartDate() { | ||
| 169 | - return startDate; | ||
| 170 | - } | ||
| 171 | - | ||
| 172 | - public void setStartDate(String startDate) { | ||
| 173 | - this.startDate = startDate; | ||
| 174 | - } | ||
| 175 | - | ||
| 176 | - public String getEndDate() { | ||
| 177 | - return endDate; | ||
| 178 | - } | ||
| 179 | - | ||
| 180 | - public void setEndDate(String endDate) { | ||
| 181 | - this.endDate = endDate; | ||
| 182 | - } | ||
| 183 | - | ||
| 184 | - public boolean isDestroy() { | ||
| 185 | - return destroy; | ||
| 186 | - } | ||
| 187 | - | ||
| 188 | - public void setDestroy(boolean destroy) { | ||
| 189 | - this.destroy = destroy; | ||
| 190 | - } | ||
| 191 | - | ||
| 192 | - public String getDestroyReason() { | ||
| 193 | - return destroyReason; | ||
| 194 | - } | ||
| 195 | - | ||
| 196 | - public void setDestroyReason(String destroyReason) { | ||
| 197 | - this.destroyReason = destroyReason; | ||
| 198 | - } | ||
| 199 | - | ||
| 200 | - public ScheduleRealInfo getSchedule() { | ||
| 201 | - return schedule; | ||
| 202 | - } | ||
| 203 | - | ||
| 204 | - public void setSchedule(ScheduleRealInfo schedule) { | ||
| 205 | - this.schedule = schedule; | ||
| 206 | - } | ||
| 207 | - | ||
| 208 | - public String getRemarks() { | ||
| 209 | - return remarks; | ||
| 210 | - } | ||
| 211 | - | ||
| 212 | - public void setRemarks(String remarks) { | ||
| 213 | - this.remarks = remarks; | ||
| 214 | - } | ||
| 215 | - | ||
| 216 | - public String getStartStationName() { | ||
| 217 | - return startStationName; | ||
| 218 | - } | ||
| 219 | - | ||
| 220 | - public void setStartStationName(String startStationName) { | ||
| 221 | - this.startStationName = startStationName; | ||
| 222 | - } | ||
| 223 | - | ||
| 224 | - public String getEndStationName() { | ||
| 225 | - return endStationName; | ||
| 226 | - } | ||
| 227 | - | ||
| 228 | - public void setEndStationName(String endStationName) { | ||
| 229 | - this.endStationName = endStationName; | ||
| 230 | - } | ||
| 231 | - | ||
| 232 | - @Override | ||
| 233 | - public int hashCode() { | ||
| 234 | - return ("c_task" + this.id).hashCode(); | ||
| 235 | - } | ||
| 236 | - | ||
| 237 | - @Override | ||
| 238 | - public boolean equals(Object obj) { | ||
| 239 | - return this.id.equals(((ChildTaskPlan)obj).getId()); | ||
| 240 | - } | ||
| 241 | - | ||
| 242 | - @XmlJavaTypeAdapter(DateTimeAdapter.class) | ||
| 243 | - public Date getCreateDate() { | ||
| 244 | - return createDate; | ||
| 245 | - } | ||
| 246 | - | ||
| 247 | - public void setCreateDate(Date createDate) { | ||
| 248 | - this.createDate = createDate; | ||
| 249 | - } | ||
| 250 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | +import com.bsth.server_rs.adapter.DateTimeAdapter; | ||
| 4 | +import com.fasterxml.jackson.annotation.JsonIgnore; | ||
| 5 | + | ||
| 6 | +import javax.persistence.*; | ||
| 7 | +import javax.xml.bind.annotation.XmlRootElement; | ||
| 8 | +import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; | ||
| 9 | +import java.io.Serializable; | ||
| 10 | +import java.util.Date; | ||
| 11 | + | ||
| 12 | + | ||
| 13 | +/** | ||
| 14 | + * | ||
| 15 | + * @ClassName: ChildTaskPlan | ||
| 16 | + * @Description: TODO(子任务) | ||
| 17 | + * @author PanZhao | ||
| 18 | + * @date 2016年6月20日 上午11:22:22 | ||
| 19 | + * | ||
| 20 | + */ | ||
| 21 | +@XmlRootElement | ||
| 22 | +@Entity | ||
| 23 | +@Table(name = "bsth_c_s_child_task") | ||
| 24 | +@NamedEntityGraphs({ | ||
| 25 | + @NamedEntityGraph(name = "childTaskPlan_schedule", attributeNodes = { | ||
| 26 | + @NamedAttributeNode("schedule") | ||
| 27 | + }) | ||
| 28 | +}) | ||
| 29 | +public class ChildTaskPlan implements Serializable { | ||
| 30 | + | ||
| 31 | + @Id | ||
| 32 | + private Long id; | ||
| 33 | + | ||
| 34 | + /** | ||
| 35 | + * 任务类型1 | ||
| 36 | + * 正常,临加 | ||
| 37 | + */ | ||
| 38 | + private String type1; | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 任务类型2 | ||
| 42 | + * 1 线路上站点间 | ||
| 43 | + * 2 进场 | ||
| 44 | + * 3 出场 | ||
| 45 | + * 4 区间掉头 | ||
| 46 | + */ | ||
| 47 | + private String type2; | ||
| 48 | + | ||
| 49 | + /** | ||
| 50 | + * 起点 | ||
| 51 | + */ | ||
| 52 | + private String startStation; | ||
| 53 | + | ||
| 54 | + /** | ||
| 55 | + * 起点站名称 | ||
| 56 | + */ | ||
| 57 | + private String startStationName; | ||
| 58 | + | ||
| 59 | + /** | ||
| 60 | + * 终点 | ||
| 61 | + */ | ||
| 62 | + private String endStation; | ||
| 63 | + | ||
| 64 | + /** | ||
| 65 | + * 终点站名称 | ||
| 66 | + */ | ||
| 67 | + private String endStationName; | ||
| 68 | + | ||
| 69 | + /** | ||
| 70 | + * 里程类型 | ||
| 71 | + */ | ||
| 72 | + private String mileageType; | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * 里程 | ||
| 76 | + */ | ||
| 77 | + private Float mileage; | ||
| 78 | + | ||
| 79 | + /** | ||
| 80 | + * 开始时间 HH:mm | ||
| 81 | + */ | ||
| 82 | + private String startDate; | ||
| 83 | + | ||
| 84 | + /** | ||
| 85 | + * 结束时间 HH:mm | ||
| 86 | + */ | ||
| 87 | + private String endDate; | ||
| 88 | + | ||
| 89 | + /** | ||
| 90 | + * 是否烂班 | ||
| 91 | + */ | ||
| 92 | + private boolean destroy; | ||
| 93 | + | ||
| 94 | + /** | ||
| 95 | + * 烂班原因 | ||
| 96 | + */ | ||
| 97 | + private String destroyReason; | ||
| 98 | + | ||
| 99 | + /** 创建日期 */ | ||
| 100 | + private Date createDate; | ||
| 101 | + | ||
| 102 | + /** | ||
| 103 | + * 主排班计划 | ||
| 104 | + */ | ||
| 105 | + @JsonIgnore | ||
| 106 | + @ManyToOne(fetch = FetchType.LAZY) | ||
| 107 | + @JoinColumn(name = "schedule") | ||
| 108 | + private ScheduleRealInfo schedule; | ||
| 109 | + | ||
| 110 | + private String remarks; | ||
| 111 | + | ||
| 112 | + public Long getId() { | ||
| 113 | + return id; | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + public void setId(Long id) { | ||
| 117 | + this.id = id; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + public String getType1() { | ||
| 121 | + return type1; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public void setType1(String type1) { | ||
| 125 | + this.type1 = type1; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + public String getType2() { | ||
| 129 | + return type2; | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + public void setType2(String type2) { | ||
| 133 | + this.type2 = type2; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + public String getStartStation() { | ||
| 137 | + return startStation; | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + public void setStartStation(String startStation) { | ||
| 141 | + this.startStation = startStation; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public String getEndStation() { | ||
| 145 | + return endStation; | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + public void setEndStation(String endStation) { | ||
| 149 | + this.endStation = endStation; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + public String getMileageType() { | ||
| 153 | + return mileageType; | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + public void setMileageType(String mileageType) { | ||
| 157 | + this.mileageType = mileageType; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + public Float getMileage() { | ||
| 161 | + return mileage; | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + public void setMileage(Float mileage) { | ||
| 165 | + this.mileage = mileage; | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + public String getStartDate() { | ||
| 169 | + return startDate; | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + public void setStartDate(String startDate) { | ||
| 173 | + this.startDate = startDate; | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + public String getEndDate() { | ||
| 177 | + return endDate; | ||
| 178 | + } | ||
| 179 | + | ||
| 180 | + public void setEndDate(String endDate) { | ||
| 181 | + this.endDate = endDate; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public boolean isDestroy() { | ||
| 185 | + return destroy; | ||
| 186 | + } | ||
| 187 | + | ||
| 188 | + public void setDestroy(boolean destroy) { | ||
| 189 | + this.destroy = destroy; | ||
| 190 | + } | ||
| 191 | + | ||
| 192 | + public String getDestroyReason() { | ||
| 193 | + return destroyReason; | ||
| 194 | + } | ||
| 195 | + | ||
| 196 | + public void setDestroyReason(String destroyReason) { | ||
| 197 | + this.destroyReason = destroyReason; | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + public ScheduleRealInfo getSchedule() { | ||
| 201 | + return schedule; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + public void setSchedule(ScheduleRealInfo schedule) { | ||
| 205 | + this.schedule = schedule; | ||
| 206 | + } | ||
| 207 | + | ||
| 208 | + public String getRemarks() { | ||
| 209 | + return remarks; | ||
| 210 | + } | ||
| 211 | + | ||
| 212 | + public void setRemarks(String remarks) { | ||
| 213 | + this.remarks = remarks; | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + public String getStartStationName() { | ||
| 217 | + return startStationName; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + public void setStartStationName(String startStationName) { | ||
| 221 | + this.startStationName = startStationName; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public String getEndStationName() { | ||
| 225 | + return endStationName; | ||
| 226 | + } | ||
| 227 | + | ||
| 228 | + public void setEndStationName(String endStationName) { | ||
| 229 | + this.endStationName = endStationName; | ||
| 230 | + } | ||
| 231 | + | ||
| 232 | + @Override | ||
| 233 | + public int hashCode() { | ||
| 234 | + return ("c_task" + this.id).hashCode(); | ||
| 235 | + } | ||
| 236 | + | ||
| 237 | + @Override | ||
| 238 | + public boolean equals(Object obj) { | ||
| 239 | + return this.id.equals(((ChildTaskPlan)obj).getId()); | ||
| 240 | + } | ||
| 241 | + | ||
| 242 | + @XmlJavaTypeAdapter(DateTimeAdapter.class) | ||
| 243 | + public Date getCreateDate() { | ||
| 244 | + return createDate; | ||
| 245 | + } | ||
| 246 | + | ||
| 247 | + public void setCreateDate(Date createDate) { | ||
| 248 | + this.createDate = createDate; | ||
| 249 | + } | ||
| 250 | +} |
src/main/java/com/bsth/entity/DDYAuthority.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | -/** | ||
| 4 | - * 调度员对应的线路权限 | ||
| 5 | - * Created by panzhao on 2017/3/27. | ||
| 6 | - */ | ||
| 7 | -public class DDYAuthority { | ||
| 8 | - | ||
| 9 | - /** 调度员编号 */ | ||
| 10 | - private String ddy_id; | ||
| 11 | - | ||
| 12 | - /** 可调度的线路编码 ,号分隔多个 */ | ||
| 13 | - private String idx; | ||
| 14 | - | ||
| 15 | - /** | ||
| 16 | - * 调度模式 0: 监控模式 1:主调模式 | ||
| 17 | - */ | ||
| 18 | - private int pattern; | ||
| 19 | - | ||
| 20 | - public String getDdy_id() { | ||
| 21 | - return ddy_id; | ||
| 22 | - } | ||
| 23 | - | ||
| 24 | - public void setDdy_id(String ddy_id) { | ||
| 25 | - this.ddy_id = ddy_id; | ||
| 26 | - } | ||
| 27 | - | ||
| 28 | - public String getIdx() { | ||
| 29 | - return idx; | ||
| 30 | - } | ||
| 31 | - | ||
| 32 | - public void setIdx(String idx) { | ||
| 33 | - this.idx = idx; | ||
| 34 | - } | ||
| 35 | - | ||
| 36 | - public int getPattern() { | ||
| 37 | - return pattern; | ||
| 38 | - } | ||
| 39 | - | ||
| 40 | - public void setPattern(int pattern) { | ||
| 41 | - this.pattern = pattern; | ||
| 42 | - } | ||
| 43 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | +/** | ||
| 4 | + * 调度员对应的线路权限 | ||
| 5 | + * Created by panzhao on 2017/3/27. | ||
| 6 | + */ | ||
| 7 | +public class DDYAuthority { | ||
| 8 | + | ||
| 9 | + /** 调度员编号 */ | ||
| 10 | + private String ddy_id; | ||
| 11 | + | ||
| 12 | + /** 可调度的线路编码 ,号分隔多个 */ | ||
| 13 | + private String idx; | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 调度模式 0: 监控模式 1:主调模式 | ||
| 17 | + */ | ||
| 18 | + private int pattern; | ||
| 19 | + | ||
| 20 | + public String getDdy_id() { | ||
| 21 | + return ddy_id; | ||
| 22 | + } | ||
| 23 | + | ||
| 24 | + public void setDdy_id(String ddy_id) { | ||
| 25 | + this.ddy_id = ddy_id; | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + public String getIdx() { | ||
| 29 | + return idx; | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + public void setIdx(String idx) { | ||
| 33 | + this.idx = idx; | ||
| 34 | + } | ||
| 35 | + | ||
| 36 | + public int getPattern() { | ||
| 37 | + return pattern; | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + public void setPattern(int pattern) { | ||
| 41 | + this.pattern = pattern; | ||
| 42 | + } | ||
| 43 | +} |
src/main/java/com/bsth/entity/DutyEmployee.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | -import javax.persistence.*; | ||
| 4 | - | ||
| 5 | -/** | ||
| 6 | - * 当班调度员 | ||
| 7 | - * Created by panzhao on 2017/1/5. | ||
| 8 | - */ | ||
| 9 | -@Entity | ||
| 10 | -@Table(name = "bsth_c_sys_duty_employee") | ||
| 11 | -public class DutyEmployee { | ||
| 12 | - | ||
| 13 | - @Id | ||
| 14 | - @GeneratedValue | ||
| 15 | - private Long id; | ||
| 16 | - | ||
| 17 | - /** | ||
| 18 | - * 员工ID | ||
| 19 | - */ | ||
| 20 | - private Integer uId; | ||
| 21 | - | ||
| 22 | - /** | ||
| 23 | - * 员工姓名 | ||
| 24 | - */ | ||
| 25 | - private String uName; | ||
| 26 | - | ||
| 27 | - /** | ||
| 28 | - * 线路编码 ,号分割多个 | ||
| 29 | - */ | ||
| 30 | - private String codeIdx; | ||
| 31 | - | ||
| 32 | - /** | ||
| 33 | - * 登入线调时间 | ||
| 34 | - */ | ||
| 35 | - private Long ts; | ||
| 36 | - | ||
| 37 | - /** | ||
| 38 | - * 是否主调模式进入 | ||
| 39 | - */ | ||
| 40 | - private boolean main; | ||
| 41 | - | ||
| 42 | - public Integer getuId() { | ||
| 43 | - return uId; | ||
| 44 | - } | ||
| 45 | - | ||
| 46 | - public void setuId(Integer uId) { | ||
| 47 | - this.uId = uId; | ||
| 48 | - } | ||
| 49 | - | ||
| 50 | - public String getuName() { | ||
| 51 | - return uName; | ||
| 52 | - } | ||
| 53 | - | ||
| 54 | - public void setuName(String uName) { | ||
| 55 | - this.uName = uName; | ||
| 56 | - } | ||
| 57 | - | ||
| 58 | - public String getCodeIdx() { | ||
| 59 | - return codeIdx; | ||
| 60 | - } | ||
| 61 | - | ||
| 62 | - public void setCodeIdx(String codeIdx) { | ||
| 63 | - this.codeIdx = codeIdx; | ||
| 64 | - } | ||
| 65 | - | ||
| 66 | - public Long getTs() { | ||
| 67 | - return ts; | ||
| 68 | - } | ||
| 69 | - | ||
| 70 | - public void setTs(Long ts) { | ||
| 71 | - this.ts = ts; | ||
| 72 | - } | ||
| 73 | - | ||
| 74 | - public boolean isMain() { | ||
| 75 | - return main; | ||
| 76 | - } | ||
| 77 | - | ||
| 78 | - public void setMain(boolean main) { | ||
| 79 | - this.main = main; | ||
| 80 | - } | ||
| 81 | - | ||
| 82 | - public Long getId() { | ||
| 83 | - return id; | ||
| 84 | - } | ||
| 85 | - | ||
| 86 | - public void setId(Long id) { | ||
| 87 | - this.id = id; | ||
| 88 | - } | ||
| 89 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | +import javax.persistence.*; | ||
| 4 | + | ||
| 5 | +/** | ||
| 6 | + * 当班调度员 | ||
| 7 | + * Created by panzhao on 2017/1/5. | ||
| 8 | + */ | ||
| 9 | +@Entity | ||
| 10 | +@Table(name = "bsth_c_sys_duty_employee") | ||
| 11 | +public class DutyEmployee { | ||
| 12 | + | ||
| 13 | + @Id | ||
| 14 | + @GeneratedValue | ||
| 15 | + private Long id; | ||
| 16 | + | ||
| 17 | + /** | ||
| 18 | + * 员工ID | ||
| 19 | + */ | ||
| 20 | + private Integer uId; | ||
| 21 | + | ||
| 22 | + /** | ||
| 23 | + * 员工姓名 | ||
| 24 | + */ | ||
| 25 | + private String uName; | ||
| 26 | + | ||
| 27 | + /** | ||
| 28 | + * 线路编码 ,号分割多个 | ||
| 29 | + */ | ||
| 30 | + private String codeIdx; | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 登入线调时间 | ||
| 34 | + */ | ||
| 35 | + private Long ts; | ||
| 36 | + | ||
| 37 | + /** | ||
| 38 | + * 是否主调模式进入 | ||
| 39 | + */ | ||
| 40 | + private boolean main; | ||
| 41 | + | ||
| 42 | + public Integer getuId() { | ||
| 43 | + return uId; | ||
| 44 | + } | ||
| 45 | + | ||
| 46 | + public void setuId(Integer uId) { | ||
| 47 | + this.uId = uId; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + public String getuName() { | ||
| 51 | + return uName; | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + public void setuName(String uName) { | ||
| 55 | + this.uName = uName; | ||
| 56 | + } | ||
| 57 | + | ||
| 58 | + public String getCodeIdx() { | ||
| 59 | + return codeIdx; | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + public void setCodeIdx(String codeIdx) { | ||
| 63 | + this.codeIdx = codeIdx; | ||
| 64 | + } | ||
| 65 | + | ||
| 66 | + public Long getTs() { | ||
| 67 | + return ts; | ||
| 68 | + } | ||
| 69 | + | ||
| 70 | + public void setTs(Long ts) { | ||
| 71 | + this.ts = ts; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public boolean isMain() { | ||
| 75 | + return main; | ||
| 76 | + } | ||
| 77 | + | ||
| 78 | + public void setMain(boolean main) { | ||
| 79 | + this.main = main; | ||
| 80 | + } | ||
| 81 | + | ||
| 82 | + public Long getId() { | ||
| 83 | + return id; | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public void setId(Long id) { | ||
| 87 | + this.id = id; | ||
| 88 | + } | ||
| 89 | +} |
src/main/java/com/bsth/entity/OilInfo.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | - | ||
| 4 | -import org.springframework.format.annotation.DateTimeFormat; | ||
| 5 | - | ||
| 6 | -import javax.persistence.Entity; | ||
| 7 | -import javax.persistence.Id; | ||
| 8 | -import javax.persistence.Table; | ||
| 9 | -import java.io.Serializable; | ||
| 10 | -import java.util.Date; | ||
| 11 | - | ||
| 12 | -/** | ||
| 13 | - * 油量信息表 | ||
| 14 | - */ | ||
| 15 | -@Entity | ||
| 16 | -@Table(name = "bsth_c_ylb") | ||
| 17 | -public class OilInfo implements Serializable { | ||
| 18 | - @Id | ||
| 19 | - private Integer id; | ||
| 20 | - /** | ||
| 21 | - * 日期 | ||
| 22 | - */ | ||
| 23 | - @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
| 24 | - private Date rq; | ||
| 25 | - /** | ||
| 26 | - * 线路编码 | ||
| 27 | - */ | ||
| 28 | - private String xlbm; | ||
| 29 | - /** | ||
| 30 | - * 所属公司代码 | ||
| 31 | - */ | ||
| 32 | - private String ssgsdm; | ||
| 33 | - /** | ||
| 34 | - * 分公司代码 | ||
| 35 | - */ | ||
| 36 | - private String fgsdm; | ||
| 37 | - /** | ||
| 38 | - * 内部编码 | ||
| 39 | - */ | ||
| 40 | - private String nbbm; | ||
| 41 | - /** | ||
| 42 | - * 驾驶员 | ||
| 43 | - */ | ||
| 44 | - private String jsy; | ||
| 45 | - /** | ||
| 46 | - * 出站里程 | ||
| 47 | - */ | ||
| 48 | - private Double czlc = 0.0; | ||
| 49 | - /** | ||
| 50 | - * 进站里程 | ||
| 51 | - */ | ||
| 52 | - private Double jzlc = 0.0; | ||
| 53 | - /** | ||
| 54 | - * 出站油量 | ||
| 55 | - */ | ||
| 56 | - private Double czyl = 0.0; | ||
| 57 | - /** | ||
| 58 | - * 进站油量 | ||
| 59 | - */ | ||
| 60 | - private Double jzyl = 0.0; | ||
| 61 | - /** | ||
| 62 | - * 加注量 | ||
| 63 | - */ | ||
| 64 | - private Double jzl; | ||
| 65 | - | ||
| 66 | - private int sfkt; | ||
| 67 | - /** | ||
| 68 | - * 开始营运时间(12:12) | ||
| 69 | - */ | ||
| 70 | - private String jhsj; | ||
| 71 | - /** | ||
| 72 | - * 油耗 | ||
| 73 | - */ | ||
| 74 | - private Double yh = 0.0; | ||
| 75 | - /** | ||
| 76 | - * 损耗 | ||
| 77 | - */ | ||
| 78 | - private Double sh = 0.0; | ||
| 79 | - /** | ||
| 80 | - * 损耗原因 | ||
| 81 | - */ | ||
| 82 | - private String shyy; | ||
| 83 | - /** | ||
| 84 | - * 总里程 | ||
| 85 | - */ | ||
| 86 | - private Double zlc = 0.0; | ||
| 87 | - /** | ||
| 88 | - * 数据类型 | ||
| 89 | - */ | ||
| 90 | - private int yhlx; | ||
| 91 | - /** | ||
| 92 | - * 燃油类型 | ||
| 93 | - */ | ||
| 94 | - private String rylx; | ||
| 95 | - /** | ||
| 96 | - * 尿素 | ||
| 97 | - */ | ||
| 98 | - private Double ns = 0.0; | ||
| 99 | - private Double fyylc = 0.0; | ||
| 100 | - /** | ||
| 101 | - * 计划总里程 | ||
| 102 | - */ | ||
| 103 | - private Double jhzlc = 0.0; | ||
| 104 | - private Double jhfyylc = 0.0; | ||
| 105 | - private int jhzbc; | ||
| 106 | - private int jhbc; | ||
| 107 | - private int sjzbc; | ||
| 108 | - private int sjbc; | ||
| 109 | - /** | ||
| 110 | - * 编辑用户 | ||
| 111 | - */ | ||
| 112 | - private String edituser; | ||
| 113 | - /** | ||
| 114 | - * 编辑时间 | ||
| 115 | - */ | ||
| 116 | - private Date edittime; | ||
| 117 | - /** | ||
| 118 | - * 创建时间 | ||
| 119 | - */ | ||
| 120 | - private Date createtime; | ||
| 121 | - /** | ||
| 122 | - * 能源类型,0加油,1充电,2混合 | ||
| 123 | - */ | ||
| 124 | - private int nylx; | ||
| 125 | - | ||
| 126 | - //进场顺序(根据最先出场和最后进场来关联车辆的存油量) | ||
| 127 | - private int jcsx; | ||
| 128 | - | ||
| 129 | - @Override | ||
| 130 | - public int hashCode() { | ||
| 131 | - return this.toString().hashCode(); | ||
| 132 | - } | ||
| 133 | - | ||
| 134 | - @Override | ||
| 135 | - public boolean equals(Object obj) { | ||
| 136 | - return this.toString().equals(((OilInfo)obj).toString()); | ||
| 137 | - } | ||
| 138 | - | ||
| 139 | - @Override | ||
| 140 | - public String toString() { | ||
| 141 | - return "oil_" + this.id; | ||
| 142 | - } | ||
| 143 | - | ||
| 144 | - public Integer getId() { | ||
| 145 | - return id; | ||
| 146 | - } | ||
| 147 | - | ||
| 148 | - public void setId(Integer id) { | ||
| 149 | - this.id = id; | ||
| 150 | - } | ||
| 151 | - | ||
| 152 | - | ||
| 153 | - public void setRq(Date rq) { | ||
| 154 | - this.rq = rq; | ||
| 155 | - } | ||
| 156 | - | ||
| 157 | - public String getXlbm() { | ||
| 158 | - return xlbm; | ||
| 159 | - } | ||
| 160 | - | ||
| 161 | - public void setXlbm(String xlbm) { | ||
| 162 | - this.xlbm = xlbm; | ||
| 163 | - } | ||
| 164 | - | ||
| 165 | - public String getSsgsdm() { | ||
| 166 | - return ssgsdm; | ||
| 167 | - } | ||
| 168 | - | ||
| 169 | - public void setSsgsdm(String ssgsdm) { | ||
| 170 | - this.ssgsdm = ssgsdm; | ||
| 171 | - } | ||
| 172 | - | ||
| 173 | - public String getFgsdm() { | ||
| 174 | - return fgsdm; | ||
| 175 | - } | ||
| 176 | - | ||
| 177 | - public void setFgsdm(String fgsdm) { | ||
| 178 | - this.fgsdm = fgsdm; | ||
| 179 | - } | ||
| 180 | - | ||
| 181 | - public String getNbbm() { | ||
| 182 | - return nbbm; | ||
| 183 | - } | ||
| 184 | - | ||
| 185 | - public void setNbbm(String nbbm) { | ||
| 186 | - this.nbbm = nbbm; | ||
| 187 | - } | ||
| 188 | - | ||
| 189 | - public String getJsy() { | ||
| 190 | - return jsy; | ||
| 191 | - } | ||
| 192 | - | ||
| 193 | - public void setJsy(String jsy) { | ||
| 194 | - this.jsy = jsy; | ||
| 195 | - } | ||
| 196 | - | ||
| 197 | - public Double getCzlc() { | ||
| 198 | - return czlc; | ||
| 199 | - } | ||
| 200 | - | ||
| 201 | - public void setCzlc(Double czlc) { | ||
| 202 | - this.czlc = czlc; | ||
| 203 | - } | ||
| 204 | - | ||
| 205 | - public Double getJzlc() { | ||
| 206 | - return jzlc; | ||
| 207 | - } | ||
| 208 | - | ||
| 209 | - public void setJzlc(Double jzlc) { | ||
| 210 | - this.jzlc = jzlc; | ||
| 211 | - } | ||
| 212 | - | ||
| 213 | - public Double getCzyl() { | ||
| 214 | - return czyl; | ||
| 215 | - } | ||
| 216 | - | ||
| 217 | - public void setCzyl(Double czyl) { | ||
| 218 | - this.czyl = czyl; | ||
| 219 | - } | ||
| 220 | - | ||
| 221 | - public Double getJzyl() { | ||
| 222 | - return jzyl; | ||
| 223 | - } | ||
| 224 | - | ||
| 225 | - public void setJzyl(Double jzyl) { | ||
| 226 | - this.jzyl = jzyl; | ||
| 227 | - } | ||
| 228 | - | ||
| 229 | - public Double getJzl() { | ||
| 230 | - return jzl; | ||
| 231 | - } | ||
| 232 | - | ||
| 233 | - public void setJzl(Double jzl) { | ||
| 234 | - this.jzl = jzl; | ||
| 235 | - } | ||
| 236 | - | ||
| 237 | - public int getSfkt() { | ||
| 238 | - return sfkt; | ||
| 239 | - } | ||
| 240 | - | ||
| 241 | - public void setSfkt(int sfkt) { | ||
| 242 | - this.sfkt = sfkt; | ||
| 243 | - } | ||
| 244 | - | ||
| 245 | - public String getJhsj() { | ||
| 246 | - return jhsj; | ||
| 247 | - } | ||
| 248 | - | ||
| 249 | - public void setJhsj(String jhsj) { | ||
| 250 | - this.jhsj = jhsj; | ||
| 251 | - } | ||
| 252 | - | ||
| 253 | - public Double getYh() { | ||
| 254 | - return yh; | ||
| 255 | - } | ||
| 256 | - | ||
| 257 | - public void setYh(Double yh) { | ||
| 258 | - this.yh = yh; | ||
| 259 | - } | ||
| 260 | - | ||
| 261 | - public Double getSh() { | ||
| 262 | - return sh; | ||
| 263 | - } | ||
| 264 | - | ||
| 265 | - public void setSh(Double sh) { | ||
| 266 | - this.sh = sh; | ||
| 267 | - } | ||
| 268 | - | ||
| 269 | - public String getShyy() { | ||
| 270 | - return shyy; | ||
| 271 | - } | ||
| 272 | - | ||
| 273 | - public void setShyy(String shyy) { | ||
| 274 | - this.shyy = shyy; | ||
| 275 | - } | ||
| 276 | - | ||
| 277 | - public Double getZlc() { | ||
| 278 | - return zlc; | ||
| 279 | - } | ||
| 280 | - | ||
| 281 | - public void setZlc(Double zlc) { | ||
| 282 | - this.zlc = zlc; | ||
| 283 | - } | ||
| 284 | - | ||
| 285 | - public int getYhlx() { | ||
| 286 | - return yhlx; | ||
| 287 | - } | ||
| 288 | - | ||
| 289 | - public void setYhlx(int yhlx) { | ||
| 290 | - this.yhlx = yhlx; | ||
| 291 | - } | ||
| 292 | - | ||
| 293 | - public String getRylx() { | ||
| 294 | - return rylx; | ||
| 295 | - } | ||
| 296 | - | ||
| 297 | - public void setRylx(String rylx) { | ||
| 298 | - this.rylx = rylx; | ||
| 299 | - } | ||
| 300 | - | ||
| 301 | - public Double getNs() { | ||
| 302 | - return ns; | ||
| 303 | - } | ||
| 304 | - | ||
| 305 | - public void setNs(Double ns) { | ||
| 306 | - this.ns = ns; | ||
| 307 | - } | ||
| 308 | - | ||
| 309 | - public Double getFyylc() { | ||
| 310 | - return fyylc; | ||
| 311 | - } | ||
| 312 | - | ||
| 313 | - public void setFyylc(Double fyylc) { | ||
| 314 | - this.fyylc = fyylc; | ||
| 315 | - } | ||
| 316 | - | ||
| 317 | - public Double getJhzlc() { | ||
| 318 | - return jhzlc; | ||
| 319 | - } | ||
| 320 | - | ||
| 321 | - public void setJhzlc(Double jhzlc) { | ||
| 322 | - this.jhzlc = jhzlc; | ||
| 323 | - } | ||
| 324 | - | ||
| 325 | - public Double getJhfyylc() { | ||
| 326 | - return jhfyylc; | ||
| 327 | - } | ||
| 328 | - | ||
| 329 | - public void setJhfyylc(Double jhfyylc) { | ||
| 330 | - this.jhfyylc = jhfyylc; | ||
| 331 | - } | ||
| 332 | - | ||
| 333 | - public int getJhzbc() { | ||
| 334 | - return jhzbc; | ||
| 335 | - } | ||
| 336 | - | ||
| 337 | - public void setJhzbc(int jhzbc) { | ||
| 338 | - this.jhzbc = jhzbc; | ||
| 339 | - } | ||
| 340 | - | ||
| 341 | - public int getJhbc() { | ||
| 342 | - return jhbc; | ||
| 343 | - } | ||
| 344 | - | ||
| 345 | - public void setJhbc(int jhbc) { | ||
| 346 | - this.jhbc = jhbc; | ||
| 347 | - } | ||
| 348 | - | ||
| 349 | - public int getSjzbc() { | ||
| 350 | - return sjzbc; | ||
| 351 | - } | ||
| 352 | - | ||
| 353 | - public void setSjzbc(int sjzbc) { | ||
| 354 | - this.sjzbc = sjzbc; | ||
| 355 | - } | ||
| 356 | - | ||
| 357 | - public int getSjbc() { | ||
| 358 | - return sjbc; | ||
| 359 | - } | ||
| 360 | - | ||
| 361 | - public void setSjbc(int sjbc) { | ||
| 362 | - this.sjbc = sjbc; | ||
| 363 | - } | ||
| 364 | - | ||
| 365 | - public String getEdituser() { | ||
| 366 | - return edituser; | ||
| 367 | - } | ||
| 368 | - | ||
| 369 | - public void setEdituser(String edituser) { | ||
| 370 | - this.edituser = edituser; | ||
| 371 | - } | ||
| 372 | - | ||
| 373 | - public Date getEdittime() { | ||
| 374 | - return edittime; | ||
| 375 | - } | ||
| 376 | - | ||
| 377 | - public void setEdittime(Date edittime) { | ||
| 378 | - this.edittime = edittime; | ||
| 379 | - } | ||
| 380 | - | ||
| 381 | - public Date getCreatetime() { | ||
| 382 | - return createtime; | ||
| 383 | - } | ||
| 384 | - | ||
| 385 | - public void setCreatetime(Date createtime) { | ||
| 386 | - this.createtime = createtime; | ||
| 387 | - } | ||
| 388 | - | ||
| 389 | - public int getNylx() { | ||
| 390 | - return nylx; | ||
| 391 | - } | ||
| 392 | - | ||
| 393 | - public void setNylx(int nylx) { | ||
| 394 | - this.nylx = nylx; | ||
| 395 | - } | ||
| 396 | - | ||
| 397 | - public Date getRq() { | ||
| 398 | - return rq; | ||
| 399 | - } | ||
| 400 | - | ||
| 401 | - public int getJcsx() { | ||
| 402 | - return jcsx; | ||
| 403 | - } | ||
| 404 | - | ||
| 405 | - public void setJcsx(int jcsx) { | ||
| 406 | - this.jcsx = jcsx; | ||
| 407 | - } | ||
| 408 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | + | ||
| 4 | +import org.springframework.format.annotation.DateTimeFormat; | ||
| 5 | + | ||
| 6 | +import javax.persistence.Entity; | ||
| 7 | +import javax.persistence.Id; | ||
| 8 | +import javax.persistence.Table; | ||
| 9 | +import java.io.Serializable; | ||
| 10 | +import java.util.Date; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 油量信息表 | ||
| 14 | + */ | ||
| 15 | +@Entity | ||
| 16 | +@Table(name = "bsth_c_ylb") | ||
| 17 | +public class OilInfo implements Serializable { | ||
| 18 | + @Id | ||
| 19 | + private Integer id; | ||
| 20 | + /** | ||
| 21 | + * 日期 | ||
| 22 | + */ | ||
| 23 | + @DateTimeFormat(pattern = "yyyy-MM-dd") | ||
| 24 | + private Date rq; | ||
| 25 | + /** | ||
| 26 | + * 线路编码 | ||
| 27 | + */ | ||
| 28 | + private String xlbm; | ||
| 29 | + /** | ||
| 30 | + * 所属公司代码 | ||
| 31 | + */ | ||
| 32 | + private String ssgsdm; | ||
| 33 | + /** | ||
| 34 | + * 分公司代码 | ||
| 35 | + */ | ||
| 36 | + private String fgsdm; | ||
| 37 | + /** | ||
| 38 | + * 内部编码 | ||
| 39 | + */ | ||
| 40 | + private String nbbm; | ||
| 41 | + /** | ||
| 42 | + * 驾驶员 | ||
| 43 | + */ | ||
| 44 | + private String jsy; | ||
| 45 | + /** | ||
| 46 | + * 出站里程 | ||
| 47 | + */ | ||
| 48 | + private Double czlc = 0.0; | ||
| 49 | + /** | ||
| 50 | + * 进站里程 | ||
| 51 | + */ | ||
| 52 | + private Double jzlc = 0.0; | ||
| 53 | + /** | ||
| 54 | + * 出站油量 | ||
| 55 | + */ | ||
| 56 | + private Double czyl = 0.0; | ||
| 57 | + /** | ||
| 58 | + * 进站油量 | ||
| 59 | + */ | ||
| 60 | + private Double jzyl = 0.0; | ||
| 61 | + /** | ||
| 62 | + * 加注量 | ||
| 63 | + */ | ||
| 64 | + private Double jzl; | ||
| 65 | + | ||
| 66 | + private int sfkt; | ||
| 67 | + /** | ||
| 68 | + * 开始营运时间(12:12) | ||
| 69 | + */ | ||
| 70 | + private String jhsj; | ||
| 71 | + /** | ||
| 72 | + * 油耗 | ||
| 73 | + */ | ||
| 74 | + private Double yh = 0.0; | ||
| 75 | + /** | ||
| 76 | + * 损耗 | ||
| 77 | + */ | ||
| 78 | + private Double sh = 0.0; | ||
| 79 | + /** | ||
| 80 | + * 损耗原因 | ||
| 81 | + */ | ||
| 82 | + private String shyy; | ||
| 83 | + /** | ||
| 84 | + * 总里程 | ||
| 85 | + */ | ||
| 86 | + private Double zlc = 0.0; | ||
| 87 | + /** | ||
| 88 | + * 数据类型 | ||
| 89 | + */ | ||
| 90 | + private int yhlx; | ||
| 91 | + /** | ||
| 92 | + * 燃油类型 | ||
| 93 | + */ | ||
| 94 | + private String rylx; | ||
| 95 | + /** | ||
| 96 | + * 尿素 | ||
| 97 | + */ | ||
| 98 | + private Double ns = 0.0; | ||
| 99 | + private Double fyylc = 0.0; | ||
| 100 | + /** | ||
| 101 | + * 计划总里程 | ||
| 102 | + */ | ||
| 103 | + private Double jhzlc = 0.0; | ||
| 104 | + private Double jhfyylc = 0.0; | ||
| 105 | + private int jhzbc; | ||
| 106 | + private int jhbc; | ||
| 107 | + private int sjzbc; | ||
| 108 | + private int sjbc; | ||
| 109 | + /** | ||
| 110 | + * 编辑用户 | ||
| 111 | + */ | ||
| 112 | + private String edituser; | ||
| 113 | + /** | ||
| 114 | + * 编辑时间 | ||
| 115 | + */ | ||
| 116 | + private Date edittime; | ||
| 117 | + /** | ||
| 118 | + * 创建时间 | ||
| 119 | + */ | ||
| 120 | + private Date createtime; | ||
| 121 | + /** | ||
| 122 | + * 能源类型,0加油,1充电,2混合 | ||
| 123 | + */ | ||
| 124 | + private int nylx; | ||
| 125 | + | ||
| 126 | + //进场顺序(根据最先出场和最后进场来关联车辆的存油量) | ||
| 127 | + private int jcsx; | ||
| 128 | + | ||
| 129 | + @Override | ||
| 130 | + public int hashCode() { | ||
| 131 | + return this.toString().hashCode(); | ||
| 132 | + } | ||
| 133 | + | ||
| 134 | + @Override | ||
| 135 | + public boolean equals(Object obj) { | ||
| 136 | + return this.toString().equals(((OilInfo)obj).toString()); | ||
| 137 | + } | ||
| 138 | + | ||
| 139 | + @Override | ||
| 140 | + public String toString() { | ||
| 141 | + return "oil_" + this.id; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public Integer getId() { | ||
| 145 | + return id; | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + public void setId(Integer id) { | ||
| 149 | + this.id = id; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + | ||
| 153 | + public void setRq(Date rq) { | ||
| 154 | + this.rq = rq; | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + public String getXlbm() { | ||
| 158 | + return xlbm; | ||
| 159 | + } | ||
| 160 | + | ||
| 161 | + public void setXlbm(String xlbm) { | ||
| 162 | + this.xlbm = xlbm; | ||
| 163 | + } | ||
| 164 | + | ||
| 165 | + public String getSsgsdm() { | ||
| 166 | + return ssgsdm; | ||
| 167 | + } | ||
| 168 | + | ||
| 169 | + public void setSsgsdm(String ssgsdm) { | ||
| 170 | + this.ssgsdm = ssgsdm; | ||
| 171 | + } | ||
| 172 | + | ||
| 173 | + public String getFgsdm() { | ||
| 174 | + return fgsdm; | ||
| 175 | + } | ||
| 176 | + | ||
| 177 | + public void setFgsdm(String fgsdm) { | ||
| 178 | + this.fgsdm = fgsdm; | ||
| 179 | + } | ||
| 180 | + | ||
| 181 | + public String getNbbm() { | ||
| 182 | + return nbbm; | ||
| 183 | + } | ||
| 184 | + | ||
| 185 | + public void setNbbm(String nbbm) { | ||
| 186 | + this.nbbm = nbbm; | ||
| 187 | + } | ||
| 188 | + | ||
| 189 | + public String getJsy() { | ||
| 190 | + return jsy; | ||
| 191 | + } | ||
| 192 | + | ||
| 193 | + public void setJsy(String jsy) { | ||
| 194 | + this.jsy = jsy; | ||
| 195 | + } | ||
| 196 | + | ||
| 197 | + public Double getCzlc() { | ||
| 198 | + return czlc; | ||
| 199 | + } | ||
| 200 | + | ||
| 201 | + public void setCzlc(Double czlc) { | ||
| 202 | + this.czlc = czlc; | ||
| 203 | + } | ||
| 204 | + | ||
| 205 | + public Double getJzlc() { | ||
| 206 | + return jzlc; | ||
| 207 | + } | ||
| 208 | + | ||
| 209 | + public void setJzlc(Double jzlc) { | ||
| 210 | + this.jzlc = jzlc; | ||
| 211 | + } | ||
| 212 | + | ||
| 213 | + public Double getCzyl() { | ||
| 214 | + return czyl; | ||
| 215 | + } | ||
| 216 | + | ||
| 217 | + public void setCzyl(Double czyl) { | ||
| 218 | + this.czyl = czyl; | ||
| 219 | + } | ||
| 220 | + | ||
| 221 | + public Double getJzyl() { | ||
| 222 | + return jzyl; | ||
| 223 | + } | ||
| 224 | + | ||
| 225 | + public void setJzyl(Double jzyl) { | ||
| 226 | + this.jzyl = jzyl; | ||
| 227 | + } | ||
| 228 | + | ||
| 229 | + public Double getJzl() { | ||
| 230 | + return jzl; | ||
| 231 | + } | ||
| 232 | + | ||
| 233 | + public void setJzl(Double jzl) { | ||
| 234 | + this.jzl = jzl; | ||
| 235 | + } | ||
| 236 | + | ||
| 237 | + public int getSfkt() { | ||
| 238 | + return sfkt; | ||
| 239 | + } | ||
| 240 | + | ||
| 241 | + public void setSfkt(int sfkt) { | ||
| 242 | + this.sfkt = sfkt; | ||
| 243 | + } | ||
| 244 | + | ||
| 245 | + public String getJhsj() { | ||
| 246 | + return jhsj; | ||
| 247 | + } | ||
| 248 | + | ||
| 249 | + public void setJhsj(String jhsj) { | ||
| 250 | + this.jhsj = jhsj; | ||
| 251 | + } | ||
| 252 | + | ||
| 253 | + public Double getYh() { | ||
| 254 | + return yh; | ||
| 255 | + } | ||
| 256 | + | ||
| 257 | + public void setYh(Double yh) { | ||
| 258 | + this.yh = yh; | ||
| 259 | + } | ||
| 260 | + | ||
| 261 | + public Double getSh() { | ||
| 262 | + return sh; | ||
| 263 | + } | ||
| 264 | + | ||
| 265 | + public void setSh(Double sh) { | ||
| 266 | + this.sh = sh; | ||
| 267 | + } | ||
| 268 | + | ||
| 269 | + public String getShyy() { | ||
| 270 | + return shyy; | ||
| 271 | + } | ||
| 272 | + | ||
| 273 | + public void setShyy(String shyy) { | ||
| 274 | + this.shyy = shyy; | ||
| 275 | + } | ||
| 276 | + | ||
| 277 | + public Double getZlc() { | ||
| 278 | + return zlc; | ||
| 279 | + } | ||
| 280 | + | ||
| 281 | + public void setZlc(Double zlc) { | ||
| 282 | + this.zlc = zlc; | ||
| 283 | + } | ||
| 284 | + | ||
| 285 | + public int getYhlx() { | ||
| 286 | + return yhlx; | ||
| 287 | + } | ||
| 288 | + | ||
| 289 | + public void setYhlx(int yhlx) { | ||
| 290 | + this.yhlx = yhlx; | ||
| 291 | + } | ||
| 292 | + | ||
| 293 | + public String getRylx() { | ||
| 294 | + return rylx; | ||
| 295 | + } | ||
| 296 | + | ||
| 297 | + public void setRylx(String rylx) { | ||
| 298 | + this.rylx = rylx; | ||
| 299 | + } | ||
| 300 | + | ||
| 301 | + public Double getNs() { | ||
| 302 | + return ns; | ||
| 303 | + } | ||
| 304 | + | ||
| 305 | + public void setNs(Double ns) { | ||
| 306 | + this.ns = ns; | ||
| 307 | + } | ||
| 308 | + | ||
| 309 | + public Double getFyylc() { | ||
| 310 | + return fyylc; | ||
| 311 | + } | ||
| 312 | + | ||
| 313 | + public void setFyylc(Double fyylc) { | ||
| 314 | + this.fyylc = fyylc; | ||
| 315 | + } | ||
| 316 | + | ||
| 317 | + public Double getJhzlc() { | ||
| 318 | + return jhzlc; | ||
| 319 | + } | ||
| 320 | + | ||
| 321 | + public void setJhzlc(Double jhzlc) { | ||
| 322 | + this.jhzlc = jhzlc; | ||
| 323 | + } | ||
| 324 | + | ||
| 325 | + public Double getJhfyylc() { | ||
| 326 | + return jhfyylc; | ||
| 327 | + } | ||
| 328 | + | ||
| 329 | + public void setJhfyylc(Double jhfyylc) { | ||
| 330 | + this.jhfyylc = jhfyylc; | ||
| 331 | + } | ||
| 332 | + | ||
| 333 | + public int getJhzbc() { | ||
| 334 | + return jhzbc; | ||
| 335 | + } | ||
| 336 | + | ||
| 337 | + public void setJhzbc(int jhzbc) { | ||
| 338 | + this.jhzbc = jhzbc; | ||
| 339 | + } | ||
| 340 | + | ||
| 341 | + public int getJhbc() { | ||
| 342 | + return jhbc; | ||
| 343 | + } | ||
| 344 | + | ||
| 345 | + public void setJhbc(int jhbc) { | ||
| 346 | + this.jhbc = jhbc; | ||
| 347 | + } | ||
| 348 | + | ||
| 349 | + public int getSjzbc() { | ||
| 350 | + return sjzbc; | ||
| 351 | + } | ||
| 352 | + | ||
| 353 | + public void setSjzbc(int sjzbc) { | ||
| 354 | + this.sjzbc = sjzbc; | ||
| 355 | + } | ||
| 356 | + | ||
| 357 | + public int getSjbc() { | ||
| 358 | + return sjbc; | ||
| 359 | + } | ||
| 360 | + | ||
| 361 | + public void setSjbc(int sjbc) { | ||
| 362 | + this.sjbc = sjbc; | ||
| 363 | + } | ||
| 364 | + | ||
| 365 | + public String getEdituser() { | ||
| 366 | + return edituser; | ||
| 367 | + } | ||
| 368 | + | ||
| 369 | + public void setEdituser(String edituser) { | ||
| 370 | + this.edituser = edituser; | ||
| 371 | + } | ||
| 372 | + | ||
| 373 | + public Date getEdittime() { | ||
| 374 | + return edittime; | ||
| 375 | + } | ||
| 376 | + | ||
| 377 | + public void setEdittime(Date edittime) { | ||
| 378 | + this.edittime = edittime; | ||
| 379 | + } | ||
| 380 | + | ||
| 381 | + public Date getCreatetime() { | ||
| 382 | + return createtime; | ||
| 383 | + } | ||
| 384 | + | ||
| 385 | + public void setCreatetime(Date createtime) { | ||
| 386 | + this.createtime = createtime; | ||
| 387 | + } | ||
| 388 | + | ||
| 389 | + public int getNylx() { | ||
| 390 | + return nylx; | ||
| 391 | + } | ||
| 392 | + | ||
| 393 | + public void setNylx(int nylx) { | ||
| 394 | + this.nylx = nylx; | ||
| 395 | + } | ||
| 396 | + | ||
| 397 | + public Date getRq() { | ||
| 398 | + return rq; | ||
| 399 | + } | ||
| 400 | + | ||
| 401 | + public int getJcsx() { | ||
| 402 | + return jcsx; | ||
| 403 | + } | ||
| 404 | + | ||
| 405 | + public void setJcsx(int jcsx) { | ||
| 406 | + this.jcsx = jcsx; | ||
| 407 | + } | ||
| 408 | +} |
src/main/java/com/bsth/entity/PasswordUser.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | -import javax.persistence.*; | ||
| 4 | -import java.util.Date; | ||
| 5 | - | ||
| 6 | -/** | ||
| 7 | - * 接口 密码 访问用户 | ||
| 8 | - * Created by panzhao on 2017/3/26. | ||
| 9 | - */ | ||
| 10 | -@Entity | ||
| 11 | -@Table(name = "interface_user") | ||
| 12 | -public class PasswordUser { | ||
| 13 | - | ||
| 14 | - @Id | ||
| 15 | - @GeneratedValue | ||
| 16 | - private Integer id; | ||
| 17 | - | ||
| 18 | - /** 访问密码 */ | ||
| 19 | - private String pwd; | ||
| 20 | - | ||
| 21 | - /** 调用方名称 */ | ||
| 22 | - private String callName; | ||
| 23 | - | ||
| 24 | - /** 创建日期 */ | ||
| 25 | - @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | ||
| 26 | - private Date createDate; | ||
| 27 | - | ||
| 28 | - /** 备注 */ | ||
| 29 | - private String remark; | ||
| 30 | - | ||
| 31 | - public Integer getId() { | ||
| 32 | - return id; | ||
| 33 | - } | ||
| 34 | - | ||
| 35 | - public void setId(Integer id) { | ||
| 36 | - this.id = id; | ||
| 37 | - } | ||
| 38 | - | ||
| 39 | - public String getPwd() { | ||
| 40 | - return pwd; | ||
| 41 | - } | ||
| 42 | - | ||
| 43 | - public void setPwd(String pwd) { | ||
| 44 | - this.pwd = pwd; | ||
| 45 | - } | ||
| 46 | - | ||
| 47 | - public String getCallName() { | ||
| 48 | - return callName; | ||
| 49 | - } | ||
| 50 | - | ||
| 51 | - public void setCallName(String callName) { | ||
| 52 | - this.callName = callName; | ||
| 53 | - } | ||
| 54 | - | ||
| 55 | - public String getRemark() { | ||
| 56 | - return remark; | ||
| 57 | - } | ||
| 58 | - | ||
| 59 | - public void setRemark(String remark) { | ||
| 60 | - this.remark = remark; | ||
| 61 | - } | ||
| 62 | - | ||
| 63 | - public Date getCreateDate() { | ||
| 64 | - return createDate; | ||
| 65 | - } | ||
| 66 | - | ||
| 67 | - public void setCreateDate(Date createDate) { | ||
| 68 | - this.createDate = createDate; | ||
| 69 | - } | ||
| 70 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | +import javax.persistence.*; | ||
| 4 | +import java.util.Date; | ||
| 5 | + | ||
| 6 | +/** | ||
| 7 | + * 接口 密码 访问用户 | ||
| 8 | + * Created by panzhao on 2017/3/26. | ||
| 9 | + */ | ||
| 10 | +@Entity | ||
| 11 | +@Table(name = "interface_user") | ||
| 12 | +public class PasswordUser { | ||
| 13 | + | ||
| 14 | + @Id | ||
| 15 | + @GeneratedValue | ||
| 16 | + private Integer id; | ||
| 17 | + | ||
| 18 | + /** 访问密码 */ | ||
| 19 | + private String pwd; | ||
| 20 | + | ||
| 21 | + /** 调用方名称 */ | ||
| 22 | + private String callName; | ||
| 23 | + | ||
| 24 | + /** 创建日期 */ | ||
| 25 | + @Column(updatable = false, name = "create_date", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | ||
| 26 | + private Date createDate; | ||
| 27 | + | ||
| 28 | + /** 备注 */ | ||
| 29 | + private String remark; | ||
| 30 | + | ||
| 31 | + public Integer getId() { | ||
| 32 | + return id; | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | + public void setId(Integer id) { | ||
| 36 | + this.id = id; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + public String getPwd() { | ||
| 40 | + return pwd; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public void setPwd(String pwd) { | ||
| 44 | + this.pwd = pwd; | ||
| 45 | + } | ||
| 46 | + | ||
| 47 | + public String getCallName() { | ||
| 48 | + return callName; | ||
| 49 | + } | ||
| 50 | + | ||
| 51 | + public void setCallName(String callName) { | ||
| 52 | + this.callName = callName; | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public String getRemark() { | ||
| 56 | + return remark; | ||
| 57 | + } | ||
| 58 | + | ||
| 59 | + public void setRemark(String remark) { | ||
| 60 | + this.remark = remark; | ||
| 61 | + } | ||
| 62 | + | ||
| 63 | + public Date getCreateDate() { | ||
| 64 | + return createDate; | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + public void setCreateDate(Date createDate) { | ||
| 68 | + this.createDate = createDate; | ||
| 69 | + } | ||
| 70 | +} |
src/main/java/com/bsth/entity/SchedulePlanInfo.java
| 1 | -package com.bsth.entity; | ||
| 2 | - | ||
| 3 | -import javax.persistence.Entity; | ||
| 4 | -import javax.persistence.Id; | ||
| 5 | -import javax.persistence.Table; | ||
| 6 | -import java.io.Serializable; | ||
| 7 | -import java.util.Date; | ||
| 8 | - | ||
| 9 | -/** | ||
| 10 | - * 计调 计划排班 | ||
| 11 | - * Created by panzhao on 2017/3/27. | ||
| 12 | - */ | ||
| 13 | -@Entity | ||
| 14 | -@Table(name = "bsth_c_s_sp_info") | ||
| 15 | -public class SchedulePlanInfo implements Serializable { | ||
| 16 | - | ||
| 17 | - /** 主键Id */ | ||
| 18 | - @Id | ||
| 19 | - private Long id; | ||
| 20 | - | ||
| 21 | - /** 排班计划日期 */ | ||
| 22 | - private Date scheduleDate; | ||
| 23 | - | ||
| 24 | - /** 关联的公司名称 */ | ||
| 25 | - private String gsName; | ||
| 26 | - /** 关联的公司编码 */ | ||
| 27 | - private String gsBm; | ||
| 28 | - /** 关联的分公司名称 */ | ||
| 29 | - private String fgsName; | ||
| 30 | - /** 关联的分公司编码 */ | ||
| 31 | - private String fgsBm; | ||
| 32 | - /** 出场顺序号 */ | ||
| 33 | - private Integer ccno; | ||
| 34 | - | ||
| 35 | - /** 关联 bsth_c_line 主键,不做mapping */ | ||
| 36 | - private Integer xl; | ||
| 37 | - /** 线路名称 */ | ||
| 38 | - private String xlName; | ||
| 39 | - /** 线路编码 */ | ||
| 40 | - private String xlBm; | ||
| 41 | - | ||
| 42 | - /** 关联 bsth_c_s_gbi 主键,不做mapping */ | ||
| 43 | - private Long lp; | ||
| 44 | - /** 路牌名称 */ | ||
| 45 | - private String lpName; | ||
| 46 | - | ||
| 47 | - /** 关联 bsth_c_cars 主键,不做mapping */ | ||
| 48 | - private Integer cl; | ||
| 49 | - /** 车辆自编号 */ | ||
| 50 | - private String clZbh; | ||
| 51 | - | ||
| 52 | - /** 当分班的时候,驾驶员会不一样,具体根据规则,还有时刻表决定 */ | ||
| 53 | - /** 报道时间(格式 HH:mm) */ | ||
| 54 | - private String bdTime; | ||
| 55 | - /** 出场时间(格式 HH:mm) */ | ||
| 56 | - private String ccTime; | ||
| 57 | - /** 关联的驾驶员 bsth_c_personnel 主键,不做mapping */ | ||
| 58 | - private Integer j; | ||
| 59 | - /** 驾驶员工号 */ | ||
| 60 | - private String jGh; | ||
| 61 | - /** 驾驶员名字 */ | ||
| 62 | - private String jName; | ||
| 63 | - /** 关联的售票员 bsth_c_personnel 主键,不做mapping */ | ||
| 64 | - private Integer s; | ||
| 65 | - /** 售票员工号 */ | ||
| 66 | - private String sGh; | ||
| 67 | - /** 售票员名字 */ | ||
| 68 | - private String sName; | ||
| 69 | - | ||
| 70 | - // 冗余的时刻明细信息,不做mapping | ||
| 71 | - /** 线路方向(TODO:上下行,上行,下行,这个以后用枚举还是字典再议,现在先用文字) */ | ||
| 72 | - private String xlDir; | ||
| 73 | - /** 起点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ | ||
| 74 | - private Integer qdz; | ||
| 75 | - /** 起点站code */ | ||
| 76 | - private String qdzCode; | ||
| 77 | - /** 起点站名字 */ | ||
| 78 | - private String qdzName; | ||
| 79 | - /** 终点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ | ||
| 80 | - private Integer zdz; | ||
| 81 | - /** 终点站code */ | ||
| 82 | - private String zdzCode; | ||
| 83 | - /** 终点站名字 */ | ||
| 84 | - private String zdzName; | ||
| 85 | - | ||
| 86 | - /** 发车时间(格式 HH:mm) */ | ||
| 87 | - private String fcsj; | ||
| 88 | - /** 发车顺序号 */ | ||
| 89 | - private Integer fcno; | ||
| 90 | - /** 对应班次数 */ | ||
| 91 | - private Integer bcs; | ||
| 92 | - /** 计划里程 */ | ||
| 93 | - private Double jhlc; | ||
| 94 | - /** 班次历时 */ | ||
| 95 | - private Integer bcsj; | ||
| 96 | - | ||
| 97 | - /** 班次类型 字典type=ScheduleType */ | ||
| 98 | - private String bcType; | ||
| 99 | - | ||
| 100 | - /** 关联的时刻表id */ | ||
| 101 | - private Long ttInfo; | ||
| 102 | - /** 关联的时刻表名字 */ | ||
| 103 | - private String ttInfoName; | ||
| 104 | - | ||
| 105 | - @Override | ||
| 106 | - public int hashCode() { | ||
| 107 | - return this.toString().hashCode(); | ||
| 108 | - } | ||
| 109 | - | ||
| 110 | - @Override | ||
| 111 | - public boolean equals(Object obj) { | ||
| 112 | - return this.toString().equals(((SchedulePlanInfo)obj).toString()); | ||
| 113 | - } | ||
| 114 | - | ||
| 115 | - @Override | ||
| 116 | - public String toString() { | ||
| 117 | - return "sch_plan_" + this.id; | ||
| 118 | - } | ||
| 119 | - | ||
| 120 | - public Long getId() { | ||
| 121 | - return id; | ||
| 122 | - } | ||
| 123 | - | ||
| 124 | - public void setId(Long id) { | ||
| 125 | - this.id = id; | ||
| 126 | - } | ||
| 127 | - | ||
| 128 | - public Date getScheduleDate() { | ||
| 129 | - return scheduleDate; | ||
| 130 | - } | ||
| 131 | - | ||
| 132 | - public void setScheduleDate(Date scheduleDate) { | ||
| 133 | - this.scheduleDate = scheduleDate; | ||
| 134 | - } | ||
| 135 | - | ||
| 136 | - public String getGsName() { | ||
| 137 | - return gsName; | ||
| 138 | - } | ||
| 139 | - | ||
| 140 | - public void setGsName(String gsName) { | ||
| 141 | - this.gsName = gsName; | ||
| 142 | - } | ||
| 143 | - | ||
| 144 | - public String getGsBm() { | ||
| 145 | - return gsBm; | ||
| 146 | - } | ||
| 147 | - | ||
| 148 | - public void setGsBm(String gsBm) { | ||
| 149 | - this.gsBm = gsBm; | ||
| 150 | - } | ||
| 151 | - | ||
| 152 | - public String getFgsName() { | ||
| 153 | - return fgsName; | ||
| 154 | - } | ||
| 155 | - | ||
| 156 | - public void setFgsName(String fgsName) { | ||
| 157 | - this.fgsName = fgsName; | ||
| 158 | - } | ||
| 159 | - | ||
| 160 | - public String getFgsBm() { | ||
| 161 | - return fgsBm; | ||
| 162 | - } | ||
| 163 | - | ||
| 164 | - public void setFgsBm(String fgsBm) { | ||
| 165 | - this.fgsBm = fgsBm; | ||
| 166 | - } | ||
| 167 | - | ||
| 168 | - public Integer getCcno() { | ||
| 169 | - return ccno; | ||
| 170 | - } | ||
| 171 | - | ||
| 172 | - public void setCcno(Integer ccno) { | ||
| 173 | - this.ccno = ccno; | ||
| 174 | - } | ||
| 175 | - | ||
| 176 | - public Integer getXl() { | ||
| 177 | - return xl; | ||
| 178 | - } | ||
| 179 | - | ||
| 180 | - public void setXl(Integer xl) { | ||
| 181 | - this.xl = xl; | ||
| 182 | - } | ||
| 183 | - | ||
| 184 | - public String getXlName() { | ||
| 185 | - return xlName; | ||
| 186 | - } | ||
| 187 | - | ||
| 188 | - public void setXlName(String xlName) { | ||
| 189 | - this.xlName = xlName; | ||
| 190 | - } | ||
| 191 | - | ||
| 192 | - public String getXlBm() { | ||
| 193 | - return xlBm; | ||
| 194 | - } | ||
| 195 | - | ||
| 196 | - public void setXlBm(String xlBm) { | ||
| 197 | - this.xlBm = xlBm; | ||
| 198 | - } | ||
| 199 | - | ||
| 200 | - public Long getLp() { | ||
| 201 | - return lp; | ||
| 202 | - } | ||
| 203 | - | ||
| 204 | - public void setLp(Long lp) { | ||
| 205 | - this.lp = lp; | ||
| 206 | - } | ||
| 207 | - | ||
| 208 | - public String getLpName() { | ||
| 209 | - return lpName; | ||
| 210 | - } | ||
| 211 | - | ||
| 212 | - public void setLpName(String lpName) { | ||
| 213 | - this.lpName = lpName; | ||
| 214 | - } | ||
| 215 | - | ||
| 216 | - public Integer getCl() { | ||
| 217 | - return cl; | ||
| 218 | - } | ||
| 219 | - | ||
| 220 | - public void setCl(Integer cl) { | ||
| 221 | - this.cl = cl; | ||
| 222 | - } | ||
| 223 | - | ||
| 224 | - public String getClZbh() { | ||
| 225 | - return clZbh; | ||
| 226 | - } | ||
| 227 | - | ||
| 228 | - public void setClZbh(String clZbh) { | ||
| 229 | - this.clZbh = clZbh; | ||
| 230 | - } | ||
| 231 | - | ||
| 232 | - public String getBdTime() { | ||
| 233 | - return bdTime; | ||
| 234 | - } | ||
| 235 | - | ||
| 236 | - public void setBdTime(String bdTime) { | ||
| 237 | - this.bdTime = bdTime; | ||
| 238 | - } | ||
| 239 | - | ||
| 240 | - public String getCcTime() { | ||
| 241 | - return ccTime; | ||
| 242 | - } | ||
| 243 | - | ||
| 244 | - public void setCcTime(String ccTime) { | ||
| 245 | - this.ccTime = ccTime; | ||
| 246 | - } | ||
| 247 | - | ||
| 248 | - public Integer getJ() { | ||
| 249 | - return j; | ||
| 250 | - } | ||
| 251 | - | ||
| 252 | - public void setJ(Integer j) { | ||
| 253 | - this.j = j; | ||
| 254 | - } | ||
| 255 | - | ||
| 256 | - public String getjGh() { | ||
| 257 | - return jGh; | ||
| 258 | - } | ||
| 259 | - | ||
| 260 | - public void setjGh(String jGh) { | ||
| 261 | - this.jGh = jGh; | ||
| 262 | - } | ||
| 263 | - | ||
| 264 | - public String getjName() { | ||
| 265 | - return jName; | ||
| 266 | - } | ||
| 267 | - | ||
| 268 | - public void setjName(String jName) { | ||
| 269 | - this.jName = jName; | ||
| 270 | - } | ||
| 271 | - | ||
| 272 | - public Integer getS() { | ||
| 273 | - return s; | ||
| 274 | - } | ||
| 275 | - | ||
| 276 | - public void setS(Integer s) { | ||
| 277 | - this.s = s; | ||
| 278 | - } | ||
| 279 | - | ||
| 280 | - public String getsGh() { | ||
| 281 | - return sGh; | ||
| 282 | - } | ||
| 283 | - | ||
| 284 | - public void setsGh(String sGh) { | ||
| 285 | - this.sGh = sGh; | ||
| 286 | - } | ||
| 287 | - | ||
| 288 | - public String getsName() { | ||
| 289 | - return sName; | ||
| 290 | - } | ||
| 291 | - | ||
| 292 | - public void setsName(String sName) { | ||
| 293 | - this.sName = sName; | ||
| 294 | - } | ||
| 295 | - | ||
| 296 | - public String getXlDir() { | ||
| 297 | - return xlDir; | ||
| 298 | - } | ||
| 299 | - | ||
| 300 | - public void setXlDir(String xlDir) { | ||
| 301 | - this.xlDir = xlDir; | ||
| 302 | - } | ||
| 303 | - | ||
| 304 | - public Integer getQdz() { | ||
| 305 | - return qdz; | ||
| 306 | - } | ||
| 307 | - | ||
| 308 | - public void setQdz(Integer qdz) { | ||
| 309 | - this.qdz = qdz; | ||
| 310 | - } | ||
| 311 | - | ||
| 312 | - public String getQdzCode() { | ||
| 313 | - return qdzCode; | ||
| 314 | - } | ||
| 315 | - | ||
| 316 | - public void setQdzCode(String qdzCode) { | ||
| 317 | - this.qdzCode = qdzCode; | ||
| 318 | - } | ||
| 319 | - | ||
| 320 | - public String getQdzName() { | ||
| 321 | - return qdzName; | ||
| 322 | - } | ||
| 323 | - | ||
| 324 | - public void setQdzName(String qdzName) { | ||
| 325 | - this.qdzName = qdzName; | ||
| 326 | - } | ||
| 327 | - | ||
| 328 | - public Integer getZdz() { | ||
| 329 | - return zdz; | ||
| 330 | - } | ||
| 331 | - | ||
| 332 | - public void setZdz(Integer zdz) { | ||
| 333 | - this.zdz = zdz; | ||
| 334 | - } | ||
| 335 | - | ||
| 336 | - public String getZdzCode() { | ||
| 337 | - return zdzCode; | ||
| 338 | - } | ||
| 339 | - | ||
| 340 | - public void setZdzCode(String zdzCode) { | ||
| 341 | - this.zdzCode = zdzCode; | ||
| 342 | - } | ||
| 343 | - | ||
| 344 | - public String getZdzName() { | ||
| 345 | - return zdzName; | ||
| 346 | - } | ||
| 347 | - | ||
| 348 | - public void setZdzName(String zdzName) { | ||
| 349 | - this.zdzName = zdzName; | ||
| 350 | - } | ||
| 351 | - | ||
| 352 | - public String getFcsj() { | ||
| 353 | - return fcsj; | ||
| 354 | - } | ||
| 355 | - | ||
| 356 | - public void setFcsj(String fcsj) { | ||
| 357 | - this.fcsj = fcsj; | ||
| 358 | - } | ||
| 359 | - | ||
| 360 | - public Integer getFcno() { | ||
| 361 | - return fcno; | ||
| 362 | - } | ||
| 363 | - | ||
| 364 | - public void setFcno(Integer fcno) { | ||
| 365 | - this.fcno = fcno; | ||
| 366 | - } | ||
| 367 | - | ||
| 368 | - public Integer getBcs() { | ||
| 369 | - return bcs; | ||
| 370 | - } | ||
| 371 | - | ||
| 372 | - public void setBcs(Integer bcs) { | ||
| 373 | - this.bcs = bcs; | ||
| 374 | - } | ||
| 375 | - | ||
| 376 | - public Double getJhlc() { | ||
| 377 | - return jhlc; | ||
| 378 | - } | ||
| 379 | - | ||
| 380 | - public void setJhlc(Double jhlc) { | ||
| 381 | - this.jhlc = jhlc; | ||
| 382 | - } | ||
| 383 | - | ||
| 384 | - public Integer getBcsj() { | ||
| 385 | - return bcsj; | ||
| 386 | - } | ||
| 387 | - | ||
| 388 | - public void setBcsj(Integer bcsj) { | ||
| 389 | - this.bcsj = bcsj; | ||
| 390 | - } | ||
| 391 | - | ||
| 392 | - public String getBcType() { | ||
| 393 | - return bcType; | ||
| 394 | - } | ||
| 395 | - | ||
| 396 | - public void setBcType(String bcType) { | ||
| 397 | - this.bcType = bcType; | ||
| 398 | - } | ||
| 399 | - | ||
| 400 | - public Long getTtInfo() { | ||
| 401 | - return ttInfo; | ||
| 402 | - } | ||
| 403 | - | ||
| 404 | - public void setTtInfo(Long ttInfo) { | ||
| 405 | - this.ttInfo = ttInfo; | ||
| 406 | - } | ||
| 407 | - | ||
| 408 | - public String getTtInfoName() { | ||
| 409 | - return ttInfoName; | ||
| 410 | - } | ||
| 411 | - | ||
| 412 | - public void setTtInfoName(String ttInfoName) { | ||
| 413 | - this.ttInfoName = ttInfoName; | ||
| 414 | - } | ||
| 415 | -} | 1 | +package com.bsth.entity; |
| 2 | + | ||
| 3 | +import javax.persistence.Entity; | ||
| 4 | +import javax.persistence.Id; | ||
| 5 | +import javax.persistence.Table; | ||
| 6 | +import java.io.Serializable; | ||
| 7 | +import java.util.Date; | ||
| 8 | + | ||
| 9 | +/** | ||
| 10 | + * 计调 计划排班 | ||
| 11 | + * Created by panzhao on 2017/3/27. | ||
| 12 | + */ | ||
| 13 | +@Entity | ||
| 14 | +@Table(name = "bsth_c_s_sp_info") | ||
| 15 | +public class SchedulePlanInfo implements Serializable { | ||
| 16 | + | ||
| 17 | + /** 主键Id */ | ||
| 18 | + @Id | ||
| 19 | + private Long id; | ||
| 20 | + | ||
| 21 | + /** 排班计划日期 */ | ||
| 22 | + private Date scheduleDate; | ||
| 23 | + | ||
| 24 | + /** 关联的公司名称 */ | ||
| 25 | + private String gsName; | ||
| 26 | + /** 关联的公司编码 */ | ||
| 27 | + private String gsBm; | ||
| 28 | + /** 关联的分公司名称 */ | ||
| 29 | + private String fgsName; | ||
| 30 | + /** 关联的分公司编码 */ | ||
| 31 | + private String fgsBm; | ||
| 32 | + /** 出场顺序号 */ | ||
| 33 | + private Integer ccno; | ||
| 34 | + | ||
| 35 | + /** 关联 bsth_c_line 主键,不做mapping */ | ||
| 36 | + private Integer xl; | ||
| 37 | + /** 线路名称 */ | ||
| 38 | + private String xlName; | ||
| 39 | + /** 线路编码 */ | ||
| 40 | + private String xlBm; | ||
| 41 | + | ||
| 42 | + /** 关联 bsth_c_s_gbi 主键,不做mapping */ | ||
| 43 | + private Long lp; | ||
| 44 | + /** 路牌名称 */ | ||
| 45 | + private String lpName; | ||
| 46 | + | ||
| 47 | + /** 关联 bsth_c_cars 主键,不做mapping */ | ||
| 48 | + private Integer cl; | ||
| 49 | + /** 车辆自编号 */ | ||
| 50 | + private String clZbh; | ||
| 51 | + | ||
| 52 | + /** 当分班的时候,驾驶员会不一样,具体根据规则,还有时刻表决定 */ | ||
| 53 | + /** 报道时间(格式 HH:mm) */ | ||
| 54 | + private String bdTime; | ||
| 55 | + /** 出场时间(格式 HH:mm) */ | ||
| 56 | + private String ccTime; | ||
| 57 | + /** 关联的驾驶员 bsth_c_personnel 主键,不做mapping */ | ||
| 58 | + private Integer j; | ||
| 59 | + /** 驾驶员工号 */ | ||
| 60 | + private String jGh; | ||
| 61 | + /** 驾驶员名字 */ | ||
| 62 | + private String jName; | ||
| 63 | + /** 关联的售票员 bsth_c_personnel 主键,不做mapping */ | ||
| 64 | + private Integer s; | ||
| 65 | + /** 售票员工号 */ | ||
| 66 | + private String sGh; | ||
| 67 | + /** 售票员名字 */ | ||
| 68 | + private String sName; | ||
| 69 | + | ||
| 70 | + // 冗余的时刻明细信息,不做mapping | ||
| 71 | + /** 线路方向(TODO:上下行,上行,下行,这个以后用枚举还是字典再议,现在先用文字) */ | ||
| 72 | + private String xlDir; | ||
| 73 | + /** 起点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ | ||
| 74 | + private Integer qdz; | ||
| 75 | + /** 起点站code */ | ||
| 76 | + private String qdzCode; | ||
| 77 | + /** 起点站名字 */ | ||
| 78 | + private String qdzName; | ||
| 79 | + /** 终点站id,根据班次类型,会关联 bsth_c_station,或 bsth_c_car_park,不做mapping */ | ||
| 80 | + private Integer zdz; | ||
| 81 | + /** 终点站code */ | ||
| 82 | + private String zdzCode; | ||
| 83 | + /** 终点站名字 */ | ||
| 84 | + private String zdzName; | ||
| 85 | + | ||
| 86 | + /** 发车时间(格式 HH:mm) */ | ||
| 87 | + private String fcsj; | ||
| 88 | + /** 发车顺序号 */ | ||
| 89 | + private Integer fcno; | ||
| 90 | + /** 对应班次数 */ | ||
| 91 | + private Integer bcs; | ||
| 92 | + /** 计划里程 */ | ||
| 93 | + private Double jhlc; | ||
| 94 | + /** 班次历时 */ | ||
| 95 | + private Integer bcsj; | ||
| 96 | + | ||
| 97 | + /** 班次类型 字典type=ScheduleType */ | ||
| 98 | + private String bcType; | ||
| 99 | + | ||
| 100 | + /** 关联的时刻表id */ | ||
| 101 | + private Long ttInfo; | ||
| 102 | + /** 关联的时刻表名字 */ | ||
| 103 | + private String ttInfoName; | ||
| 104 | + | ||
| 105 | + @Override | ||
| 106 | + public int hashCode() { | ||
| 107 | + return this.toString().hashCode(); | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + @Override | ||
| 111 | + public boolean equals(Object obj) { | ||
| 112 | + return this.toString().equals(((SchedulePlanInfo)obj).toString()); | ||
| 113 | + } | ||
| 114 | + | ||
| 115 | + @Override | ||
| 116 | + public String toString() { | ||
| 117 | + return "sch_plan_" + this.id; | ||
| 118 | + } | ||
| 119 | + | ||
| 120 | + public Long getId() { | ||
| 121 | + return id; | ||
| 122 | + } | ||
| 123 | + | ||
| 124 | + public void setId(Long id) { | ||
| 125 | + this.id = id; | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + public Date getScheduleDate() { | ||
| 129 | + return scheduleDate; | ||
| 130 | + } | ||
| 131 | + | ||
| 132 | + public void setScheduleDate(Date scheduleDate) { | ||
| 133 | + this.scheduleDate = scheduleDate; | ||
| 134 | + } | ||
| 135 | + | ||
| 136 | + public String getGsName() { | ||
| 137 | + return gsName; | ||
| 138 | + } | ||
| 139 | + | ||
| 140 | + public void setGsName(String gsName) { | ||
| 141 | + this.gsName = gsName; | ||
| 142 | + } | ||
| 143 | + | ||
| 144 | + public String getGsBm() { | ||
| 145 | + return gsBm; | ||
| 146 | + } | ||
| 147 | + | ||
| 148 | + public void setGsBm(String gsBm) { | ||
| 149 | + this.gsBm = gsBm; | ||
| 150 | + } | ||
| 151 | + | ||
| 152 | + public String getFgsName() { | ||
| 153 | + return fgsName; | ||
| 154 | + } | ||
| 155 | + | ||
| 156 | + public void setFgsName(String fgsName) { | ||
| 157 | + this.fgsName = fgsName; | ||
| 158 | + } | ||
| 159 | + | ||
| 160 | + public String getFgsBm() { | ||
| 161 | + return fgsBm; | ||
| 162 | + } | ||
| 163 | + | ||
| 164 | + public void setFgsBm(String fgsBm) { | ||
| 165 | + this.fgsBm = fgsBm; | ||
| 166 | + } | ||
| 167 | + | ||
| 168 | + public Integer getCcno() { | ||
| 169 | + return ccno; | ||
| 170 | + } | ||
| 171 | + | ||
| 172 | + public void setCcno(Integer ccno) { | ||
| 173 | + this.ccno = ccno; | ||
| 174 | + } | ||
| 175 | + | ||
| 176 | + public Integer getXl() { | ||
| 177 | + return xl; | ||
| 178 | + } | ||
| 179 | + | ||
| 180 | + public void setXl(Integer xl) { | ||
| 181 | + this.xl = xl; | ||
| 182 | + } | ||
| 183 | + | ||
| 184 | + public String getXlName() { | ||
| 185 | + return xlName; | ||
| 186 | + } | ||
| 187 | + | ||
| 188 | + public void setXlName(String xlName) { | ||
| 189 | + this.xlName = xlName; | ||
| 190 | + } | ||
| 191 | + | ||
| 192 | + public String getXlBm() { | ||
| 193 | + return xlBm; | ||
| 194 | + } | ||
| 195 | + | ||
| 196 | + public void setXlBm(String xlBm) { | ||
| 197 | + this.xlBm = xlBm; | ||
| 198 | + } | ||
| 199 | + | ||
| 200 | + public Long getLp() { | ||
| 201 | + return lp; | ||
| 202 | + } | ||
| 203 | + | ||
| 204 | + public void setLp(Long lp) { | ||
| 205 | + this.lp = lp; | ||
| 206 | + } | ||
| 207 | + | ||
| 208 | + public String getLpName() { | ||
| 209 | + return lpName; | ||
| 210 | + } | ||
| 211 | + | ||
| 212 | + public void setLpName(String lpName) { | ||
| 213 | + this.lpName = lpName; | ||
| 214 | + } | ||
| 215 | + | ||
| 216 | + public Integer getCl() { | ||
| 217 | + return cl; | ||
| 218 | + } | ||
| 219 | + | ||
| 220 | + public void setCl(Integer cl) { | ||
| 221 | + this.cl = cl; | ||
| 222 | + } | ||
| 223 | + | ||
| 224 | + public String getClZbh() { | ||
| 225 | + return clZbh; | ||
| 226 | + } | ||
| 227 | + | ||
| 228 | + public void setClZbh(String clZbh) { | ||
| 229 | + this.clZbh = clZbh; | ||
| 230 | + } | ||
| 231 | + | ||
| 232 | + public String getBdTime() { | ||
| 233 | + return bdTime; | ||
| 234 | + } | ||
| 235 | + | ||
| 236 | + public void setBdTime(String bdTime) { | ||
| 237 | + this.bdTime = bdTime; | ||
| 238 | + } | ||
| 239 | + | ||
| 240 | + public String getCcTime() { | ||
| 241 | + return ccTime; | ||
| 242 | + } | ||
| 243 | + | ||
| 244 | + public void setCcTime(String ccTime) { | ||
| 245 | + this.ccTime = ccTime; | ||
| 246 | + } | ||
| 247 | + | ||
| 248 | + public Integer getJ() { | ||
| 249 | + return j; | ||
| 250 | + } | ||
| 251 | + | ||
| 252 | + public void setJ(Integer j) { | ||
| 253 | + this.j = j; | ||
| 254 | + } | ||
| 255 | + | ||
| 256 | + public String getjGh() { | ||
| 257 | + return jGh; | ||
| 258 | + } | ||
| 259 | + | ||
| 260 | + public void setjGh(String jGh) { | ||
| 261 | + this.jGh = jGh; | ||
| 262 | + } | ||
| 263 | + | ||
| 264 | + public String getjName() { | ||
| 265 | + return jName; | ||
| 266 | + } | ||
| 267 | + | ||
| 268 | + public void setjName(String jName) { | ||
| 269 | + this.jName = jName; | ||
| 270 | + } | ||
| 271 | + | ||
| 272 | + public Integer getS() { | ||
| 273 | + return s; | ||
| 274 | + } | ||
| 275 | + | ||
| 276 | + public void setS(Integer s) { | ||
| 277 | + this.s = s; | ||
| 278 | + } | ||
| 279 | + | ||
| 280 | + public String getsGh() { | ||
| 281 | + return sGh; | ||
| 282 | + } | ||
| 283 | + | ||
| 284 | + public void setsGh(String sGh) { | ||
| 285 | + this.sGh = sGh; | ||
| 286 | + } | ||
| 287 | + | ||
| 288 | + public String getsName() { | ||
| 289 | + return sName; | ||
| 290 | + } | ||
| 291 | + | ||
| 292 | + public void setsName(String sName) { | ||
| 293 | + this.sName = sName; | ||
| 294 | + } | ||
| 295 | + | ||
| 296 | + public String getXlDir() { | ||
| 297 | + return xlDir; | ||
| 298 | + } | ||
| 299 | + | ||
| 300 | + public void setXlDir(String xlDir) { | ||
| 301 | + this.xlDir = xlDir; | ||
| 302 | + } | ||
| 303 | + | ||
| 304 | + public Integer getQdz() { | ||
| 305 | + return qdz; | ||
| 306 | + } | ||
| 307 | + | ||
| 308 | + public void setQdz(Integer qdz) { | ||
| 309 | + this.qdz = qdz; | ||
| 310 | + } | ||
| 311 | + | ||
| 312 | + public String getQdzCode() { | ||
| 313 | + return qdzCode; | ||
| 314 | + } | ||
| 315 | + | ||
| 316 | + public void setQdzCode(String qdzCode) { | ||
| 317 | + this.qdzCode = qdzCode; | ||
| 318 | + } | ||
| 319 | + | ||
| 320 | + public String getQdzName() { | ||
| 321 | + return qdzName; | ||
| 322 | + } | ||
| 323 | + | ||
| 324 | + public void setQdzName(String qdzName) { | ||
| 325 | + this.qdzName = qdzName; | ||
| 326 | + } | ||
| 327 | + | ||
| 328 | + public Integer getZdz() { | ||
| 329 | + return zdz; | ||
| 330 | + } | ||
| 331 | + | ||
| 332 | + public void setZdz(Integer zdz) { | ||
| 333 | + this.zdz = zdz; | ||
| 334 | + } | ||
| 335 | + | ||
| 336 | + public String getZdzCode() { | ||
| 337 | + return zdzCode; | ||
| 338 | + } | ||
| 339 | + | ||
| 340 | + public void setZdzCode(String zdzCode) { | ||
| 341 | + this.zdzCode = zdzCode; | ||
| 342 | + } | ||
| 343 | + | ||
| 344 | + public String getZdzName() { | ||
| 345 | + return zdzName; | ||
| 346 | + } | ||
| 347 | + | ||
| 348 | + public void setZdzName(String zdzName) { | ||
| 349 | + this.zdzName = zdzName; | ||
| 350 | + } | ||
| 351 | + | ||
| 352 | + public String getFcsj() { | ||
| 353 | + return fcsj; | ||
| 354 | + } | ||
| 355 | + | ||
| 356 | + public void setFcsj(String fcsj) { | ||
| 357 | + this.fcsj = fcsj; | ||
| 358 | + } | ||
| 359 | + | ||
| 360 | + public Integer getFcno() { | ||
| 361 | + return fcno; | ||
| 362 | + } | ||
| 363 | + | ||
| 364 | + public void setFcno(Integer fcno) { | ||
| 365 | + this.fcno = fcno; | ||
| 366 | + } | ||
| 367 | + | ||
| 368 | + public Integer getBcs() { | ||
| 369 | + return bcs; | ||
| 370 | + } | ||
| 371 | + | ||
| 372 | + public void setBcs(Integer bcs) { | ||
| 373 | + this.bcs = bcs; | ||
| 374 | + } | ||
| 375 | + | ||
| 376 | + public Double getJhlc() { | ||
| 377 | + return jhlc; | ||
| 378 | + } | ||
| 379 | + | ||
| 380 | + public void setJhlc(Double jhlc) { | ||
| 381 | + this.jhlc = jhlc; | ||
| 382 | + } | ||
| 383 | + | ||
| 384 | + public Integer getBcsj() { | ||
| 385 | + return bcsj; | ||
| 386 | + } | ||
| 387 | + | ||
| 388 | + public void setBcsj(Integer bcsj) { | ||
| 389 | + this.bcsj = bcsj; | ||
| 390 | + } | ||
| 391 | + | ||
| 392 | + public String getBcType() { | ||
| 393 | + return bcType; | ||
| 394 | + } | ||
| 395 | + | ||
| 396 | + public void setBcType(String bcType) { | ||
| 397 | + this.bcType = bcType; | ||
| 398 | + } | ||
| 399 | + | ||
| 400 | + public Long getTtInfo() { | ||
| 401 | + return ttInfo; | ||
| 402 | + } | ||
| 403 | + | ||
| 404 | + public void setTtInfo(Long ttInfo) { | ||
| 405 | + this.ttInfo = ttInfo; | ||
| 406 | + } | ||
| 407 | + | ||
| 408 | + public String getTtInfoName() { | ||
| 409 | + return ttInfoName; | ||
| 410 | + } | ||
| 411 | + | ||
| 412 | + public void setTtInfoName(String ttInfoName) { | ||
| 413 | + this.ttInfoName = ttInfoName; | ||
| 414 | + } | ||
| 415 | +} |
src/main/java/com/bsth/filter/BaseFilter.java
| 1 | -package com.bsth.filter; | ||
| 2 | - | ||
| 3 | -import org.springframework.util.AntPathMatcher; | ||
| 4 | -import org.springframework.util.PathMatcher; | ||
| 5 | - | ||
| 6 | -import javax.servlet.*; | ||
| 7 | -import javax.servlet.http.HttpServletRequest; | ||
| 8 | -import javax.servlet.http.HttpServletResponse; | ||
| 9 | -import java.io.IOException; | ||
| 10 | - | ||
| 11 | -public abstract class BaseFilter implements Filter { | ||
| 12 | - | ||
| 13 | - private final PathMatcher pathMatcher = new AntPathMatcher(); | ||
| 14 | - | ||
| 15 | - /** | ||
| 16 | - * 白名单 | ||
| 17 | - */ | ||
| 18 | - private String[] whiteListURLs = { }; | ||
| 19 | - | ||
| 20 | - @Override | ||
| 21 | - public void destroy() { | ||
| 22 | - | ||
| 23 | - } | ||
| 24 | - | ||
| 25 | - @Override | ||
| 26 | - public void doFilter(ServletRequest request, ServletResponse response, | ||
| 27 | - FilterChain chain) throws IOException, ServletException { | ||
| 28 | - | ||
| 29 | - HttpServletRequest httpRequest = (HttpServletRequest) request; | ||
| 30 | - HttpServletResponse httpResponse = (HttpServletResponse) response; | ||
| 31 | - | ||
| 32 | - String currentURL = httpRequest.getServletPath(); | ||
| 33 | - | ||
| 34 | - if (isWhiteURL(currentURL)) { | ||
| 35 | - chain.doFilter(request, response); | ||
| 36 | - return; | ||
| 37 | - } | ||
| 38 | - | ||
| 39 | - doFilter(httpRequest, httpResponse, chain); | ||
| 40 | - return; | ||
| 41 | - } | ||
| 42 | - | ||
| 43 | - public void doFilter(HttpServletRequest request, | ||
| 44 | - HttpServletResponse response, FilterChain chain) | ||
| 45 | - throws IOException, ServletException { | ||
| 46 | - chain.doFilter(request, response); | ||
| 47 | - } | ||
| 48 | - | ||
| 49 | - @Override | ||
| 50 | - public void init(FilterConfig arg0) throws ServletException { | ||
| 51 | - | ||
| 52 | - } | ||
| 53 | - | ||
| 54 | - private boolean isWhiteURL(String currentURL) { | ||
| 55 | - for (String whiteURL : whiteListURLs) { | ||
| 56 | - if (pathMatcher.match(whiteURL, currentURL)) { | ||
| 57 | - return true; | ||
| 58 | - } | ||
| 59 | - } | ||
| 60 | - return false; | ||
| 61 | - } | ||
| 62 | -} | 1 | +package com.bsth.filter; |
| 2 | + | ||
| 3 | +import org.springframework.util.AntPathMatcher; | ||
| 4 | +import org.springframework.util.PathMatcher; | ||
| 5 | + | ||
| 6 | +import javax.servlet.*; | ||
| 7 | +import javax.servlet.http.HttpServletRequest; | ||
| 8 | +import javax.servlet.http.HttpServletResponse; | ||
| 9 | +import java.io.IOException; | ||
| 10 | + | ||
| 11 | +public abstract class BaseFilter implements Filter { | ||
| 12 | + | ||
| 13 | + private final PathMatcher pathMatcher = new AntPathMatcher(); | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 白名单 | ||
| 17 | + */ | ||
| 18 | + private String[] whiteListURLs = { }; | ||
| 19 | + | ||
| 20 | + @Override | ||
| 21 | + public void destroy() { | ||
| 22 | + | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + @Override | ||
| 26 | + public void doFilter(ServletRequest request, ServletResponse response, | ||
| 27 | + FilterChain chain) throws IOException, ServletException { | ||
| 28 | + | ||
| 29 | + HttpServletRequest httpRequest = (HttpServletRequest) request; | ||
| 30 | + HttpServletResponse httpResponse = (HttpServletResponse) response; | ||
| 31 | + | ||
| 32 | + String currentURL = httpRequest.getServletPath(); | ||
| 33 | + | ||
| 34 | + if (isWhiteURL(currentURL)) { | ||
| 35 | + chain.doFilter(request, response); | ||
| 36 | + return; | ||
| 37 | + } | ||
| 38 | + | ||
| 39 | + doFilter(httpRequest, httpResponse, chain); | ||
| 40 | + return; | ||
| 41 | + } | ||
| 42 | + | ||
| 43 | + public void doFilter(HttpServletRequest request, | ||
| 44 | + HttpServletResponse response, FilterChain chain) | ||
| 45 | + throws IOException, ServletException { | ||
| 46 | + chain.doFilter(request, response); | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + @Override | ||
| 50 | + public void init(FilterConfig arg0) throws ServletException { | ||
| 51 | + | ||
| 52 | + } | ||
| 53 | + | ||
| 54 | + private boolean isWhiteURL(String currentURL) { | ||
| 55 | + for (String whiteURL : whiteListURLs) { | ||
| 56 | + if (pathMatcher.match(whiteURL, currentURL)) { | ||
| 57 | + return true; | ||
| 58 | + } | ||
| 59 | + } | ||
| 60 | + return false; | ||
| 61 | + } | ||
| 62 | +} |
src/main/java/com/bsth/filter/CORSFilter.java
| 1 | -package com.bsth.filter; | ||
| 2 | - | ||
| 3 | -import java.io.IOException; | ||
| 4 | - | ||
| 5 | -import javax.servlet.FilterChain; | ||
| 6 | -import javax.servlet.FilterConfig; | ||
| 7 | -import javax.servlet.ServletException; | ||
| 8 | -import javax.servlet.http.HttpServletRequest; | ||
| 9 | -import javax.servlet.http.HttpServletResponse; | ||
| 10 | - | ||
| 11 | -import org.springframework.stereotype.Component; | ||
| 12 | - | ||
| 13 | -@Component | ||
| 14 | -public class CORSFilter extends BaseFilter { | ||
| 15 | - | ||
| 16 | - public void init(FilterConfig filterConfig) { | ||
| 17 | - } | ||
| 18 | - | ||
| 19 | - @Override | ||
| 20 | - public void doFilter(HttpServletRequest request, | ||
| 21 | - HttpServletResponse response, FilterChain chain) | ||
| 22 | - throws IOException, ServletException { | ||
| 23 | - | ||
| 24 | - response.setHeader("Access-Control-Allow-Origin", "*"); | ||
| 25 | - response.setHeader("Access-Control-Allow-Methods", | ||
| 26 | - "POST, GET, OPTIONS, DELETE"); | ||
| 27 | - response.setHeader("Access-Control-Max-Age", "3600"); | ||
| 28 | - response.setHeader("Access-Control-Allow-Headers", "x-requested-with"); | ||
| 29 | - chain.doFilter(request, response); | ||
| 30 | - } | ||
| 31 | - | ||
| 32 | - public void destroy() { | ||
| 33 | - } | ||
| 34 | - | ||
| 35 | -} | 1 | +package com.bsth.filter; |
| 2 | + | ||
| 3 | +import java.io.IOException; | ||
| 4 | + | ||
| 5 | +import javax.servlet.FilterChain; | ||
| 6 | +import javax.servlet.FilterConfig; | ||
| 7 | +import javax.servlet.ServletException; | ||
| 8 | +import javax.servlet.http.HttpServletRequest; | ||
| 9 | +import javax.servlet.http.HttpServletResponse; | ||
| 10 | + | ||
| 11 | +import org.springframework.stereotype.Component; | ||
| 12 | + | ||
| 13 | +@Component | ||
| 14 | +public class CORSFilter extends BaseFilter { | ||
| 15 | + | ||
| 16 | + public void init(FilterConfig filterConfig) { | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + @Override | ||
| 20 | + public void doFilter(HttpServletRequest request, | ||
| 21 | + HttpServletResponse response, FilterChain chain) | ||
| 22 | + throws IOException, ServletException { | ||
| 23 | + | ||
| 24 | + response.setHeader("Access-Control-Allow-Origin", "*"); | ||
| 25 | + response.setHeader("Access-Control-Allow-Methods", | ||
| 26 | + "POST, GET, OPTIONS, DELETE"); | ||
| 27 | + response.setHeader("Access-Control-Max-Age", "3600"); | ||
| 28 | + response.setHeader("Access-Control-Allow-Headers", "x-requested-with"); | ||
| 29 | + chain.doFilter(request, response); | ||
| 30 | + } | ||
| 31 | + | ||
| 32 | + public void destroy() { | ||
| 33 | + } | ||
| 34 | + | ||
| 35 | +} |
src/main/java/com/bsth/filter/XssFilter.java
| 1 | -package com.bsth.filter; | ||
| 2 | - | ||
| 3 | -import org.springframework.stereotype.Component; | ||
| 4 | - | ||
| 5 | -import javax.servlet.FilterChain; | ||
| 6 | -import javax.servlet.ServletException; | ||
| 7 | -import javax.servlet.http.HttpServletRequest; | ||
| 8 | -import javax.servlet.http.HttpServletResponse; | ||
| 9 | -import java.io.IOException; | ||
| 10 | - | ||
| 11 | -@Component | ||
| 12 | -public class XssFilter extends BaseFilter{ | ||
| 13 | - | ||
| 14 | - @Override | ||
| 15 | - public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) | ||
| 16 | - throws IOException, ServletException { | ||
| 17 | - | ||
| 18 | - chain.doFilter(new XssHttpServletRequestWrapper((HttpServletRequest) request), response); | ||
| 19 | - } | ||
| 20 | -} | 1 | +package com.bsth.filter; |
| 2 | + | ||
| 3 | +import org.springframework.stereotype.Component; | ||
| 4 | + | ||
| 5 | +import javax.servlet.FilterChain; | ||
| 6 | +import javax.servlet.ServletException; | ||
| 7 | +import javax.servlet.http.HttpServletRequest; | ||
| 8 | +import javax.servlet.http.HttpServletResponse; | ||
| 9 | +import java.io.IOException; | ||
| 10 | + | ||
| 11 | +@Component | ||
| 12 | +public class XssFilter extends BaseFilter{ | ||
| 13 | + | ||
| 14 | + @Override | ||
| 15 | + public void doFilter(HttpServletRequest request, HttpServletResponse response, FilterChain chain) | ||
| 16 | + throws IOException, ServletException { | ||
| 17 | + | ||
| 18 | + chain.doFilter(new XssHttpServletRequestWrapper((HttpServletRequest) request), response); | ||
| 19 | + } | ||
| 20 | +} |
src/main/java/com/bsth/filter/XssHttpServletRequestWrapper.java
| 1 | -package com.bsth.filter; | ||
| 2 | - | ||
| 3 | -import javax.servlet.http.HttpServletRequest; | ||
| 4 | -import javax.servlet.http.HttpServletRequestWrapper; | ||
| 5 | - | ||
| 6 | -import org.apache.commons.lang3.StringEscapeUtils; | ||
| 7 | - | ||
| 8 | -public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper { | ||
| 9 | - public XssHttpServletRequestWrapper(HttpServletRequest request) { | ||
| 10 | - super(request); | ||
| 11 | - } | ||
| 12 | - | ||
| 13 | - @Override | ||
| 14 | - public String getHeader(String name) { | ||
| 15 | - return StringEscapeUtils.escapeHtml4(super.getHeader(name)); | ||
| 16 | - } | ||
| 17 | - | ||
| 18 | - @Override | ||
| 19 | - public String getQueryString() { | ||
| 20 | - return StringEscapeUtils.escapeHtml4(super.getQueryString()); | ||
| 21 | - } | ||
| 22 | - | ||
| 23 | - @Override | ||
| 24 | - public String getParameter(String name) { | ||
| 25 | - return StringEscapeUtils.escapeHtml4(super.getParameter(name)); | ||
| 26 | - } | ||
| 27 | - | ||
| 28 | - @Override | ||
| 29 | - public String[] getParameterValues(String name) { | ||
| 30 | - String[] values = super.getParameterValues(name); | ||
| 31 | - if (values != null) { | ||
| 32 | - int length = values.length; | ||
| 33 | - String[] escapseValues = new String[length]; | ||
| 34 | - for (int i = 0; i < length; i++) { | ||
| 35 | - escapseValues[i] = StringEscapeUtils.escapeHtml4(values[i]); | ||
| 36 | - } | ||
| 37 | - return escapseValues; | ||
| 38 | - } | ||
| 39 | - return super.getParameterValues(name); | ||
| 40 | - } | ||
| 41 | -} | 1 | +package com.bsth.filter; |
| 2 | + | ||
| 3 | +import javax.servlet.http.HttpServletRequest; | ||
| 4 | +import javax.servlet.http.HttpServletRequestWrapper; | ||
| 5 | + | ||
| 6 | +import org.apache.commons.lang3.StringEscapeUtils; | ||
| 7 | + | ||
| 8 | +public class XssHttpServletRequestWrapper extends HttpServletRequestWrapper { | ||
| 9 | + public XssHttpServletRequestWrapper(HttpServletRequest request) { | ||
| 10 | + super(request); | ||
| 11 | + } | ||
| 12 | + | ||
| 13 | + @Override | ||
| 14 | + public String getHeader(String name) { | ||
| 15 | + return StringEscapeUtils.escapeHtml4(super.getHeader(name)); | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | + @Override | ||
| 19 | + public String getQueryString() { | ||
| 20 | + return StringEscapeUtils.escapeHtml4(super.getQueryString()); | ||
| 21 | + } | ||
| 22 | + | ||
| 23 | + @Override | ||
| 24 | + public String getParameter(String name) { | ||
| 25 | + return StringEscapeUtils.escapeHtml4(super.getParameter(name)); | ||
| 26 | + } | ||
| 27 | + | ||
| 28 | + @Override | ||
| 29 | + public String[] getParameterValues(String name) { | ||
| 30 | + String[] values = super.getParameterValues(name); | ||
| 31 | + if (values != null) { | ||
| 32 | + int length = values.length; | ||
| 33 | + String[] escapseValues = new String[length]; | ||
| 34 | + for (int i = 0; i < length; i++) { | ||
| 35 | + escapseValues[i] = StringEscapeUtils.escapeHtml4(values[i]); | ||
| 36 | + } | ||
| 37 | + return escapseValues; | ||
| 38 | + } | ||
| 39 | + return super.getParameterValues(name); | ||
| 40 | + } | ||
| 41 | +} |
src/main/java/com/bsth/old_sys_wsclient/OldWSClient.java
| 1 | -package com.bsth.old_sys_wsclient; | ||
| 2 | - | ||
| 3 | -import com.bsth.old_sys_wsclient.company_service.CompanyService; | ||
| 4 | -import com.bsth.old_sys_wsclient.company_service.CompanyServiceLocator; | ||
| 5 | -import com.bsth.old_sys_wsclient.company_service.CompanyServiceSoap; | ||
| 6 | -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 7 | -import com.bsth.old_sys_wsclient.nh_ld.ClsLDInfo; | ||
| 8 | -import com.bsth.old_sys_wsclient.nh_ld.LD_Service; | ||
| 9 | -import com.bsth.old_sys_wsclient.nh_ld.LD_ServiceLocator; | ||
| 10 | -import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder; | ||
| 11 | -import com.bsth.server_ws.util.Constants; | ||
| 12 | -import org.joda.time.format.DateTimeFormat; | ||
| 13 | -import org.joda.time.format.DateTimeFormatter; | ||
| 14 | -import org.slf4j.Logger; | ||
| 15 | -import org.slf4j.LoggerFactory; | ||
| 16 | - | ||
| 17 | -import javax.xml.rpc.ServiceException; | ||
| 18 | -import javax.xml.rpc.holders.StringHolder; | ||
| 19 | -import java.rmi.RemoteException; | ||
| 20 | -import java.util.Calendar; | ||
| 21 | - | ||
| 22 | -/** | ||
| 23 | - * 老调度系统 webservice 客户端 | ||
| 24 | - * Created by panzhao on 2017/3/9. | ||
| 25 | - */ | ||
| 26 | -public class OldWSClient { | ||
| 27 | - | ||
| 28 | - static Logger logger = LoggerFactory.getLogger(OldWSClient.class); | ||
| 29 | - | ||
| 30 | - /** | ||
| 31 | - * 返回出场信息 | ||
| 32 | - * | ||
| 33 | - * @return | ||
| 34 | - */ | ||
| 35 | - public static String[] returnCCInfo(String company, String rq) { | ||
| 36 | - CompanyService service = new CompanyServiceLocator(); | ||
| 37 | - | ||
| 38 | - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 39 | - StringHolder fError = new StringHolder(); | ||
| 40 | - try { | ||
| 41 | - service.getCompanyServiceSoap().returnCCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult, | ||
| 42 | - fError); | ||
| 43 | - | ||
| 44 | - } catch (Exception e) { | ||
| 45 | - logger.error("", e); | ||
| 46 | - return new String[0]; | ||
| 47 | - } | ||
| 48 | - | ||
| 49 | - return arrayResult.value; | ||
| 50 | - } | ||
| 51 | - | ||
| 52 | - /** | ||
| 53 | - * 返回进场信息 | ||
| 54 | - * | ||
| 55 | - * @return | ||
| 56 | - */ | ||
| 57 | - public static String[] returnJCInfo(String company, String rq) { | ||
| 58 | - CompanyService service = new CompanyServiceLocator(); | ||
| 59 | - | ||
| 60 | - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 61 | - StringHolder fError = new StringHolder(); | ||
| 62 | - try { | ||
| 63 | - service.getCompanyServiceSoap().returnJCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult, | ||
| 64 | - fError); | ||
| 65 | - | ||
| 66 | - } catch (Exception e) { | ||
| 67 | - logger.error("", e); | ||
| 68 | - return new String[0]; | ||
| 69 | - } | ||
| 70 | - | ||
| 71 | - return arrayResult.value; | ||
| 72 | - } | ||
| 73 | - | ||
| 74 | - /** | ||
| 75 | - * 获取当日排班 | ||
| 76 | - * | ||
| 77 | - * @return | ||
| 78 | - */ | ||
| 79 | - public static String[] getCurrentDayPlan(String workId, String company) { | ||
| 80 | - ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 81 | - try { | ||
| 82 | - CompanyService mainService = new CompanyServiceLocator(); | ||
| 83 | - CompanyServiceSoap client = mainService.getCompanyServiceSoap(); | ||
| 84 | - StringHolder fError = new StringHolder(); | ||
| 85 | - client.getCurrentDayPlan("10.10.150.24", "SNGjIPS_2013_BsTHbS", "123904D6-21CE-33B0-AC41-375EB1BBC0sN", workId, company, arrayResult, fError); | ||
| 86 | - } catch (Exception e) { | ||
| 87 | - logger.error("", e); | ||
| 88 | - return new String[0]; | ||
| 89 | - } | ||
| 90 | - return arrayResult.value; | ||
| 91 | - } | ||
| 92 | - | ||
| 93 | - private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd"); | ||
| 94 | - | ||
| 95 | - /** | ||
| 96 | - * 获取南汇路单信息(原老系统与票务接口) | ||
| 97 | - * | ||
| 98 | - * @param company | ||
| 99 | - * @param rq | ||
| 100 | - * @return | ||
| 101 | - */ | ||
| 102 | - public static ClsLDInfo[] getNH_LD(String company, String rq) throws ServiceException, RemoteException { | ||
| 103 | - Calendar calendar = Calendar.getInstance(); | ||
| 104 | - calendar.setTimeInMillis(fmtyyyyMMdd.parseMillis(rq)); | ||
| 105 | - | ||
| 106 | - ArrayOfClsLDInfoHolder array = new ArrayOfClsLDInfoHolder(); | ||
| 107 | - | ||
| 108 | - LD_Service ldService = new LD_ServiceLocator(); | ||
| 109 | - ldService.getLD_ServiceSoap() | ||
| 110 | - .NH_LDInterface("10.10.150.24", "BsTh@BstH!NH", "bSTH@BStHNH", "163404D6-21CE-35B0-AC41-345EB1BBC0Nh", calendar, array); | ||
| 111 | - return array.value; | ||
| 112 | - } | ||
| 113 | -} | 1 | +package com.bsth.old_sys_wsclient; |
| 2 | + | ||
| 3 | +import com.bsth.old_sys_wsclient.company_service.CompanyService; | ||
| 4 | +import com.bsth.old_sys_wsclient.company_service.CompanyServiceLocator; | ||
| 5 | +import com.bsth.old_sys_wsclient.company_service.CompanyServiceSoap; | ||
| 6 | +import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 7 | +import com.bsth.old_sys_wsclient.nh_ld.ClsLDInfo; | ||
| 8 | +import com.bsth.old_sys_wsclient.nh_ld.LD_Service; | ||
| 9 | +import com.bsth.old_sys_wsclient.nh_ld.LD_ServiceLocator; | ||
| 10 | +import com.bsth.old_sys_wsclient.nh_ld.holders.ArrayOfClsLDInfoHolder; | ||
| 11 | +import com.bsth.server_ws.util.Constants; | ||
| 12 | +import org.joda.time.format.DateTimeFormat; | ||
| 13 | +import org.joda.time.format.DateTimeFormatter; | ||
| 14 | +import org.slf4j.Logger; | ||
| 15 | +import org.slf4j.LoggerFactory; | ||
| 16 | + | ||
| 17 | +import javax.xml.rpc.ServiceException; | ||
| 18 | +import javax.xml.rpc.holders.StringHolder; | ||
| 19 | +import java.rmi.RemoteException; | ||
| 20 | +import java.util.Calendar; | ||
| 21 | + | ||
| 22 | +/** | ||
| 23 | + * 老调度系统 webservice 客户端 | ||
| 24 | + * Created by panzhao on 2017/3/9. | ||
| 25 | + */ | ||
| 26 | +public class OldWSClient { | ||
| 27 | + | ||
| 28 | + static Logger logger = LoggerFactory.getLogger(OldWSClient.class); | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 返回出场信息 | ||
| 32 | + * | ||
| 33 | + * @return | ||
| 34 | + */ | ||
| 35 | + public static String[] returnCCInfo(String company, String rq) { | ||
| 36 | + CompanyService service = new CompanyServiceLocator(); | ||
| 37 | + | ||
| 38 | + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 39 | + StringHolder fError = new StringHolder(); | ||
| 40 | + try { | ||
| 41 | + service.getCompanyServiceSoap().returnCCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult, | ||
| 42 | + fError); | ||
| 43 | + | ||
| 44 | + } catch (Exception e) { | ||
| 45 | + logger.error("", e); | ||
| 46 | + return new String[0]; | ||
| 47 | + } | ||
| 48 | + | ||
| 49 | + return arrayResult.value; | ||
| 50 | + } | ||
| 51 | + | ||
| 52 | + /** | ||
| 53 | + * 返回进场信息 | ||
| 54 | + * | ||
| 55 | + * @return | ||
| 56 | + */ | ||
| 57 | + public static String[] returnJCInfo(String company, String rq) { | ||
| 58 | + CompanyService service = new CompanyServiceLocator(); | ||
| 59 | + | ||
| 60 | + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 61 | + StringHolder fError = new StringHolder(); | ||
| 62 | + try { | ||
| 63 | + service.getCompanyServiceSoap().returnJCInfo(Constants.OLD_SYS_PASSWORD, company, rq, arrayResult, | ||
| 64 | + fError); | ||
| 65 | + | ||
| 66 | + } catch (Exception e) { | ||
| 67 | + logger.error("", e); | ||
| 68 | + return new String[0]; | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + return arrayResult.value; | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * 获取当日排班 | ||
| 76 | + * | ||
| 77 | + * @return | ||
| 78 | + */ | ||
| 79 | + public static String[] getCurrentDayPlan(String workId, String company) { | ||
| 80 | + ArrayOfStringHolder arrayResult = new ArrayOfStringHolder(); | ||
| 81 | + try { | ||
| 82 | + CompanyService mainService = new CompanyServiceLocator(); | ||
| 83 | + CompanyServiceSoap client = mainService.getCompanyServiceSoap(); | ||
| 84 | + StringHolder fError = new StringHolder(); | ||
| 85 | + client.getCurrentDayPlan("10.10.150.24", "SNGjIPS_2013_BsTHbS", "123904D6-21CE-33B0-AC41-375EB1BBC0sN", workId, company, arrayResult, fError); | ||
| 86 | + } catch (Exception e) { | ||
| 87 | + logger.error("", e); | ||
| 88 | + return new String[0]; | ||
| 89 | + } | ||
| 90 | + return arrayResult.value; | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + private static DateTimeFormatter fmtyyyyMMdd = DateTimeFormat.forPattern("yyyy-MM-dd"); | ||
| 94 | + | ||
| 95 | + /** | ||
| 96 | + * 获取南汇路单信息(原老系统与票务接口) | ||
| 97 | + * | ||
| 98 | + * @param company | ||
| 99 | + * @param rq | ||
| 100 | + * @return | ||
| 101 | + */ | ||
| 102 | + public static ClsLDInfo[] getNH_LD(String company, String rq) throws ServiceException, RemoteException { | ||
| 103 | + Calendar calendar = Calendar.getInstance(); | ||
| 104 | + calendar.setTimeInMillis(fmtyyyyMMdd.parseMillis(rq)); | ||
| 105 | + | ||
| 106 | + ArrayOfClsLDInfoHolder array = new ArrayOfClsLDInfoHolder(); | ||
| 107 | + | ||
| 108 | + LD_Service ldService = new LD_ServiceLocator(); | ||
| 109 | + ldService.getLD_ServiceSoap() | ||
| 110 | + .NH_LDInterface("10.10.150.24", "BsTh@BstH!NH", "bSTH@BStHNH", "163404D6-21CE-35B0-AC41-345EB1BBC0Nh", calendar, array); | ||
| 111 | + return array.value; | ||
| 112 | + } | ||
| 113 | +} |
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyService.java
| 1 | -/** | ||
| 2 | - * CompanyService.java | ||
| 3 | - * | ||
| 4 | - * This file was auto-generated from WSDL | ||
| 5 | - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | - */ | ||
| 7 | - | ||
| 8 | -package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | - | ||
| 10 | -public interface CompanyService extends javax.xml.rpc.Service { | ||
| 11 | - public String getCompanyServiceSoapAddress(); | ||
| 12 | - | ||
| 13 | - public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException; | ||
| 14 | - | ||
| 15 | - public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; | ||
| 16 | -} | 1 | +/** |
| 2 | + * CompanyService.java | ||
| 3 | + * | ||
| 4 | + * This file was auto-generated from WSDL | ||
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | + | ||
| 10 | +public interface CompanyService extends javax.xml.rpc.Service { | ||
| 11 | + public String getCompanyServiceSoapAddress(); | ||
| 12 | + | ||
| 13 | + public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException; | ||
| 14 | + | ||
| 15 | + public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; | ||
| 16 | +} |
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceLocator.java
| 1 | -/** | ||
| 2 | - * CompanyServiceLocator.java | ||
| 3 | - * | ||
| 4 | - * This file was auto-generated from WSDL | ||
| 5 | - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | - */ | ||
| 7 | - | ||
| 8 | -package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | - | ||
| 10 | -@SuppressWarnings("serial") | ||
| 11 | -public class CompanyServiceLocator extends org.apache.axis.client.Service implements CompanyService { | ||
| 12 | - | ||
| 13 | - public CompanyServiceLocator() { | ||
| 14 | - } | ||
| 15 | - | ||
| 16 | - | ||
| 17 | - public CompanyServiceLocator(org.apache.axis.EngineConfiguration config) { | ||
| 18 | - super(config); | ||
| 19 | - } | ||
| 20 | - | ||
| 21 | - public CompanyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { | ||
| 22 | - super(wsdlLoc, sName); | ||
| 23 | - } | ||
| 24 | - | ||
| 25 | - // Use to get a proxy class for CompanyServiceSoap | ||
| 26 | - //private String CompanyServiceSoap_address = "http://114.80.178.12:8030/CompanyService.asmx"; | ||
| 27 | - private String CompanyServiceSoap_address = "http://10.10.200.61:8030/CompanyService.asmx"; | ||
| 28 | - | ||
| 29 | - public String getCompanyServiceSoapAddress() { | ||
| 30 | - return CompanyServiceSoap_address; | ||
| 31 | - } | ||
| 32 | - | ||
| 33 | - // The WSDD service name defaults to the port name. | ||
| 34 | - private String CompanyServiceSoapWSDDServiceName = "CompanyServiceSoap"; | ||
| 35 | - | ||
| 36 | - public String getCompanyServiceSoapWSDDServiceName() { | ||
| 37 | - return CompanyServiceSoapWSDDServiceName; | ||
| 38 | - } | ||
| 39 | - | ||
| 40 | - public void setCompanyServiceSoapWSDDServiceName(String name) { | ||
| 41 | - CompanyServiceSoapWSDDServiceName = name; | ||
| 42 | - } | ||
| 43 | - | ||
| 44 | - public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException { | ||
| 45 | - java.net.URL endpoint; | ||
| 46 | - try { | ||
| 47 | - endpoint = new java.net.URL(CompanyServiceSoap_address); | ||
| 48 | - } | ||
| 49 | - catch (java.net.MalformedURLException e) { | ||
| 50 | - throw new javax.xml.rpc.ServiceException(e); | ||
| 51 | - } | ||
| 52 | - return getCompanyServiceSoap(endpoint); | ||
| 53 | - } | ||
| 54 | - | ||
| 55 | - public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { | ||
| 56 | - try { | ||
| 57 | - CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(portAddress, this); | ||
| 58 | - _stub.setPortName(getCompanyServiceSoapWSDDServiceName()); | ||
| 59 | - _stub.setTimeout(6000); | ||
| 60 | - return _stub; | ||
| 61 | - } | ||
| 62 | - catch (org.apache.axis.AxisFault e) { | ||
| 63 | - return null; | ||
| 64 | - } | ||
| 65 | - } | ||
| 66 | - | ||
| 67 | - public void setCompanyServiceSoapEndpointAddress(String address) { | ||
| 68 | - CompanyServiceSoap_address = address; | ||
| 69 | - } | ||
| 70 | - | ||
| 71 | - /** | ||
| 72 | - * For the given interface, get the stub implementation. | ||
| 73 | - * If this service has no port for the given interface, | ||
| 74 | - * then ServiceException is thrown. | ||
| 75 | - */ | ||
| 76 | - @SuppressWarnings("rawtypes") | ||
| 77 | - public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | ||
| 78 | - try { | ||
| 79 | - if (CompanyServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) { | ||
| 80 | - CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(new java.net.URL(CompanyServiceSoap_address), this); | ||
| 81 | - _stub.setPortName(getCompanyServiceSoapWSDDServiceName()); | ||
| 82 | - return _stub; | ||
| 83 | - } | ||
| 84 | - } | ||
| 85 | - catch (Throwable t) { | ||
| 86 | - throw new javax.xml.rpc.ServiceException(t); | ||
| 87 | - } | ||
| 88 | - throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); | ||
| 89 | - } | ||
| 90 | - | ||
| 91 | - /** | ||
| 92 | - * For the given interface, get the stub implementation. | ||
| 93 | - * If this service has no port for the given interface, | ||
| 94 | - * then ServiceException is thrown. | ||
| 95 | - */ | ||
| 96 | - @SuppressWarnings("rawtypes") | ||
| 97 | - public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | ||
| 98 | - if (portName == null) { | ||
| 99 | - return getPort(serviceEndpointInterface); | ||
| 100 | - } | ||
| 101 | - String inputPortName = portName.getLocalPart(); | ||
| 102 | - if ("CompanyServiceSoap".equals(inputPortName)) { | ||
| 103 | - return getCompanyServiceSoap(); | ||
| 104 | - } | ||
| 105 | - else { | ||
| 106 | - java.rmi.Remote _stub = getPort(serviceEndpointInterface); | ||
| 107 | - ((org.apache.axis.client.Stub) _stub).setPortName(portName); | ||
| 108 | - return _stub; | ||
| 109 | - } | ||
| 110 | - } | ||
| 111 | - | ||
| 112 | - public javax.xml.namespace.QName getServiceName() { | ||
| 113 | - return new javax.xml.namespace.QName("http://tempuri.org/", "CompanyService"); | ||
| 114 | - } | ||
| 115 | - | ||
| 116 | - @SuppressWarnings("rawtypes") | ||
| 117 | - private java.util.HashSet ports = null; | ||
| 118 | - | ||
| 119 | - @SuppressWarnings({ "rawtypes", "unchecked" }) | ||
| 120 | - public java.util.Iterator getPorts() { | ||
| 121 | - if (ports == null) { | ||
| 122 | - ports = new java.util.HashSet(); | ||
| 123 | - ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "CompanyServiceSoap")); | ||
| 124 | - } | ||
| 125 | - return ports.iterator(); | ||
| 126 | - } | ||
| 127 | - | ||
| 128 | - /** | ||
| 129 | - * Set the endpoint address for the specified port name. | ||
| 130 | - */ | ||
| 131 | - public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException { | ||
| 132 | - | ||
| 133 | -if ("CompanyServiceSoap".equals(portName)) { | ||
| 134 | - setCompanyServiceSoapEndpointAddress(address); | ||
| 135 | - } | ||
| 136 | - else | ||
| 137 | -{ // Unknown Port Name | ||
| 138 | - throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); | ||
| 139 | - } | ||
| 140 | - } | ||
| 141 | - | ||
| 142 | - /** | ||
| 143 | - * Set the endpoint address for the specified port name. | ||
| 144 | - */ | ||
| 145 | - public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException { | ||
| 146 | - setEndpointAddress(portName.getLocalPart(), address); | ||
| 147 | - } | ||
| 148 | - | ||
| 149 | -} | 1 | +/** |
| 2 | + * CompanyServiceLocator.java | ||
| 3 | + * | ||
| 4 | + * This file was auto-generated from WSDL | ||
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | + | ||
| 10 | +@SuppressWarnings("serial") | ||
| 11 | +public class CompanyServiceLocator extends org.apache.axis.client.Service implements CompanyService { | ||
| 12 | + | ||
| 13 | + public CompanyServiceLocator() { | ||
| 14 | + } | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + public CompanyServiceLocator(org.apache.axis.EngineConfiguration config) { | ||
| 18 | + super(config); | ||
| 19 | + } | ||
| 20 | + | ||
| 21 | + public CompanyServiceLocator(String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException { | ||
| 22 | + super(wsdlLoc, sName); | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + // Use to get a proxy class for CompanyServiceSoap | ||
| 26 | + //private String CompanyServiceSoap_address = "http://114.80.178.12:8030/CompanyService.asmx"; | ||
| 27 | + private String CompanyServiceSoap_address = "http://10.10.200.61:8030/CompanyService.asmx"; | ||
| 28 | + | ||
| 29 | + public String getCompanyServiceSoapAddress() { | ||
| 30 | + return CompanyServiceSoap_address; | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + // The WSDD service name defaults to the port name. | ||
| 34 | + private String CompanyServiceSoapWSDDServiceName = "CompanyServiceSoap"; | ||
| 35 | + | ||
| 36 | + public String getCompanyServiceSoapWSDDServiceName() { | ||
| 37 | + return CompanyServiceSoapWSDDServiceName; | ||
| 38 | + } | ||
| 39 | + | ||
| 40 | + public void setCompanyServiceSoapWSDDServiceName(String name) { | ||
| 41 | + CompanyServiceSoapWSDDServiceName = name; | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + public CompanyServiceSoap getCompanyServiceSoap() throws javax.xml.rpc.ServiceException { | ||
| 45 | + java.net.URL endpoint; | ||
| 46 | + try { | ||
| 47 | + endpoint = new java.net.URL(CompanyServiceSoap_address); | ||
| 48 | + } | ||
| 49 | + catch (java.net.MalformedURLException e) { | ||
| 50 | + throw new javax.xml.rpc.ServiceException(e); | ||
| 51 | + } | ||
| 52 | + return getCompanyServiceSoap(endpoint); | ||
| 53 | + } | ||
| 54 | + | ||
| 55 | + public CompanyServiceSoap getCompanyServiceSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { | ||
| 56 | + try { | ||
| 57 | + CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(portAddress, this); | ||
| 58 | + _stub.setPortName(getCompanyServiceSoapWSDDServiceName()); | ||
| 59 | + _stub.setTimeout(6000); | ||
| 60 | + return _stub; | ||
| 61 | + } | ||
| 62 | + catch (org.apache.axis.AxisFault e) { | ||
| 63 | + return null; | ||
| 64 | + } | ||
| 65 | + } | ||
| 66 | + | ||
| 67 | + public void setCompanyServiceSoapEndpointAddress(String address) { | ||
| 68 | + CompanyServiceSoap_address = address; | ||
| 69 | + } | ||
| 70 | + | ||
| 71 | + /** | ||
| 72 | + * For the given interface, get the stub implementation. | ||
| 73 | + * If this service has no port for the given interface, | ||
| 74 | + * then ServiceException is thrown. | ||
| 75 | + */ | ||
| 76 | + @SuppressWarnings("rawtypes") | ||
| 77 | + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | ||
| 78 | + try { | ||
| 79 | + if (CompanyServiceSoap.class.isAssignableFrom(serviceEndpointInterface)) { | ||
| 80 | + CompanyServiceSoapStub _stub = new CompanyServiceSoapStub(new java.net.URL(CompanyServiceSoap_address), this); | ||
| 81 | + _stub.setPortName(getCompanyServiceSoapWSDDServiceName()); | ||
| 82 | + return _stub; | ||
| 83 | + } | ||
| 84 | + } | ||
| 85 | + catch (Throwable t) { | ||
| 86 | + throw new javax.xml.rpc.ServiceException(t); | ||
| 87 | + } | ||
| 88 | + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); | ||
| 89 | + } | ||
| 90 | + | ||
| 91 | + /** | ||
| 92 | + * For the given interface, get the stub implementation. | ||
| 93 | + * If this service has no port for the given interface, | ||
| 94 | + * then ServiceException is thrown. | ||
| 95 | + */ | ||
| 96 | + @SuppressWarnings("rawtypes") | ||
| 97 | + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { | ||
| 98 | + if (portName == null) { | ||
| 99 | + return getPort(serviceEndpointInterface); | ||
| 100 | + } | ||
| 101 | + String inputPortName = portName.getLocalPart(); | ||
| 102 | + if ("CompanyServiceSoap".equals(inputPortName)) { | ||
| 103 | + return getCompanyServiceSoap(); | ||
| 104 | + } | ||
| 105 | + else { | ||
| 106 | + java.rmi.Remote _stub = getPort(serviceEndpointInterface); | ||
| 107 | + ((org.apache.axis.client.Stub) _stub).setPortName(portName); | ||
| 108 | + return _stub; | ||
| 109 | + } | ||
| 110 | + } | ||
| 111 | + | ||
| 112 | + public javax.xml.namespace.QName getServiceName() { | ||
| 113 | + return new javax.xml.namespace.QName("http://tempuri.org/", "CompanyService"); | ||
| 114 | + } | ||
| 115 | + | ||
| 116 | + @SuppressWarnings("rawtypes") | ||
| 117 | + private java.util.HashSet ports = null; | ||
| 118 | + | ||
| 119 | + @SuppressWarnings({ "rawtypes", "unchecked" }) | ||
| 120 | + public java.util.Iterator getPorts() { | ||
| 121 | + if (ports == null) { | ||
| 122 | + ports = new java.util.HashSet(); | ||
| 123 | + ports.add(new javax.xml.namespace.QName("http://tempuri.org/", "CompanyServiceSoap")); | ||
| 124 | + } | ||
| 125 | + return ports.iterator(); | ||
| 126 | + } | ||
| 127 | + | ||
| 128 | + /** | ||
| 129 | + * Set the endpoint address for the specified port name. | ||
| 130 | + */ | ||
| 131 | + public void setEndpointAddress(String portName, String address) throws javax.xml.rpc.ServiceException { | ||
| 132 | + | ||
| 133 | +if ("CompanyServiceSoap".equals(portName)) { | ||
| 134 | + setCompanyServiceSoapEndpointAddress(address); | ||
| 135 | + } | ||
| 136 | + else | ||
| 137 | +{ // Unknown Port Name | ||
| 138 | + throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName); | ||
| 139 | + } | ||
| 140 | + } | ||
| 141 | + | ||
| 142 | + /** | ||
| 143 | + * Set the endpoint address for the specified port name. | ||
| 144 | + */ | ||
| 145 | + public void setEndpointAddress(javax.xml.namespace.QName portName, String address) throws javax.xml.rpc.ServiceException { | ||
| 146 | + setEndpointAddress(portName.getLocalPart(), address); | ||
| 147 | + } | ||
| 148 | + | ||
| 149 | +} |
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceSoap.java
| 1 | -/** | ||
| 2 | - * CompanyServiceSoap.java | ||
| 3 | - * | ||
| 4 | - * This file was auto-generated from WSDL | ||
| 5 | - * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | - */ | ||
| 7 | - | ||
| 8 | -package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | - | ||
| 10 | -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 11 | -import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder; | ||
| 12 | - | ||
| 13 | -public interface CompanyServiceSoap extends java.rmi.Remote { | ||
| 14 | - | ||
| 15 | - /** | ||
| 16 | - * 车辆路单 | ||
| 17 | - */ | ||
| 18 | - public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 19 | - | ||
| 20 | - /** | ||
| 21 | - * 车辆信息 | ||
| 22 | - */ | ||
| 23 | - public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 24 | - | ||
| 25 | - /** | ||
| 26 | - * 线路信息 | ||
| 27 | - */ | ||
| 28 | - public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 29 | - | ||
| 30 | - /** | ||
| 31 | - * 站点信息 | ||
| 32 | - */ | ||
| 33 | - public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 34 | - | ||
| 35 | - /** | ||
| 36 | - * 出场 | ||
| 37 | - */ | ||
| 38 | - public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException; | ||
| 39 | - | ||
| 40 | - /** | ||
| 41 | - * 进场 | ||
| 42 | - */ | ||
| 43 | - public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException; | ||
| 44 | - public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException; | ||
| 45 | - public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 46 | - public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException; | ||
| 47 | - public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 48 | -} | 1 | +/** |
| 2 | + * CompanyServiceSoap.java | ||
| 3 | + * | ||
| 4 | + * This file was auto-generated from WSDL | ||
| 5 | + * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. | ||
| 6 | + */ | ||
| 7 | + | ||
| 8 | +package com.bsth.old_sys_wsclient.company_service; | ||
| 9 | + | ||
| 10 | +import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 11 | +import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder; | ||
| 12 | + | ||
| 13 | +public interface CompanyServiceSoap extends java.rmi.Remote { | ||
| 14 | + | ||
| 15 | + /** | ||
| 16 | + * 车辆路单 | ||
| 17 | + */ | ||
| 18 | + public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 车辆信息 | ||
| 22 | + */ | ||
| 23 | + public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 线路信息 | ||
| 27 | + */ | ||
| 28 | + public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 29 | + | ||
| 30 | + /** | ||
| 31 | + * 站点信息 | ||
| 32 | + */ | ||
| 33 | + public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 34 | + | ||
| 35 | + /** | ||
| 36 | + * 出场 | ||
| 37 | + */ | ||
| 38 | + public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException; | ||
| 39 | + | ||
| 40 | + /** | ||
| 41 | + * 进场 | ||
| 42 | + */ | ||
| 43 | + public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException; | ||
| 44 | + public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException; | ||
| 45 | + public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 46 | + public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException; | ||
| 47 | + public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException; | ||
| 48 | +} |
src/main/java/com/bsth/old_sys_wsclient/company_service/CompanyServiceSoapProxy.java
| 1 | -package com.bsth.old_sys_wsclient.company_service; | ||
| 2 | - | ||
| 3 | -import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 4 | -import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder; | ||
| 5 | - | ||
| 6 | -public class CompanyServiceSoapProxy implements CompanyServiceSoap { | ||
| 7 | - private String _endpoint = null; | ||
| 8 | - private CompanyServiceSoap companyServiceSoap = null; | ||
| 9 | - | ||
| 10 | - public CompanyServiceSoapProxy() { | ||
| 11 | - _initCompanyServiceSoapProxy(); | ||
| 12 | - } | ||
| 13 | - | ||
| 14 | - public CompanyServiceSoapProxy(String endpoint) { | ||
| 15 | - _endpoint = endpoint; | ||
| 16 | - _initCompanyServiceSoapProxy(); | ||
| 17 | - } | ||
| 18 | - | ||
| 19 | - private void _initCompanyServiceSoapProxy() { | ||
| 20 | - try { | ||
| 21 | - companyServiceSoap = (new CompanyServiceLocator()).getCompanyServiceSoap(); | ||
| 22 | - if (companyServiceSoap != null) { | ||
| 23 | - if (_endpoint != null) | ||
| 24 | - ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | ||
| 25 | - else | ||
| 26 | - _endpoint = (String)((javax.xml.rpc.Stub)companyServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); | ||
| 27 | - } | ||
| 28 | - | ||
| 29 | - } | ||
| 30 | - catch (javax.xml.rpc.ServiceException serviceException) {} | ||
| 31 | - } | ||
| 32 | - | ||
| 33 | - public String getEndpoint() { | ||
| 34 | - return _endpoint; | ||
| 35 | - } | ||
| 36 | - | ||
| 37 | - public void setEndpoint(String endpoint) { | ||
| 38 | - _endpoint = endpoint; | ||
| 39 | - if (companyServiceSoap != null) | ||
| 40 | - ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | ||
| 41 | - | ||
| 42 | - } | ||
| 43 | - | ||
| 44 | - public CompanyServiceSoap getCompanyServiceSoap() { | ||
| 45 | - if (companyServiceSoap == null) | ||
| 46 | - _initCompanyServiceSoapProxy(); | ||
| 47 | - return companyServiceSoap; | ||
| 48 | - } | ||
| 49 | - | ||
| 50 | - public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 51 | - if (companyServiceSoap == null) | ||
| 52 | - _initCompanyServiceSoapProxy(); | ||
| 53 | - return companyServiceSoap.returnCarOilInfo(fUserName, fPassword, fGsdm, fDate, fCarLd, fError); | ||
| 54 | - } | ||
| 55 | - | ||
| 56 | - public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 57 | - if (companyServiceSoap == null) | ||
| 58 | - _initCompanyServiceSoapProxy(); | ||
| 59 | - return companyServiceSoap.returnClInfo(fUserName, fPassword, fGsdm, fClInfo, fError); | ||
| 60 | - } | ||
| 61 | - | ||
| 62 | - public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 63 | - if (companyServiceSoap == null) | ||
| 64 | - _initCompanyServiceSoapProxy(); | ||
| 65 | - return companyServiceSoap.returnXlInfo(fUserName, fPassword, fGsdm, fXlInfo, fError); | ||
| 66 | - } | ||
| 67 | - | ||
| 68 | - public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 69 | - if (companyServiceSoap == null) | ||
| 70 | - _initCompanyServiceSoapProxy(); | ||
| 71 | - return companyServiceSoap.returnZDInfo(fUserName, fPassword, fGsdm, fXlid, fZDInfo, fTimeInfo, fError); | ||
| 72 | - } | ||
| 73 | - | ||
| 74 | - public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{ | ||
| 75 | - if (companyServiceSoap == null) | ||
| 76 | - _initCompanyServiceSoapProxy(); | ||
| 77 | - return companyServiceSoap.returnCCInfo(fPassword, fGsdm, fRQ, fCCInfo, error); | ||
| 78 | - } | ||
| 79 | - | ||
| 80 | - public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{ | ||
| 81 | - if (companyServiceSoap == null) | ||
| 82 | - _initCompanyServiceSoapProxy(); | ||
| 83 | - return companyServiceSoap.returnJCInfo(fPassword, fGsdm, fRQ, fJCInfo, error); | ||
| 84 | - } | ||
| 85 | - | ||
| 86 | - public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException{ | ||
| 87 | - if (companyServiceSoap == null) | ||
| 88 | - _initCompanyServiceSoapProxy(); | ||
| 89 | - return companyServiceSoap.getLSLC_PB(fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr, fStrPBXX, fError, fJSYMC, fGSMC); | ||
| 90 | - } | ||
| 91 | - | ||
| 92 | - public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 93 | - if (companyServiceSoap == null) | ||
| 94 | - _initCompanyServiceSoapProxy(); | ||
| 95 | - return companyServiceSoap.getCurrentDayPlan(fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan, fError); | ||
| 96 | - } | ||
| 97 | - | ||
| 98 | - public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException{ | ||
| 99 | - if (companyServiceSoap == null) | ||
| 100 | - _initCompanyServiceSoapProxy(); | ||
| 101 | - companyServiceSoap.getHistoryJCCByXLBM(fIPAddress, fUserName, fPassword, fXLBM, fDate, fError, getHistoryJCCByXLBMResult, fDataTable); | ||
| 102 | - } | ||
| 103 | - | ||
| 104 | - public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 105 | - if (companyServiceSoap == null) | ||
| 106 | - _initCompanyServiceSoapProxy(); | ||
| 107 | - return companyServiceSoap.getUnusual(fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr, fError); | ||
| 108 | - } | ||
| 109 | - | ||
| 110 | - | 1 | +package com.bsth.old_sys_wsclient.company_service; |
| 2 | + | ||
| 3 | +import com.bsth.old_sys_wsclient.company_service.holders.copy.ArrayOfStringHolder; | ||
| 4 | +import com.bsth.old_sys_wsclient.company_service.holders.copy.GetHistoryJCCByXLBMResponseFDataTableHolder; | ||
| 5 | + | ||
| 6 | +public class CompanyServiceSoapProxy implements CompanyServiceSoap { | ||
| 7 | + private String _endpoint = null; | ||
| 8 | + private CompanyServiceSoap companyServiceSoap = null; | ||
| 9 | + | ||
| 10 | + public CompanyServiceSoapProxy() { | ||
| 11 | + _initCompanyServiceSoapProxy(); | ||
| 12 | + } | ||
| 13 | + | ||
| 14 | + public CompanyServiceSoapProxy(String endpoint) { | ||
| 15 | + _endpoint = endpoint; | ||
| 16 | + _initCompanyServiceSoapProxy(); | ||
| 17 | + } | ||
| 18 | + | ||
| 19 | + private void _initCompanyServiceSoapProxy() { | ||
| 20 | + try { | ||
| 21 | + companyServiceSoap = (new CompanyServiceLocator()).getCompanyServiceSoap(); | ||
| 22 | + if (companyServiceSoap != null) { | ||
| 23 | + if (_endpoint != null) | ||
| 24 | + ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | ||
| 25 | + else | ||
| 26 | + _endpoint = (String)((javax.xml.rpc.Stub)companyServiceSoap)._getProperty("javax.xml.rpc.service.endpoint.address"); | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + } | ||
| 30 | + catch (javax.xml.rpc.ServiceException serviceException) {} | ||
| 31 | + } | ||
| 32 | + | ||
| 33 | + public String getEndpoint() { | ||
| 34 | + return _endpoint; | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + public void setEndpoint(String endpoint) { | ||
| 38 | + _endpoint = endpoint; | ||
| 39 | + if (companyServiceSoap != null) | ||
| 40 | + ((javax.xml.rpc.Stub)companyServiceSoap)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint); | ||
| 41 | + | ||
| 42 | + } | ||
| 43 | + | ||
| 44 | + public CompanyServiceSoap getCompanyServiceSoap() { | ||
| 45 | + if (companyServiceSoap == null) | ||
| 46 | + _initCompanyServiceSoapProxy(); | ||
| 47 | + return companyServiceSoap; | ||
| 48 | + } | ||
| 49 | + | ||
| 50 | + public boolean returnCarOilInfo(String fUserName, String fPassword, String fGsdm, String fDate, ArrayOfStringHolder fCarLd, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 51 | + if (companyServiceSoap == null) | ||
| 52 | + _initCompanyServiceSoapProxy(); | ||
| 53 | + return companyServiceSoap.returnCarOilInfo(fUserName, fPassword, fGsdm, fDate, fCarLd, fError); | ||
| 54 | + } | ||
| 55 | + | ||
| 56 | + public boolean returnClInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fClInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 57 | + if (companyServiceSoap == null) | ||
| 58 | + _initCompanyServiceSoapProxy(); | ||
| 59 | + return companyServiceSoap.returnClInfo(fUserName, fPassword, fGsdm, fClInfo, fError); | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + public boolean returnXlInfo(String fUserName, String fPassword, String fGsdm, ArrayOfStringHolder fXlInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 63 | + if (companyServiceSoap == null) | ||
| 64 | + _initCompanyServiceSoapProxy(); | ||
| 65 | + return companyServiceSoap.returnXlInfo(fUserName, fPassword, fGsdm, fXlInfo, fError); | ||
| 66 | + } | ||
| 67 | + | ||
| 68 | + public boolean returnZDInfo(String fUserName, String fPassword, String fGsdm, String fXlid, ArrayOfStringHolder fZDInfo, javax.xml.rpc.holders.StringHolder fTimeInfo, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 69 | + if (companyServiceSoap == null) | ||
| 70 | + _initCompanyServiceSoapProxy(); | ||
| 71 | + return companyServiceSoap.returnZDInfo(fUserName, fPassword, fGsdm, fXlid, fZDInfo, fTimeInfo, fError); | ||
| 72 | + } | ||
| 73 | + | ||
| 74 | + public boolean returnCCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fCCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{ | ||
| 75 | + if (companyServiceSoap == null) | ||
| 76 | + _initCompanyServiceSoapProxy(); | ||
| 77 | + return companyServiceSoap.returnCCInfo(fPassword, fGsdm, fRQ, fCCInfo, error); | ||
| 78 | + } | ||
| 79 | + | ||
| 80 | + public boolean returnJCInfo(String fPassword, String fGsdm, String fRQ, ArrayOfStringHolder fJCInfo, javax.xml.rpc.holders.StringHolder error) throws java.rmi.RemoteException{ | ||
| 81 | + if (companyServiceSoap == null) | ||
| 82 | + _initCompanyServiceSoapProxy(); | ||
| 83 | + return companyServiceSoap.returnJCInfo(fPassword, fGsdm, fRQ, fJCInfo, error); | ||
| 84 | + } | ||
| 85 | + | ||
| 86 | + public boolean getLSLC_PB(String fIPAddress, String fUserName, String fPassword, String fDate, String fJSYGH, String fGSDM, ArrayOfStringHolder fStrLSLCArr, ArrayOfStringHolder fStrPBXX, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.StringHolder fJSYMC, javax.xml.rpc.holders.StringHolder fGSMC) throws java.rmi.RemoteException{ | ||
| 87 | + if (companyServiceSoap == null) | ||
| 88 | + _initCompanyServiceSoapProxy(); | ||
| 89 | + return companyServiceSoap.getLSLC_PB(fIPAddress, fUserName, fPassword, fDate, fJSYGH, fGSDM, fStrLSLCArr, fStrPBXX, fError, fJSYMC, fGSMC); | ||
| 90 | + } | ||
| 91 | + | ||
| 92 | + public boolean getCurrentDayPlan(String fIPAddress, String fUserName, String fPassword, String fJSYGH, String fGSDM, ArrayOfStringHolder fCurrentDayPlan, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 93 | + if (companyServiceSoap == null) | ||
| 94 | + _initCompanyServiceSoapProxy(); | ||
| 95 | + return companyServiceSoap.getCurrentDayPlan(fIPAddress, fUserName, fPassword, fJSYGH, fGSDM, fCurrentDayPlan, fError); | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + public void getHistoryJCCByXLBM(String fIPAddress, String fUserName, String fPassword, String fXLBM, String fDate, javax.xml.rpc.holders.StringHolder fError, javax.xml.rpc.holders.BooleanHolder getHistoryJCCByXLBMResult, GetHistoryJCCByXLBMResponseFDataTableHolder fDataTable) throws java.rmi.RemoteException{ | ||
| 99 | + if (companyServiceSoap == null) | ||
| 100 | + _initCompanyServiceSoapProxy(); | ||
| 101 | + companyServiceSoap.getHistoryJCCByXLBM(fIPAddress, fUserName, fPassword, fXLBM, fDate, fError, getHistoryJCCByXLBMResult, fDataTable); | ||
| 102 | + } | ||
| 103 | + | ||
| 104 | + public boolean getUnusual(String fIPAddress, String fUserName, String fPassword, String fDate, String fGSDM, String fFGSDM, ArrayOfStringHolder fDriverRequestArr, javax.xml.rpc.holders.StringHolder fError) throws java.rmi.RemoteException{ | ||
| 105 | + if (companyServiceSoap == null) | ||
| 106 | + _initCompanyServiceSoapProxy(); | ||
| 107 | + return companyServiceSoap.getUnusual(fIPAddress, fUserName, fPassword, fDate, fGSDM, fFGSDM, fDriverRequestArr, fError); | ||
| 108 | + } | ||
| 109 | + | ||
| 110 | + | ||
| 111 | } | 111 | } |
| 112 | \ No newline at end of file | 112 | \ No newline at end of file |