Commit 772e8bba4a05fdf381ba5bb510d5511762555a47

Authored by liquanyu
1 parent 4b78523e22

微量元素

Showing 13 changed files with 504 additions and 6 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/MicroelementFacade.java View file @ 772e8bb
... ... @@ -168,7 +168,7 @@
168 168 {
169 169 datas.addAll(configModel.getEarlys());
170 170 }
171   - else if (week < 28)
  171 + else if (week >= 13 && week < 28)
172 172 {
173 173 datas.addAll(configModel.getMiddles());
174 174 }
... ... @@ -188,7 +188,7 @@
188 188 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),13));
189 189 nextCheckWeek = "孕13周前后";
190 190 }
191   - else if (week < 28)
  191 + else if (week >= 13 && week < 28)
192 192 {
193 193 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),28));
194 194 nextCheckWeek = "孕28周前后";
195 195  
196 196  
197 197  
... ... @@ -201,22 +201,22 @@
201 201 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),8));
202 202 nextCheckWeek = "孕8周前后";
203 203 }
204   - else if (week < 13)
  204 + else if (week >= 8 && week < 13)
205 205 {
206 206 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),13));
207 207 nextCheckDate = "孕13周前后";
208 208 }
209   - else if (week < 20)
  209 + else if (week >= 13 && week < 20)
210 210 {
211 211 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),20));
212 212 nextCheckWeek = "孕20周前后";
213 213 }
214   - else if (week < 28)
  214 + else if (week >= 20 && week < 28)
215 215 {
216 216 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),28));
217 217 nextCheckWeek = "孕28周前后";
218 218 }
219   - else if (week < 36)
  219 + else if (week >= 28 && week < 36)
220 220 {
221 221 nextCheckDate = DateUtil.getyyyy_MM_dd1(DateUtil.addWeek(pat.getLastMenses(),36));
222 222 nextCheckWeek = "孕36周前后";
platform-transfer/pom.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 + <parent>
  5 + <groupId>com.lyms.core</groupId>
  6 + <artifactId>regional-platform</artifactId>
  7 + <version>1.0.1</version>
  8 + </parent>
  9 + <!--<version>1.0.1</version>-->
  10 + <modelVersion>4.0.0</modelVersion>
  11 + <packaging>war</packaging>
  12 + <artifactId>platform-transfer</artifactId>
  13 + <properties>
  14 + <solr.version>4.7.2</solr.version>
  15 + <spring.data.solr.version>1.2.0.RELEASE</spring.data.solr.version>
  16 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  17 + <!-- 文件拷贝时的编码 -->
  18 + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19 + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  20 + <!-- 编译时的编码 -->
  21 + <maven.compiler.encoding>UTF-8</maven.compiler.encoding>
  22 + <lyms.modelVersion>1.0.0</lyms.modelVersion>
  23 + </properties>
  24 +
  25 + <dependencyManagement>
  26 + <dependencies>
  27 +
  28 + <dependency>
  29 + <groupId>org.apache.httpcomponents</groupId>
  30 + <artifactId>httpclient</artifactId>
  31 + <version>4.5.2</version>
  32 + </dependency>
  33 +
  34 + <dependency>
  35 + <groupId>commons-httpclient</groupId>
  36 + <artifactId>commons-httpclient</artifactId>
  37 + <version>3.1</version>
  38 + </dependency>
  39 + </dependencies>
  40 + </dependencyManagement>
  41 + <dependencies>
  42 + <dependency>
  43 + <groupId>Access_JDBC30</groupId>
  44 + <artifactId>Access_JDBC30</artifactId>
  45 + <version>1.0</version>
  46 + <scope>system</scope>
  47 + <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/Access_JDBC30.jar</systemPath>
  48 + </dependency>
  49 + <dependency>
  50 + <groupId>com.lyms.core</groupId>
  51 + <artifactId>platform-common</artifactId>
  52 + <version>${project.version}</version>
  53 + </dependency>
  54 + <dependency>
  55 + <groupId>com.lyms.core</groupId>
  56 + <artifactId>platform-dal</artifactId>
  57 + <version>${project.version}</version>
  58 + </dependency>
  59 + </dependencies>
  60 + <build>
  61 + <resources>
  62 + <resource>
  63 + <directory>../platform-resource/resources</directory>
  64 + <excludes>
  65 + <exclude>
  66 + **/*
  67 + </exclude>
  68 + </excludes>
  69 + <filtering>true</filtering>
  70 + </resource>
  71 + <resource>
  72 + <directory>src/main/resources</directory>
  73 + <includes>
  74 + <include>**/*</include>
  75 + </includes>
  76 +
  77 + </resource>
  78 + <!-- 设置对auto-config.properties,jdbc.properties进行过虑,即这些文件中的${key}会被替换掉为真正的值 -->
  79 + <!-- -->
  80 + <resource>
  81 + <directory>src/main/resources</directory>
  82 + <includes>
  83 + <include>database.properties</include>
  84 + </includes>
  85 + <filtering>true</filtering>
  86 + </resource>
  87 + </resources>
  88 + <plugins>
  89 + <plugin>
  90 + <groupId>org.apache.maven.plugins</groupId>
  91 + <artifactId>maven-compiler-plugin</artifactId>
  92 + <configuration>
  93 + <source>1.7</source>
  94 + <target>1.7</target>
  95 + <encoding>${maven.compiler.encoding}</encoding>
  96 + </configuration>
  97 + </plugin>
  98 + <plugin>
  99 + <groupId>org.apache.maven.plugins</groupId>
  100 + <artifactId>maven-resources-plugin</artifactId>
  101 + <version>2.6</version>
  102 + <configuration>
  103 + <encoding>${project.build.sourceEncoding}</encoding>
  104 + <!-- 指定编码格式,否则在DOS下运行mvn命令时当发生文件资源copy时将使用系统默认使用GBK编码 -->
  105 + </configuration>
  106 + </plugin>
  107 + </plugins>
  108 + <finalName>platform-transfer</finalName>
  109 + </build>
  110 +</project>
platform-transfer/src/main/java/com/lyms/platform/conn/MicroelementConnection.java View file @ 772e8bb
  1 +package com.lyms.platform.conn;
  2 +
  3 +import com.lyms.platform.common.utils.PropertiesUtils;
  4 +
  5 +import java.sql.*;
  6 +
  7 +public class MicroelementConnection {
  8 + public static final String mdb_path = PropertiesUtils.getPropertyValue("mdb_path");
  9 + public static Connection getConnection()
  10 + {
  11 + Connection conn = null;
  12 + try {
  13 + Class.forName("com.hxtt.sql.access.AccessDriver");
  14 + String url = "jdbc:Access:///"+mdb_path;
  15 + conn = DriverManager.getConnection(url, "", "");
  16 + } catch (Exception e) {
  17 + e.printStackTrace();
  18 + }
  19 + return conn;
  20 + }
  21 +
  22 + public static void close(Connection conn, Statement sta, ResultSet rst)
  23 + {
  24 + try {
  25 + if (rst != null)
  26 + {
  27 + rst.close();
  28 + }
  29 + if (sta != null)
  30 + {
  31 + sta.close();
  32 + }
  33 + if (conn != null)
  34 + {
  35 + conn.close();
  36 + }
  37 + } catch (SQLException e) {
  38 + e.printStackTrace();
  39 + }
  40 + }
  41 +
  42 +}
platform-transfer/src/main/java/com/lyms/platform/microelement/MicroelementWorker.java View file @ 772e8bb
  1 +package com.lyms.platform.microelement;
  2 +
  3 +import com.lyms.platform.common.utils.HttpClientUtil;
  4 +import com.lyms.platform.common.utils.JsonUtil;
  5 +import com.lyms.platform.common.utils.PropertiesUtils;
  6 +import com.lyms.platform.conn.MicroelementConnection;
  7 +import com.lyms.platform.pojo.MicroelementModel;
  8 +
  9 +import java.sql.Connection;
  10 +import java.sql.ResultSet;
  11 +import java.sql.SQLException;
  12 +import java.sql.Statement;
  13 +import java.util.ArrayList;
  14 +import java.util.HashMap;
  15 +import java.util.List;
  16 +import java.util.Map;
  17 +
  18 +public class MicroelementWorker {
  19 + public static final String url = PropertiesUtils.getPropertyValue("url");
  20 + public static Map<String,Object> getMicroelementRecords()
  21 + {
  22 + Map<String,Object> data = new HashMap<>();
  23 + Connection conn = null;
  24 + Statement sta = null;
  25 + ResultSet rst = null;
  26 + try {
  27 + conn = MicroelementConnection.getConnection();
  28 + sta = conn.createStatement();
  29 + rst = sta.executeQuery("select * from BaseInfo where AUTOID=23928");
  30 + if(rst.next()){
  31 + String numberCode = rst.getString("编号");
  32 + String autoId = rst.getString("AUTOID");
  33 + data.put("numberCode","123456");
  34 + rst = sta.executeQuery("select * from ItemsInfo where BaseAutoId = "+autoId);
  35 +
  36 + List<Map> microelements = new ArrayList<>();
  37 + while (rst.next()) {
  38 + Map map = new HashMap();
  39 + String eleName = rst.getString("元素名称");
  40 + String result = rst.getString("测量值");
  41 + map.put("result",result);
  42 + map.put("eleName",eleName);
  43 + microelements.add(map);
  44 + }
  45 + data.put("microelements",microelements);
  46 + }
  47 + }
  48 + catch (SQLException e) {
  49 + }
  50 + finally {
  51 + MicroelementConnection.close(conn,sta,rst);
  52 + }
  53 + return data;
  54 + }
  55 +
  56 + public static void autoTransfer()
  57 + {
  58 + Map<String,Object> data = getMicroelementRecords();
  59 + if (data != null && data.size() > 0)
  60 + {
  61 + String json = JsonUtil.obj2Str(data);
  62 + System.out.println(json);
  63 + String result = HttpClientUtil.doPostSSL(url,json);
  64 + System.out.println("http result= "+result);
  65 + }
  66 + }
  67 +
  68 + public static void main(String[] args) {
  69 + autoTransfer();
  70 + }
  71 +}
platform-transfer/src/main/resources/config.properties View file @ 772e8bb
  1 +mdb_path=D://tc.mdb
  2 +url=https://dev-rp-api.healthbaby.com.cn/saveMicroelement
platform-transfer/src/main/resources/log4j_config.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  3 +<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
  4 +
  5 + <!-- Appenders -->
  6 +
  7 + <!-- Console log -->
  8 + <appender name="STDOUT" class="org.apache.log4j.ConsoleAppender">
  9 + <layout class="org.apache.log4j.PatternLayout">
  10 + <param name="ConversionPattern" value="%d %p - %m%n" />
  11 + </layout>
  12 + <filter class="org.apache.log4j.varia.LevelRangeFilter">
  13 + <!--<param name="LevelMin" value="INFO" /> -->
  14 + <param name="LevelMax" value="FATAL" />
  15 + </filter>
  16 + </appender>
  17 + <!-- Normal log: [DEBUG->WARN] -->
  18 + <appender name="Access" class="org.apache.log4j.RollingFileAppender">
  19 + <param name="File" value="${catalina.base}/logs/access-perf.log" />
  20 + <param name="Append" value="true" />
  21 + <param name="MaxFileSize" value="10MB" />
  22 + <param name="MaxBackupIndex" value="2" />
  23 + <param name="Threshold" value="DEBUG" />
  24 + <layout class="org.apache.log4j.PatternLayout">
  25 + <param name="ConversionPattern" value="%d %p - %m%n" />
  26 + </layout>
  27 + </appender>
  28 + <appender name="Info" class="org.apache.log4j.RollingFileAppender">
  29 + <param name="Append" value="true" />
  30 + <param name="File" value="${catalina.base}/logs/biz_info.log" />
  31 + <param name="maxFileSize" value="1024" />
  32 + <param name="maxBackupIndex" value="2" />
  33 + <layout class="org.apache.log4j.PatternLayout">
  34 + <param name="ConversionPattern" value="%d %p - %m%n" />
  35 + </layout>
  36 + <filter class="org.apache.log4j.varia.LevelRangeFilter">
  37 + <param name="LevelMin" value="INFO" />
  38 + <param name="LevelMax" value="INFO" />
  39 + <param name="AcceptOnMatch" value="true" />
  40 + </filter>
  41 + </appender>
  42 + <!-- ERORR LOG: [ERROR->FATAL] -->
  43 + <appender name="Error" class="org.apache.log4j.RollingFileAppender">
  44 + <param name="Append" value="true" />
  45 + <param name="File" value="${catalina.base}/logs/common_error.log" />
  46 + <param name="MaxFileSize" value="1024" />
  47 + <param name="MaxBackupIndex" value="2" />
  48 + <layout class="org.apache.log4j.PatternLayout">
  49 + <param name="ConversionPattern" value="%d [%t] %p - %m%n" />
  50 + </layout>
  51 + <filter class="org.apache.log4j.varia.LevelRangeFilter">
  52 + <param name="LevelMin" value="ERROR" />
  53 + <param name="LevelMax" value="ERROR" />
  54 + <param name="AcceptOnMatch" value="true" />
  55 + </filter>
  56 + </appender>
  57 +
  58 + <!-- ========================================================================================== -->
  59 + <!-- trace < debug < info < warn < error < fatal < off -->
  60 + <!-- ========================================================================================== -->
  61 +
  62 +
  63 + <appender name="DAL-MONITOR" class="org.apache.log4j.RollingFileAppender">
  64 + <param name="Append" value="true" />
  65 + <param name="File" value="${catalina.base}/logs/dal-perf.log" />
  66 + <param name="MaxFileSize" value="100MB" />
  67 + <param name="MaxBackupIndex" value="2" />
  68 + <layout class="org.apache.log4j.PatternLayout">
  69 + <param name="ConversionPattern" value="%d %p - %m%n" />
  70 + </layout>
  71 + </appender>
  72 +
  73 + <appender name="sync-data" class="org.apache.log4j.RollingFileAppender">
  74 + <param name="Append" value="true" />
  75 + <param name="File" value="${catalina.base}/logs/sync-data.log" />
  76 + <param name="MaxFileSize" value="100MB" />
  77 + <param name="MaxBackupIndex" value="2" />
  78 + <layout class="org.apache.log4j.PatternLayout">
  79 + <param name="ConversionPattern" value="%d %p - %m%n" />
  80 + </layout>
  81 + </appender>
  82 + <logger name="sync-data">
  83 + <level value="debug" />
  84 + <appender-ref ref="sync-data" />
  85 + </logger>
  86 + <logger name="DAL-MONITOR">
  87 + <level value="debug" />
  88 + <appender-ref ref="DAL-MONITOR" />
  89 + </logger>
  90 + <logger name="ACCESS-MONITOR">
  91 + <level value="debug" />
  92 + <appender-ref ref="Access" />
  93 + </logger>
  94 + <logger name="org.springframework">
  95 + <level value="debug" />
  96 + <appender-ref ref="sync-data" />
  97 + </logger>
  98 + <!-- ibatis end -->
  99 +
  100 + <!-- Root Logger -->
  101 + <root>
  102 + <priority value="debug" />
  103 + <appender-ref ref="STDOUT" />
  104 + <appender-ref ref="Error" />
  105 + </root>
  106 +
  107 +</log4j:configuration>
platform-transfer/src/main/resources/spring/applicationContext-dal.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<beans xmlns="http://www.springframework.org/schema/beans"
  3 + xmlns:p="http://www.springframework.org/schema/p"
  4 + xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
  5 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  6 + xmlns:cache="http://www.springframework.org/schema/cache"
  7 + xmlns:task="http://www.springframework.org/schema/task"
  8 + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  9 + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  10 + http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  11 + http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
  12 + http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
  13 +
  14 +
  15 +</beans>
platform-transfer/src/main/resources/spring/applicationContext-mvc.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<beans xmlns="http://www.springframework.org/schema/beans"
  3 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
  4 + xmlns:mvc="http://www.springframework.org/schema/mvc"
  5 + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
  6 + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.2.xsd
  7 + http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd"
  8 + default-lazy-init="true">
  9 +
  10 +
  11 +</beans>
platform-transfer/src/main/resources/spring/applicationContext-quartz.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<beans xmlns="http://www.springframework.org/schema/beans"
  3 + xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context"
  4 + xmlns:tx="http://www.springframework.org/schema/tx" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  5 + xmlns:cache="http://www.springframework.org/schema/cache" xmlns:task="http://www.springframework.org/schema/task"
  6 + xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  7 + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
  8 + http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
  9 + http://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache-3.1.xsd
  10 + http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-3.0.xsd">
  11 +
  12 + <bean id="microelementWorker" class="com.lyms.platform.microelement.MicroelementWorker"></bean>
  13 + <!-- 配置任务的具体类和方法 -->
  14 + <bean id="startWorkTask" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  15 + <!-- 要调用的bean -->
  16 + <property name="targetObject" ref="microelementWorker"></property>
  17 + <!-- 要调用的Method -->
  18 + <property name="targetMethod" value="microelementAutoTransfer"></property>
  19 + <!-- 是否并发,false表示 如果发生错误也不影响下一次的调用 -->
  20 + <property name="concurrent" value="false"></property>
  21 + </bean>
  22 + <!-- 配置一个触发器 -->
  23 + <bean id="microelementWorkerTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
  24 + <property name="jobDetail" ref="startWorkTask"></property>
  25 + <property name="cronExpression" value="0 0 1 * * ?"></property>
  26 + </bean>
  27 +
  28 + <!-- 总调度,用于启动定时器 -->
  29 + <bean id="schedulerFactory" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  30 + <property name="triggers" >
  31 + <list>
  32 + <ref bean="microelementWorkerTrigger"/>
  33 + </list>
  34 + </property>
  35 + </bean>
  36 +</beans>
platform-transfer/src/main/resources/spring/applicationContext.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xmlns:context="http://www.springframework.org/schema/context"
  4 + xmlns:solr="http://www.springframework.org/schema/data/solr"
  5 + xsi:schemaLocation="http://www.springframework.org/schema/data/solr http://www.springframework.org/schema/data/solr/spring-solr.xsd
  6 + http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  7 +
  8 + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
  9 +
  10 + <bean id="configProperties"
  11 + class="org.springframework.beans.factory.config.PropertiesFactoryBean">
  12 + <property name="locations">
  13 + <list>
  14 + <value>classpath:config.properties</value>
  15 + </list>
  16 + </property>
  17 + </bean>
  18 + <bean id="propertyConfigurer"
  19 + class="org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer">
  20 + <property name="properties" ref="configProperties" />
  21 + </bean>
  22 +
  23 + <!-- 采用注释的方式配置bean -->
  24 + <context:annotation-config />
  25 + <import resource="applicationContext_biz_patient.xml"/>
  26 + <import resource="applicationContext-dal.xml"/>
  27 +</beans>
platform-transfer/src/main/webapp/WEB-INF/lib/Access_JDBC30.jar View file @ 772e8bb

No preview for this file type

platform-transfer/src/main/webapp/WEB-INF/web.xml View file @ 772e8bb
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
  3 + license agreements. See the NOTICE file distributed with this work for additional
  4 + information regarding copyright ownership. The ASF licenses this file to
  5 + you under the Apache License, Version 2.0 (the "License"); you may not use
  6 + this file except in compliance with the License. You may obtain a copy of
  7 + the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
  8 + by applicable law or agreed to in writing, software distributed under the
  9 + License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  10 + OF ANY KIND, either express or implied. See the License for the specific
  11 + language governing permissions and limitations under the License. -->
  12 +<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13 + version="2.5"
  14 + xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  15 + <context-param>
  16 + <param-name>contextConfigLocation</param-name>
  17 + <param-value>
  18 + classpath*:/spring/applicationContext-sync-data.xml
  19 + </param-value>
  20 + </context-param>
  21 + <context-param>
  22 + <param-name>webAppRootKey</param-name>
  23 + <param-value>webapp.job.index</param-value>
  24 + </context-param>
  25 + <session-config>
  26 + <session-timeout>60</session-timeout>
  27 + </session-config>
  28 + <context-param>
  29 + <param-name>log4jConfigLocation</param-name>
  30 + <param-value>classpath:log4j_config.xml</param-value>
  31 + </context-param>
  32 + <context-param>
  33 + <param-name>log4jRefreshInterval</param-name>
  34 + <param-value>60000</param-value>
  35 + </context-param>
  36 + <servlet>
  37 + <servlet-name>dispatcher</servlet-name>
  38 + <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
  39 + <init-param>
  40 + <param-name>contextConfigLocation</param-name>
  41 + <param-value>classpath*:/spring/applicationContext-mvc.xml</param-value>
  42 + </init-param>
  43 + <load-on-startup>1</load-on-startup>
  44 + </servlet>
  45 + <servlet-mapping>
  46 + <servlet-name>dispatcher</servlet-name>
  47 + <url-pattern>/</url-pattern>
  48 + </servlet-mapping>
  49 + <filter>
  50 + <filter-name>HttpMethodFilter</filter-name>
  51 + <filter-class>org.springframework.web.filter.HttpPutFormContentFilter</filter-class>
  52 + </filter>
  53 + <filter-mapping>
  54 + <filter-name>HttpMethodFilter</filter-name>
  55 + <url-pattern>/*</url-pattern>
  56 + </filter-mapping>
  57 + <filter>
  58 + <filter-name>encodingFilter</filter-name>
  59 + <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
  60 + <init-param>
  61 + <param-name>encoding</param-name>
  62 + <param-value>UTF-8</param-value>
  63 + </init-param>
  64 + </filter>
  65 +
  66 + <filter-mapping>
  67 + <filter-name>encodingFilter</filter-name>
  68 + <url-pattern>/*</url-pattern>
  69 + </filter-mapping>
  70 + <listener>
  71 + <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  72 + </listener>
  73 + <listener>
  74 + <listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
  75 + </listener>
  76 +</web-app>
... ... @@ -29,6 +29,7 @@
29 29 <module>regional-etl</module>
30 30 <module>platform-sync-data</module>
31 31 <module>platform-msg-generate</module>
  32 + <module>platform-transfer</module>
32 33 </modules>
33 34  
34 35 <properties>