first commit

This commit is contained in:
2026-01-16 14:13:44 +08:00
commit 903ff8d495
34603 changed files with 8585054 additions and 0 deletions

BIN
WebRoot/WEB-INF/.DS_Store vendored Normal file

Binary file not shown.

View File

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<ServerConfig>
<Attribute name="DBTYPE">MSSQL</Attribute>
<Attribute name="DBEDIT">2008</Attribute>
<Attribute name="DEBUG">false</Attribute>
<Attribute name="RESOURCES">false</Attribute>
<Attribute name="TOPTITLE">智慧水务云平台</Attribute>
<Attribute name="DBNAME">EIP_PRD</Attribute>
<Attribute name="DBSERVER">127.0.0.1</Attribute>
<Attribute name="DBSERVER2">127.0.0.1</Attribute>
<Attribute name="IPADDR">false</Attribute>
<Attribute name="IPTYPE">IP</Attribute>
<Attribute name="GLOBESET">true</Attribute>
<Attribute name="MULTILOGIN">admin</Attribute>
<Attribute name="SMSTYPE">SMS</Attribute><!--亿美短信发送-->
<!--<Attribute name="SMSTYPE">Modem</Attribute> --><!--短信猫-->
<!--<Attribute name="SMSTYPE">Mobile</Attribute> --><!--移动提供服务-->
<Attribute name="SMSDevice">COM5</Attribute>
<Attribute name="SMSBaud">9600</Attribute>
<Attribute name="SMSSn">EPEY-TQKG-KKCW-QGWX</Attribute>
<Attribute name="SMSMobile">111111111</Attribute>
<!-- <Attribute name="IPTYPE">MAC</Attribute> -->
<!-- <Attribute name="IPTYPE">IPMAC</Attribute> -->
<!-- <Timers>-->
<!-- <Timer>com.sipai.cal.CalClient</Timer>-->
<!-- </Timers> -->
<!-- <Timers>-->
<!-- <Timer>com.sipai.httpclient.PumpClient</Timer>-->
<!-- </Timers>-->
<!-- <Timers>-->
<!-- <Timer>com.sipai.httpclient.WaterClient</Timer>-->
<!-- </Timers>-->
</ServerConfig>

View File

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">
<context:component-scan base-package="org.activiti.conf,org.activiti.rest.editor,org.activiti.rest.service">
<context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/>
</context:component-scan>
<!-- 单例json对象 -->
<bean id="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper"/>
<!-- 引擎内部提供的UUID生成器依赖fastxml的java-uuid-generator模块 -->
<bean id="uuidGenerator" class="org.activiti.engine.impl.persistence.StrongUuidGenerator" />
<!-- 单独运行的流程引擎 -->
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource" />
<!-- 如果没使用默认的H2数据库就必须设置这项 -->
<property name="databaseType" value="mssql"></property>
<!-- true: 构建流程引擎时,执行检查,如果需要就执行更新。 如果表不存在,就创建 -->
<property name="databaseSchemaUpdate" value="true"></property>
<property name="transactionManager" ref="transactionManager" />
<!-- 连接检查时间 -->
<property name="jdbcMaxCheckoutTime" value="20000" />
<!-- 连接无用后,是否主动连接 -->
<property name="jdbcPingEnabled" value="true" />
<!-- 连接无用检查并连接间隔,单位毫秒 -->
<property name="jdbcPingConnectionNotUsedFor" value="10000" />
<property name="jobExecutorActivate" value="false" />
<!-- 放弃使用系列表ACT_ID_创建同名的视图 -->
<property name="dbIdentityUsed" value="false"/>
<!-- 自动部署 -->
<property name="deploymentResources">
<list>
<value>classpath*:/com/sipai/activiti/deployments/*.zip</value>
</list>
</property>
<!-- 针对根据代码自动生成流程中文乱码-->
<property name="activityFontName" value="宋体"/>
<property name="labelFontName" value="宋体"/>
<!-- 自定义表单字段类型 -->
<property name="customFormTypes">
<list>
<bean class="com.sipai.activiti.form.UsersFormType"/>
</list>
</property>
<!-- JPA -->
<!-- <property name="jpaEntityManagerFactory" ref="entityManagerFactory" />
<property name="jpaHandleTransaction" value="false" />
<property name="jpaCloseEntityManager" value="false" /> -->
<!-- 全局事件 -->
<!-- <property name="typedEventListeners">
<map>
<entry key="VARIABLE_CREATED" >
<list>
<ref bean="variableCreateListener"/>
</list>
</entry>
</map>
</property> -->
</bean>
<bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean">
<property name="processEngineConfiguration" ref="processEngineConfiguration" />
</bean>
<!-- 7大接口 -->
<bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService"/>
<bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService"/>
<bean id="formService" factory-bean="processEngine" factory-method="getFormService"/>
<bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService"/>
<bean id="taskService" factory-bean="processEngine" factory-method="getTaskService"/>
<bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService"/>
<bean id="managementService" factory-bean="processEngine" factory-method="getManagementService"/>
<!-- 集成REST服务需要的bean -->
<bean id="restResponseFactory" class="org.activiti.rest.service.api.RestResponseFactory" />
<bean id="contentTypeResolver" class="org.activiti.rest.common.application.DefaultContentTypeResolver" />
</beans>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<taglib xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-jsptaglibrary_2_1.xsd"
version="2.1">
<description>
<![CDATA[security Tags]]>
</description>
<tlib-version>1.0</tlib-version>
<short-name>security</short-name>
<uri>http://www.springsecurity.org/jsp</uri>
<tag>
<description>
<![CDATA[authorize Tag]]>
</description>
<name>authorize</name>
<tag-class>
com.sipai.security.tag.AuthorizeTag
</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>buttonUrl</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
<type>java.lang.String</type>
</attribute>
</tag>
</taglib>

Binary file not shown.

Binary file not shown.

BIN
WebRoot/WEB-INF/lib/ant.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
WebRoot/WEB-INF/lib/jna.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE configuration
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-config.dtd">
<configuration>
<settings>
<!-- 打印查询语句 -->
<setting name="logImpl" value="STDOUT_LOGGING" />
</settings>
</configuration>
<!-- SLF4J | LOG4J | LOG4J2 | JDK_LOGGING | COMMONS_LOGGING | STDOUT_LOGGING | NO_LOGGING -->

View File

@ -0,0 +1,15 @@
<!-- <serviceGroup>用于多个service发布 -->
<serviceGroup>
<service name="equipmentService">
<description>
设备信息 Web Service
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.equipment.equipmentManagerServer</parameter>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
</serviceGroup>

View File

@ -0,0 +1,45 @@
<!-- <serviceGroup>用于多个service发布 -->
<serviceGroup>
<service name="msgService">
<description>
Web Service例子
</description>
<parameter name="ServiceClass">com.sipai.service.msg.MsgService</parameter>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
<service name="alarmMsgService" targetNamespace="http://com.sipai.webservice">
<description>
报警发消息的WebService
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.msg.ScadaAlarmServer</parameter>
<schema schemaNamespace="http://com.sipai.webservice"/>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
<service name="sendMsgService" targetNamespace="http://com.sipai.webservice">
<description>
发消息的WebService
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.msg.SendMsgServer</parameter>
<schema schemaNamespace="http://com.sipai.webservice"/>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
</serviceGroup>

View File

@ -0,0 +1,27 @@
<!-- <serviceGroup>用于多个service发布 -->
<serviceGroup>
<service name="testService">
<description>
Web Service例子
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.user.TestServer</parameter>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
<service name="userService">
<description>
User的WebService
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.user.UserServer</parameter>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
</serviceGroup>

View File

@ -0,0 +1,21 @@
<!-- <serviceGroup>用于多个service发布 -->
<serviceGroup>
<service name="getSSOldOPMData">
<description>
获取上实老OMP数据
</description>
<parameter name="ServiceClass">com.sipai.webservice.server.work.getSSOldOPMDataServer</parameter>
<protocols>
<add name="HttpSoap"/>
<add name="HttpPost"/>
<add name="HttpGet"/>
<add name="Documentation"/>
</protocols>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only"
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out"
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
</service>
</serviceGroup>

View File

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task.xsd">
<!-- 包扫描 -->
<context:component-scan base-package="com.sipai.service"/>
<!-- 执行异步任务的线程池TaskExecutor -->
<!--<task:executor id="myexecutor" pool-size="100" />
<task:annotation-driven executor="myexecutor"/>-->
<!-- 执行异步任务的线程池TaskExecutor -->
<task:executor id="my_info_executor" pool-size="100" />
<task:annotation-driven executor="my_info_executor"/>
</beans>

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:rabbit="http://www.springframework.org/schema/rabbit"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/rabbit
http://www.springframework.org/schema/rabbit/spring-rabbit-1.6.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd">
<!--引入rabbitmq配置文件-->
<context:property-placeholder location="classpath:rabbitmq.properties" ignore-unresolvable="true"/>
<!--连接工厂-->
<rabbit:connection-factory id="connectionFactory"
username="${rabbit.username}" password="${rabbit.password}" host="${rabbit.host}"
port="${rabbit.port}" channel-cache-size="50" publisher-confirms="true"/>
<!-- 开启rabbitMQ注解 -->
<rabbit:annotation-driven />
<!-- 消息监听 -->
<bean id="rabbitListenerContainerFactory"
class="org.springframework.amqp.rabbit.config.SimpleRabbitListenerContainerFactory">
<property name="connectionFactory" ref="connectionFactory" />
<property name="concurrentConsumers" value="3" />
<property name="maxConcurrentConsumers" value="10" />
<!--手动确认-->
<property name="acknowledgeMode" value="MANUAL"/>
</bean>
</beans>

View File

@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:elasticsearch="http://www.springframework.org/schema/data/elasticsearch"
xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch https://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd">
<elasticsearch:repositories base-package="com.sipai.dao.repository" elasticsearch-template-ref="elasticsearchTemplate"/>
<!-- <elasticsearch:transport-client id="client" client-transport-sniff="false" cluster-nodes="132.120.136.19:9300" cluster-name="elasticsearch-sipaiis" />-->
<bean name="elasticsearchTemplate" class="org.springframework.data.elasticsearch.core.ElasticsearchTemplate">
<constructor-arg name="client" ref="client"/>
</bean>
</beans>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd">
<!-- 自动扫描且只扫描@Controller -->
<context:component-scan base-package="org.activiti.rest.editor,org.activiti.rest.diagram">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" />
</context:component-scan>
<mvc:annotation-driven />
</beans>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd">
<!-- 自动扫描且只扫描@Controller -->
<context:component-scan base-package="org.activiti.rest">
<context:include-filter type="annotation" expression="org.springframework.stereotype.Controller" />
</context:component-scan>
<mvc:annotation-driven />
</beans>

View File

@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd">
<!-- 自动扫描该包使SpringMVC认为包下用了@controller注解的类是控制器 -->
<context:component-scan base-package="com.sipai.controller" />
<mvc:annotation-driven>
<mvc:message-converters>
<bean class="org.springframework.http.converter.StringHttpMessageConverter"/>
<bean class="com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
<value>application/json;charset=UTF-8</value>
</list>
</property>
</bean>
</mvc:message-converters>
</mvc:annotation-driven>
<mvc:resources mapping="/**" location="/" />
<!-- 不拦截静态资源/放行資源文件 -->
<mvc:default-servlet-handler/>
<!--避免IE执行AJAX时返回JSON出现下载文件 -->
<bean id="mappingJacksonHttpMessageConverter"
class="org.springframework.http.converter.json.MappingJackson2HttpMessageConverter">
<property name="supportedMediaTypes">
<list>
<value>text/html;charset=UTF-8</value>
</list>
</property>
</bean>
<!-- 启动SpringMVC的注解功能完成请求和注解POJO的映射 -->
<bean
class="org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter">
<property name="messageConverters">
<list>
<ref bean="mappingJacksonHttpMessageConverter" /> <!-- JSON转换器 -->
</list>
</property>
</bean>
<bean class="com.sipai.tools.SwaggerConfig"/>
<mvc:resources location="classpath:/META-INF/resources/" mapping="doc.html"/>
<mvc:resources location="classpath:/META-INF/resources/webjars/" mapping="/webjars/**"/>
<!-- 定义跳转的文件的前后缀 ,视图模式配置-->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<!-- 这里的配置我的理解是自动给后面action的方法return的字符串加上前缀和后缀变成一个 可用的url地址 -->
<property name="prefix" value="/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
<!-- 用于一般类调用SERVICE -->
<bean id="SpringContextUtil" class="com.sipai.tools.SpringContextUtil" scope="singleton"></bean>
<!-- 配置文件上传,如果没有使用文件上传可以不用配置,当然如果不配,那么配置文件中也不必引入上传组件包 -->
<bean id="multipartResolver"
class="org.springframework.web.multipart.commons.CommonsMultipartResolver">
<!-- 默认编码 -->
<property name="defaultEncoding" value="utf-8" />
<!-- 文件大小最大值 -->
<property name="maxUploadSize" value="10485760000" />
<!-- 内存中的最大值 -->
<property name="maxInMemorySize" value="40960" />
</bean>
<!-- 启动AOP AspectJ注解自动代理 -->
<aop:aspectj-autoproxy />
<!-- 通知spring使用cglib而不是jdk的来生成代理方法 AOP可以拦截到Controller -->
<aop:config proxy-target-class="true"></aop:config>
<mvc:interceptors>
<mvc:interceptor>
<mvc:mapping path="/**"/>
<bean class="com.sipai.tools.MVCIntercetpor"></bean>
</mvc:interceptor>
</mvc:interceptors>
<!-- 用于启动成功后执行后期补票线程池 -->
<bean id="StartupListener" class="com.sipai.tools.StartupListener"></bean>
</beans>

View File

@ -0,0 +1,59 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.1.xsd">
<bean id="SCADA_021HQWS" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"
destroy-method="close">
<property name="driverClassName" value="${driver}" />
<property name="url" value="${scada-url}" />
<property name="username" value="${scada-username}" />
<property name="password" value="${scada-password}" />
<!-- 配置初始化大小、最小、最大 -->
<property name="initialSize" value="8" />
<property name="minIdle" value="5" />
<property name="maxActive" value="19" />
<!-- 配置获取连接等待超时的时间 -->
<property name="maxWait" value="30000" />
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="60000" />
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="300000" />
<property name="testWhileIdle" value="true" />
<!-- 这里建议配置为TRUE防止取到的连接不可用 -->
<property name="testOnBorrow" value="true" />
<property name="testOnReturn" value="false" />
<!-- 打开PSCache并且指定每个连接上PSCache的大小 -->
<property name="poolPreparedStatements" value="true" />
<property name="maxPoolPreparedStatementPerConnectionSize"
value="20" />
<!-- 这里配置提交方式默认就是TRUE可以不用配置 -->
<property name="defaultAutoCommit" value="true" />
<!-- 验证连接有效与否的SQL不同的数据配置不同 -->
<property name="validationQuery" value="select 1 " />
<!-- 开启Druid的监控统计功能,StatFilter可以和其他的Filter配置使用 -->
<property name="filters" value="stat"/>
<!-- proxyFilters属性配置,通过bean的方式配置 -->
<property name="proxyFilters">
<list>
<!-- <ref bean="log-filter"/>-->
</list>
</property>
</bean>
</beans>

View File

@ -0,0 +1,262 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-4.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd" default-lazy-init="true">
<import resource="activiti.cfg.xml"/>
<!-- 自动扫描 -->
<context:component-scan base-package="com.sipai"/>
<!-- 引入配置文件 -->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:db.properties</value>
<value>classpath:redis.properties</value>
<value>classpath:minio.properties</value>
<value>classpath:mqtt.properties</value>
<value>classpath:modbus.properties</value>
<value>classpath:pythonModel.properties</value>
<value>classpath:work.properties</value>
<value>classpath:library.properties</value>
<value>classpath:thirdRequest.properties</value>
<value>classpath:xxl-job-executor.properties</value>
</list>
</property>
</bean>
<!-- minio配置类初始化 -->
<bean id="minioProp" class="com.sipai.tools.MinioProp">
<property name="endPoint" value="${minio.endPoint}"/>
<property name="accessKey" value="${minio.accessKey}"/>
<property name="secretKey" value="${minio.secretKey}"/>
</bean>
<!-- modbus配置类初始化 -->
<bean id="modbusProp" class="com.sipai.tools.ModbusProp">
<property name="url" value="${modbus.url}"/>
<property name="port" value="${modbus.port}"/>
</bean>
<!-- 第三方同步接口 -->
<bean id="thirdRequestProp" class="com.sipai.tools.ThirdRequestProp">
<property name="interfaces" value="${interfaces}"/>
<property name="boturl" value="${boturl}"/>
<property name="bottoken" value="${bottoken}"/>
</bean>
<!-- modbus配置类初始化 -->
<bean id="pythonModelProp" class="com.sipai.tools.PythonModelProp">
<property name="restart" value="${py.restart}"/>
<property name="person" value="${py.person}"/>
<property name="receiveData" value="${py.receiveData}"/>
</bean>
<!-- mqtt配置类初始化 -->
<bean id="mqtt" class="com.sipai.tools.Mqtt">
<property name="status" value="${mqtt.status}"/>
<property name="username" value="${mqtt.username}"/>
<property name="password" value="${mqtt.password}"/>
<property name="hostTcp" value="${mqtt.host_tcp}"/>
<property name="hostWeb" value="${mqtt.host_ws}"/>
</bean>
<!-- 工单类配置类初始化 -->
<bean id="work" class="com.sipai.tools.Work">
<property name="mainPlanAuto" value="${work.main_plan_auto}"/>
<property name="intactRate" value="${work.intact_rate}"/>
<property name="compete" value="${work.compete}"/>
</bean>
<!-- 各类库配置类初始化 -->
<bean id="library" class="com.sipai.tools.LibraryTool">
<property name="repairPart" value="${library.repair_part}"/>
<property name="mainPart" value="${library.main_part}"/>
<property name="overhaulPart" value="${library.overhaul_part}"/>
</bean>
<bean id="dataSourceMaster" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"
destroy-method="close">
<property name="driverClassName" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
<!-- 配置初始化大小、最小、最大 -->
<property name="initialSize" value="8"/>
<property name="minIdle" value="5"/>
<property name="maxActive" value="19"/>
<!-- 配置获取连接等待超时的时间 -->
<property name="maxWait" value="30000"/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="300000"/>
<property name="testWhileIdle" value="true"/>
<!-- 这里建议配置为TRUE防止取到的连接不可用 -->
<property name="testOnBorrow" value="true"/>
<property name="testOnReturn" value="false"/>
<!-- 打开PSCache并且指定每个连接上PSCache的大小 -->
<property name="poolPreparedStatements" value="true"/>
<property name="maxPoolPreparedStatementPerConnectionSize"
value="20"/>
<!-- 这里配置提交方式默认就是TRUE可以不用配置 -->
<property name="defaultAutoCommit" value="true"/>
<!-- 验证连接有效与否的SQL不同的数据配置不同 -->
<property name="validationQuery" value="select 1 "/>
<!-- 开启Druid的监控统计功能,StatFilter可以和其他的Filter配置使用 -->
<property name="filters" value="stat,wall,log4j"/>
<!-- proxyFilters属性配置,通过bean的方式配置 -->
<property name="proxyFilters">
<list>
<ref bean="log-filter"/>
</list>
</property>
</bean>
<!-- 上面的druid的配置 -->
<bean id="log-filter" class="com.alibaba.druid.filter.logging.Log4j2Filter">
<!-- 所有连接相关的日志 -->
<property name="connectionLogEnabled" value="false"/>
<!-- 所有Statement相关的日志 -->
<property name="statementLogEnabled" value="false"/>
<!-- 是否显示结果集 -->
<property name="resultSetLogEnabled" value="true"/>
<!-- 是否显示SQL语句 -->
<property name="statementExecutableSqlLogEnable" value="true"/>
</bean>
<bean id="SCADA_HFCG" class="com.alibaba.druid.pool.DruidDataSource" init-method="init"
destroy-method="close">
<property name="driverClassName" value="${driver}"/>
<property name="url" value="${scada-url}"/>
<property name="username" value="${scada-username}"/>
<property name="password" value="${scada-password}"/>
<!-- 配置初始化大小、最小、最大 -->
<property name="initialSize" value="8"/>
<property name="minIdle" value="5"/>
<property name="maxActive" value="19"/>
<!-- 配置获取连接等待超时的时间 -->
<property name="maxWait" value="30000"/>
<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="60000"/>
<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="300000"/>
<property name="testWhileIdle" value="true"/>
<!-- 这里建议配置为TRUE防止取到的连接不可用 -->
<property name="testOnBorrow" value="true"/>
<property name="testOnReturn" value="false"/>
<!-- 打开PSCache并且指定每个连接上PSCache的大小 -->
<property name="poolPreparedStatements" value="true"/>
<property name="maxPoolPreparedStatementPerConnectionSize"
value="20"/>
</bean>
<bean id="dataSource" class="com.sipai.tools.DynamicDataSource">
<property name="defaultTargetDataSource" ref="dataSourceMaster"/>
<property name="targetDataSources">
<map key-type="com.sipai.tools.DataSources">
<entry key="MASTER" value-ref="dataSourceMaster"/>
<entry key="SCADA_HFCG" value-ref="SCADA_HFCG"/>
<!-- 这里还可以加多个dataSource -->
</map>
</property>
</bean>
<!-- spring和MyBatis整合 -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource"/>
<!-- <property name="configLocation" value="/WEB-INF/mybatis-config.xml"></property> -->
<!-- 自动扫描mapping.xml文件 -->
<property name="mapperLocations">
<array>
<value>classpath*:com/sipai/mapper/**/*.xml</value>
</array>
</property>
<!-- 翻页功能 -->
<property name="plugins">
<array>
<bean class="com.github.pagehelper.PageHelper">
<property name="properties">
<value>
dialect=sqlserver
reasonable=true
</value>
</property>
</bean>
</array>
</property>
</bean>
<!-- 获取sqlSession, 用于commDao的实现-->
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
<constructor-arg index="0" ref="sqlSessionFactory"/>
</bean>
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<property name="basePackage" value="com.sipai.mapper"/>
<property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"/>
</bean>
<!-- (事务管理)transaction manager, use JtaTransactionManager for global tx -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>
<!-- enable transaction annotation support -->
<tx:annotation-driven transaction-manager="transactionManager"/>
<!-- 需要将流程引擎的事务托管给spring统一管理 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="start*" propagation="REQUIRED"/>
<tx:method name="execute*" propagation="REQUIRED"/>
<tx:method name="save*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="update*" propagation="REQUIRED"/>
<tx:method name="remove*" propagation="REQUIRED"/>
<tx:method name="assign*" propagation="REQUIRED"/>
<tx:method name="create*" propagation="REQUIRED"/>
<tx:method name="complete*" propagation="REQUIRED"/>
<tx:method name="finish*" propagation="REQUIRED"/>
<tx:method name="terminate*" propagation="REQUIRED"/>
<tx:method name="take*" propagation="REQUIRED"/>
<tx:method name="deploy*" propagation="REQUIRED"/>
<tx:method name="undeploy*" propagation="REQUIRED"/>
<tx:method name="redeploy*" propagation="REQUIRED"/>
<tx:method name="get*" propagation="REQUIRED" read-only="true"/>
<tx:method name="find*" propagation="REQUIRED" read-only="true"/>
<tx:method name="query*" propagation="REQUIRED" read-only="true"/>
<tx:method name="search*" propagation="REQUIRED" read-only="true"/>
<tx:method name="is*" propagation="REQUIRED" read-only="true"/>
<tx:method name="*" propagation="REQUIRED"/>
</tx:attributes>
</tx:advice>
<bean id="dataSourceScadaBean" class="com.sipai.tools.DataSourceInterceptor"/>
<aop:config>
<aop:pointcut id="transactionPointcut" expression="execution(public * com.sipai.service.*.*(..))"/>
<aop:pointcut id="dataSourceScadaPointcut" expression="execution(public * com.sipai.service.scada.*.*(..)))"/>
<aop:advisor pointcut-ref="transactionPointcut"
advice-ref="txAdvice"/>
<aop:aspect ref="dataSourceScadaBean" order="0">
<aop:before method="before" pointcut-ref="dataSourceScadaPointcut"></aop:before>
<aop:after method="after" pointcut-ref="dataSourceScadaPointcut"></aop:after>
</aop:aspect>
</aop:config>
<!-- 开启aop注解方式 -->
<aop:aspectj-autoproxy proxy-target-class="true"></aop:aspectj-autoproxy>
</beans>

View File

@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-4.1.xsd">
<!-- jedis 配置 -->
<bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig" >
<property name="maxIdle" value="${redis.maxIdle}" />
<property name="maxWaitMillis" value="${redis.maxWait}" />
<property name="testOnBorrow" value="${redis.testOnBorrow}" />
</bean >
<!-- redis服务器中心 -->
<bean id="connectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" >
<property name="poolConfig" ref="poolConfig" />
<property name="port" value="${redis.port}" />
<property name="hostName" value="${redis.host}" />
<property name="password" value="${redis.password}" />
<property name="timeout" value="${redis.timeout}" ></property>
</bean >
<bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate" >
<property name="connectionFactory" ref="connectionFactory" />
<property name="keySerializer" >
<bean class="org.springframework.data.redis.serializer.StringRedisSerializer" />
</property>
<property name="valueSerializer" >
<bean class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer" />
</property>
</bean >
<!-- cache配置 -->
<bean id="methodCacheInterceptor" class="com.sipai.redis.MethodCacheInterceptor" >
<property name="redisUtil" ref="redisUtil" />
</bean >
<bean id="redisUtil" class="com.sipai.redis.RedisUtil" >
<property name="redisTemplate" ref="redisTemplate" />
</bean >
<!-- 需要加入缓存的类或方法 -->
<bean id="methodCachePointCut" class="org.springframework.aop.support.RegexpMethodPointcutAdvisor" >
<property name="advice" >
<ref bean="methodCacheInterceptor" />
</property>
<property name="patterns" >
<list>
<!-- 确定正则表达式列表 -->
<value>com\.sipai\.service\.scada\.MPointHistoryService.*</value >
</list>
</property>
</bean >
</beans>

View File

@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<b:beans xmlns="http://www.springframework.org/schema/security"
xmlns:b="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-3.2.xsd">
<!-- 配置不需要安全管理的界面 -->
<http pattern="/CSS/**" security="none"></http>
<http pattern="/JS/**" security="none"></http>
<http pattern="/IMG/**" security="none"></http>
<http pattern="/jsp/login.jsp" security="none" />
<!-- <http pattern="/jsp/main.jsp" security="none" /> -->
<http pattern="/index.jsp" security="none" />
<http pattern="/node_modules/**" security="none"></http>
<http pattern="/plugins/**" security="none"></http>
<http pattern="/modeler.html" security="none" />
<http pattern="/editor-app/**" security="none"></http>
<http pattern="/diagram-viewer/**" security="none"></http>
<http pattern="/WEB-INF/swagger/**" security="none"></http>
<http pattern="/doc.html" security="none" />
<http pattern="/swagger-ui.html" security="none" />
<http pattern="/v2/api-docs" security="none"></http>
<http pattern="/webjars/**" security="none"></http>
<http pattern="/swagger-resources" security="none"></http>
<http pattern="/swagger-resources/**" security="none"></http>
<http pattern="/configuration/ui" security="none"></http>
<http pattern="/configuration/security" security="none"></http>
<http use-expressions='true' entry-point-ref="myAuthenticationEntryPoint" > <!-- access-denied-page="/accessDenied.jsp" -->
<access-denied-handler error-page="/accessDenied"/>
<!-- 使用自己自定义的登陆认证过滤器 --><!-- 这里一定要注释掉,因为我们需要重写它的过滤器 -->
<!-- <form-login login-page="/jsp/login.jsp"
authentication-failure-url="/Login/doFail.do"
default-target-url="/Login/doPass.do"
/> -->
<!--访问/admin.jsp资源的用户必须具有ROLE_ADMIN的权限 -->
<!-- <intercept-url pattern="/admin.jsp" access="ROLE_ADMIN" /> -->
<!--访问/**资源的用户必须具有ROLE_USER的权限 -->
<!-- <intercept-url pattern="/**" access="ROLE_USER" /> -->
<!--防止多个用户同时登陆一个账号 -->
<session-management>
<concurrency-control max-sessions="1"
error-if-maximum-exceeded="false" />
</session-management>
<!-- 认证和授权 --><!-- 重写登陆认证的过滤器,使我们可以拿到任何参数 -->
<custom-filter ref="myAuthenticationFilter" position="FORM_LOGIN_FILTER" />
<custom-filter ref="myFilter" before="FILTER_SECURITY_INTERCEPTOR" />
<!-- 登出管理 -->
<logout invalidate-session="true" logout-url="/j_spring_security_logout" />
</http>
<!-- 未登录的切入点 --><!-- 需要有个切入点 -->
<b:bean id="myAuthenticationEntryPoint" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
<b:property name="loginFormUrl" value="/jsp/login.jsp"></b:property>
</b:bean>
<!-- 登录验证器2.0:用户有没有登录的资格 --><!-- 这个就是重写的认证过滤器 -->
<b:bean id="myAuthenticationFilter" class="com.sipai.security.MyUsernamePasswordAuthenticationFilter">
<b:property name="authenticationManager" ref="authenticationManager" />
<b:property name="filterProcessesUrl" value="/j_spring_security_check" />
<b:property name="authenticationSuccessHandler">
<b:bean class="com.sipai.security.LoginSuccessHandler">
<!-- <b:property name="defaultTargetUrl" value="/Login/doPass.do" /> -->
</b:bean>
</b:property>
<b:property name="authenticationFailureHandler">
<b:bean class="com.sipai.security.LoginFailureHandler">
<!-- <b:property name="defaultFailureUrl" value="/Login/doFail.do" /> -->
</b:bean>
</b:property>
</b:bean>
<!-- 登录验证器1.0:用户有没有登录的资格 --><!-- 这个就是重写的认证过滤器 -->
<!-- <b:bean id="myAuthenticationFilter" class="com.sipai.security.MyUsernamePasswordAuthenticationFilter">
<b:property name="authenticationManager" ref="authenticationManager" />
<b:property name="filterProcessesUrl" value="/j_spring_security_check" />
<b:property name="authenticationSuccessHandler">
<b:bean class="org.springframework.security.web.authentication.SavedRequestAwareAuthenticationSuccessHandler">
<b:property name="defaultTargetUrl" value="/Login/doPass.do" />
</b:bean>
</b:property>
<b:property name="authenticationFailureHandler">
<b:bean class="org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler">
<b:property name="defaultFailureUrl" value="/Login/doFail.do" />
</b:bean>
</b:property>
</b:bean> -->
<!--一个自定义的filter必须包含 authenticationManager,accessDecisionManager,securityMetadataSource三个属性
我们的所有控制将在这三个类中实现,解释详见具体配置 -->
<b:bean id="myFilter"
class="com.sipai.security.MyFilterSecurityInterceptor">
<b:property name="authenticationManager" ref="authenticationManager" />
<b:property name="accessDecisionManager" ref="myAccessDecisionManagerBean" />
<b:property name="securityMetadataSource" ref="securityMetadataSource" />
</b:bean>
<!--验证配置认证管理器实现用户认证的入口主要实现UserDetailsService接口即可 -->
<authentication-manager alias="authenticationManager">
<authentication-provider user-service-ref="myUserDetailService">
<!--如果用户的密码采用加密的话 -->
<!-- <password-encoder hash="md5" /> -->
</authentication-provider>
</authentication-manager>
<!--在这个类中,你就可以从数据库中读入用户的密码,角色信息,是否锁定,账号是否过期等 -->
<b:bean id="myUserDetailService" class="com.sipai.security.MyUserDetailServiceImpl" />
<!--访问决策器,决定某个用户具有的角色,是否有足够的权限去访问某个资源 -->
<b:bean id="myAccessDecisionManagerBean"
class="com.sipai.security.MyAccessDecisionManager">
</b:bean>
<!--资源源数据定义,将所有的资源和权限对应关系建立起来,即定义某一资源可以被哪些角色访问 -->
<b:bean id="securityMetadataSource"
class="com.sipai.security.MySecurityMetadataSource" />
</b:beans>

View File

@ -0,0 +1,665 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-4.1.xsd">
<!-- ========jsyw任务定时任 start======== -->
<bean id="JSYWJob" class="com.sipai.quartz.job.JSYWJob"/>
<bean id="jsywJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="JSYWJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 -->
<bean id="CronTriggerBean_jsyw" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="jsywJobMethod"></property>
<property name="cronExpression" value="0 0 1 * * ?"></property>
</bean>
<!-- ==========jsyw任务定时任务 end============ -->
<!--===========ZDXFJob采集单自动下发任务开始===================-->
<bean id="autoSamplePlanJob" class="com.sipai.quartz.job.whp.AutoSamplePlanJob"/>
<bean id="zdxfJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="autoSamplePlanJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 -->
<bean id="CronTriggerBean_autoSamplePlan" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="zdxfJobMethod"></property>
<property name="cronExpression" value="0 0/3 * * * ?"></property>
</bean>
<!--===========ZDXFJob采集单自动下发任务结束===================-->
<!-- ========控制指标任务定时任 start======== -->
<bean id="ProductionIndexPlanJob" class="com.sipai.quartz.job.ProductionIndexPlanJob"/>
<bean id="ProductionIndexPlanJobMethod"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="ProductionIndexPlanJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 -->
<bean id="CronTriggerBean_ProductionIndexPlan" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="ProductionIndexPlanJobMethod"></property>
<property name="cronExpression" value="0 0 1 * * ?"></property>
</bean>
<!-- ==========控制指标任务定时任务 end============ -->
<!-- ========待办任务定时任 start======== -->
<bean id="OEProcessJob" class="com.sipai.quartz.job.OEProcessJob"/>
<bean id="OEProcessJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="OEProcessJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 -->
<bean id="CronTriggerBean_OEProcess" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="OEProcessJobMethod"></property>
<property name="cronExpression" value="0 0/3 * * * ?"></property>
</bean>
<!-- ==========待办任务定时任务 end============ -->
<!-- ========设备检定记录定时任务 start======== -->
<bean id="SpecialEquipmentJob" class="com.sipai.quartz.job.SpecialEquipmentJob"/>
<bean id="SpecialEquipmentJobMethod"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="SpecialEquipmentJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 -->
<bean id="CronTriggerBean_SpecialEquipment" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="SpecialEquipmentJobMethod"></property>
<property name="cronExpression" value="0 0 0 * * ?"></property>
</bean>
<!-- ==========设备检定记录定时任务 end============ -->
<!-- ======== start======== -->
<!-- <bean id="ScadaModbusJob" class="com.sipai.quartz.job.ScadaModbusJob"/> -->
<!-- <bean id="ScadaModbusJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> -->
<!-- <property name="targetObject"> -->
<!-- <ref bean="ScadaModbusJob"/> -->
<!-- </property> -->
<!-- <property name="targetMethod"> 要执行的方法名称 -->
<!-- <value>execute</value> -->
<!-- </property> -->
<!-- </bean> -->
<!-- 调度触发器 -->
<!-- <bean id="CronTriggerBean_scada" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"> -->
<!-- <property name="jobDetail" ref="ScadaModbusJobMethod"></property> -->
<!-- <property name="cronExpression" value="*/6 * * * * ?"></property> -->
<!-- </bean> -->
<!-- ==========end============ -->
<!--定时下发维护保养/检修计划 -->
<!-- ======== start======== -->
<bean id="MaintenancePlanJob" class="com.sipai.quartz.job.MaintenancePlanJob"/>
<bean id="MaintenancePlanJobMethod"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="MaintenancePlanJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每天凌晨1点触发 -->
<bean id="CronTriggerBean_MaintenancePlan" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="MaintenancePlanJobMethod"></property>
<property name="cronExpression" value="0 0 1 * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--定时下发巡检计划 -->
<!-- ======== start======== -->
<bean id="PatrolPlanJob" class="com.sipai.quartz.job.PatrolPlanJob"/>
<bean id="PatrolPlanJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="PatrolPlanJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 巡检任务触发器 --> <!--每天凌晨0点5分触发 -->
<bean id="CronTriggerBean_PatrolPlan" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="PatrolPlanJobMethod"></property>
<property name="cronExpression" value="0 34 20 * * ?"></property>
</bean>
<!--定时下发巡检计划 -->
<!-- ======== start======== -->
<bean id="UserCardJob" class="com.sipai.quartz.job.UserCardJob"/>
<bean id="UserCardJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="UserCardJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>dataSave</value>
</property>
</bean>
<!-- 巡检任务触发器 --> <!--每天凌晨0点5分触发 -->
<bean id="CronTriggerBean_UserCardJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="UserCardJobMethod"></property>
<property name="cronExpression" value="0 */1 * * * ?"></property>
</bean>
<!--定时下发巡检计划 -->
<!-- ======== start======== -->
<bean id="BIMDataJob_NS" class="com.sipai.quartz.job.BIMDataJob_NS"/>
<bean id="BIMDataJob_NSMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="BIMDataJob_NS"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>fun1</value>
</property>
</bean>
<!-- 巡检任务触发器 --> <!--每天凌晨0点5分触发 -->
<bean id="CronTriggerBean_BIMDataJob_NS" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="BIMDataJob_NSMethod"></property>
<property name="cronExpression" value="0/30 * * * * ?"></property>
</bean>
<!-- 定时查询巡检记录开始 -->
<!-- <bean id="PatrolRecordCollectionJob" class="com.sipai.quartz.job.PatrolRecordCollectionJob" />
<bean id="PatrolRecordCollectionJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="PatrolRecordCollectionJob" />
</property>
<property name="targetMethod"> 要执行的方法名称
<value>execute</value>
</property>
</bean>
巡检记录任务触发器 每5分钟触发
<bean id="CronTriggerBean_PatrolRecordCollection" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="PatrolRecordCollectionJobMethod"></property>
<property name="cronExpression" value="0 0 */1 * * ?"></property>
<property name="cronExpression" value="0 0/5 * * * ?"></property>
</bean> -->
<!-- 定时查询巡检记录结束 -->
<!-- ==========end============ -->
<!--定时发现违规记录 -->
<!-- ======== start======== -->
<!-- <bean id="PatrolRecordViolationRecordJob" class="com.sipai.quartz.job.PatrolRecordViolationRecordJob" />
<bean id="PatrolRecordViolationRecordJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="PatrolRecordViolationRecordJob" />
</property>
<property name="targetMethod"> 要执行的方法名称
<value>execute</value>
</property>
</bean>
违规记录触发器 每天凌晨0点触发
<bean id="CronTriggerBean_PatrolRecordViolationRecord" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="PatrolRecordViolationRecordJobMethod"></property>
<property name="cronExpression" value="0 0 0 * * ?"></property>
</bean> -->
<!-- ==========end============ -->
<!-- 定时检测报警 -->
<!-- ======== start======== -->
<bean id="AlarmJob" class="com.sipai.quartz.job.AlarmJob"/>
<bean id="AlarmJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="AlarmJob"/>
</property>
<property name="targetMethod">
<value>excute</value>
</property>
</bean>
<!-- 调度触发器 每天凌晨1点触发 -->
<bean id="CronTriggerBean_Alarm" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="AlarmJobMethod"></property>
<property name="cronExpression" value="0 0/30 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--定时获取BIM数据-->
<!--======== start========-->
<bean id="BIMJob" class="com.sipai.quartz.job.BIMJob"/>
<bean id="BIMJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="BIMJob"/>
</property>
<property name="targetMethod">
<value>excute</value>
</property>
</bean>
<!--调度触发器 每天凌晨1点触发-->
<bean id="CronTriggerBean_BIMJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="BIMJobMethod"></property>
<property name="cronExpression" value="0/30 * * * * ?"></property>
</bean>
<!-- 定时获取市政院模型计算数据(泵组模型)-->
<!-- ======== start========-->
<bean id="ModelJob" class="com.sipai.quartz.job.ModelJob"/>
<bean id="ModelJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="ModelJob"/>
</property>
<property name="targetMethod">
<value>excute</value>
</property>
</bean>
<!-- 调度触发器 每天凌晨1点触发-->
<bean id="CronTriggerBean_ModelJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="ModelJobMethod"></property>
<property name="cronExpression" value="0/20 * * * * ?"></property>
</bean>
<!-- ==========end============-->
<!-- 定时获取市政院模型计算数据(加药模型)-->
<!-- ======== start========-->
<bean id="ModelJob_JY" class="com.sipai.quartz.job.ModelJob_JY_20221107"/>
<bean id="ModelJobMethod_JY" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="ModelJob_JY"/>
</property>
<property name="targetMethod">
<value>excuteJY</value>
</property>
</bean>
<!-- 调度触发器 每天凌晨1点触发-->
<bean id="CronTriggerBean_ModelJob_JY" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="ModelJobMethod_JY"></property>
<property name="cronExpression" value="0/20 * * * * ?"></property>
</bean>
<!-- ==========end============-->
<!-- 定时获取市政院模型计算数据(滤池模型)-->
<!-- ======== start========-->
<bean id="ModelJob_LC" class="com.sipai.quartz.job.ModelJob_LC"/>
<bean id="ModelJobMethod_LC" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="ModelJob_LC"/>
</property>
<property name="targetMethod">
<value>excuteLC</value>
</property>
</bean>
<!-- 调度触发器 每天凌晨1点触发-->
<bean id="CronTriggerBean_ModelJob_LC" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="ModelJobMethod_LC"></property>
<property name="cronExpression" value="0/20 * * * * ?"></property>
</bean>
<!-- ==========end============-->
<!-- 定时获取Acess数据 -->
<!-- ======== start======== -->
<bean id="AccessJob" class="com.sipai.quartz.job.AccessJob"/>
<bean id="AccessJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="AccessJob"/>
</property>
<property name="targetMethod">
<value>excute</value>
</property>
</bean>
<!-- 调度触发器 每天凌晨1点触发 -->
<bean id="CronTriggerBean_AccessJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="AccessJobMethod"></property>
<property name="cronExpression" value="0/20 * * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--定时下发常规工单数据 -->
<!-- ======== start======== -->
<bean id="LibraryRoutineWorkJob" class="com.sipai.quartz.job.LibraryRoutineWorkJob"/>
<bean id="LibraryRoutineWorkJobMethod"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="LibraryRoutineWorkJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1小时触发 -->
<bean id="CronTriggerBean_LibraryRoutineWorkJob"
class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="LibraryRoutineWorkJobMethod"></property>
<property name="cronExpression" value="0 0 0/1 * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--自动报警 -->
<!-- ======== start======== -->
<bean id="ScadaAlarmJob" class="com.sipai.quartz.job.ScadaAlarmJob"/>
<bean id="ScadaAlarmJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="ScadaAlarmJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1分钟触发 -->
<bean id="CronTriggerBean_ScadaAlarmJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="ScadaAlarmJobMethod"></property>
<property name="cronExpression" value="0 0/1 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--天气 -->
<!-- ======== start======== -->
<bean id="weatherNewJob" class="com.sipai.quartz.job.WeatherNewJob"/>
<bean id="weatherNewMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="weatherNewJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>excute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔半小时触发 -->
<bean id="CronTriggerBean_weatherNew" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="weatherNewMethod"></property>
<property name="cronExpression" value="0 0/30 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!-- ======== start======== -->
<bean id="MPointPropCalcJob_Day" class="com.sipai.quartz.job.MPointPropCalcJob_Day"/>
<bean id="MPointPropCalcJob_Day_Detail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="MPointPropCalcJob_Day"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 每天8点执行一次 0 15 8 * * ?-->
<bean id="CronTriggerBean_Day" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="MPointPropCalcJob_Day_Detail"></property>
<property name="cronExpression" value="0 15 8 * * ?"></property>
</bean>
<!-- ==========end============ -->
<!-- ======== start======== -->
<bean id="MPointPropCalcJob_Hour" class="com.sipai.quartz.job.MPointPropCalcJob_Hour"/>
<bean id="MPointPropCalcJob_Hour_Detail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="MPointPropCalcJob_Hour"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 每小时整点整分0 6 * * * ? -->
<bean id="CronTriggerBean_Hour" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="MPointPropCalcJob_Hour_Detail"></property>
<property name="cronExpression" value="0 10 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!-- ======== start======== -->
<bean id="MPointPropCalcJob_Minute" class="com.sipai.quartz.job.MPointPropCalcJob_Minute"/>
<bean id="MPointPropCalcJob_Minute_Detail"
class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="MPointPropCalcJob_Minute"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 每分钟15s时候 15 * * * * ? -->
<bean id="CronTriggerBean_Minute" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="MPointPropCalcJob_Minute_Detail"></property>
<property name="cronExpression" value="15 * * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--顶部报警数量-->
<!-- ======== start======== -->
<bean id="TopAlarmNumJob" class="com.sipai.quartz.job.TopAlarmNumJob"/>
<bean id="TopAlarmNumJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="TopAlarmNumJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔3秒触发 -->
<bean id="CronTriggerBean_TopAlarmNumJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="TopAlarmNumJobMethod"></property>
<property name="cronExpression" value="0/3 * * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--可视化-->
<!-- ======== start======== -->
<bean id="DataVisualJob" class="com.sipai.quartz.job.DataVisualJob"/>
<bean id="DataVisualJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="DataVisualJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1分钟触发 -->
<bean id="CronTriggerBean_DataVisualJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="DataVisualJobMethod"></property>
<property name="cronExpression" value="0 0/1 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--数据中断判定-->
<!-- ======== start======== -->
<bean id="MpDataStopJob" class="com.sipai.quartz.job.MpDataStopJob"/>
<bean id="MpDataStopJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="MpDataStopJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔30秒触发 -->
<bean id="CronTriggerBean_MpDataStopJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="MpDataStopJobMethod"></property>
<property name="cronExpression" value="0/30 * * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--视频定时抓拍-->
<!-- ======== start======== -->
<bean id="CameraPicJob" class="com.sipai.quartz.job.CameraPicJob"/>
<bean id="CameraPicJobMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="CameraPicJob"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1分钟触发 -->
<bean id="CronTriggerBean_CameraPicJob" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="CameraPicJobMethod"></property>
<property name="cronExpression" value="0 0/1 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--计算公式_主表值-->
<!-- ======== start======== -->
<bean id="NewFormulaExec_NowTime" class="com.sipai.quartz.job.NewFormulaExec_NowTime"/>
<bean id="NewFormulaExec_NowTimeMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="NewFormulaExec_NowTime"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔5分钟触发 -->
<bean id="CronTriggerBean_NewFormulaExec_NowTime" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="NewFormulaExec_NowTimeMethod"></property>
<property name="cronExpression" value="0 0/5 * * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--计算公式_小时-->
<!-- ======== start======== -->
<bean id="NewFormulaExec_Hour" class="com.sipai.quartz.job.NewFormulaExec_Hour"/>
<bean id="NewFormulaExec_HourMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="NewFormulaExec_Hour"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1小时触发 -->
<bean id="CronTriggerBean_NewFormulaExec_Hour" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="NewFormulaExec_HourMethod"></property>
<property name="cronExpression" value="0 10 0/1 * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--计算公式_天-->
<!-- ======== start======== -->
<bean id="NewFormulaExec_Day" class="com.sipai.quartz.job.NewFormulaExec_Day"/>
<bean id="NewFormulaExec_DayMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="NewFormulaExec_Day"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1天触发 -->
<bean id="CronTriggerBean_NewFormulaExec_Day" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="NewFormulaExec_DayMethod"></property>
<property name="cronExpression" value="0 18 0 * * ?"></property>
</bean>
<!-- ==========end============ -->
<!--计算公式_月-->
<!-- ======== start======== -->
<bean id="NewFormulaExec_Month" class="com.sipai.quartz.job.NewFormulaExec_Month"/>
<bean id="NewFormulaExec_MonthMethod" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject">
<ref bean="NewFormulaExec_Month"/>
</property>
<property name="targetMethod"> <!-- 要执行的方法名称 -->
<value>execute</value>
</property>
</bean>
<!-- 调度触发器 --> <!--每间隔1月触发 -->
<bean id="CronTriggerBean_NewFormulaExec_Month" class="org.springframework.scheduling.quartz.CronTriggerFactoryBean">
<property name="jobDetail" ref="NewFormulaExec_MonthMethod"></property>
<property name="cronExpression" value="0 10 0 1 * ?"></property>
</bean>
<!-- ==========end============ -->
<!-- ======================== 调度工厂 ======================== -->
<bean id="SpringJobSchedulerFactoryBean"
class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<!-- <ref bean="CronTriggerBean_scada" />
<ref bean="CronTriggerBean_MaintenancePlan" />w
<ref bean="CronTriggerBean_PatrolRecordViolationRecord" />
<ref bean="CronTriggerBean_PatrolRecordCollection" /> -->
<!-- <ref bean="CronTriggerBean_SpecialEquipment" /> -->
<!-- <ref bean="CronTriggerBean_OEProcess" /> -->
<!-- <ref bean="CronTriggerBean_Alarm" />-->
<!--<ref bean="CronTriggerBean_AccessJob" />-->
<!-- <ref bean="CronTriggerBean_LibraryRoutineWorkJob" /> -->
<!-- <ref bean="CronTriggerBean_ScadaAlarmJob" /> -->
<!--天气-->
<!-- <ref bean="CronTriggerBean_weatherNew" />-->
<!--控制指标-->
<!-- <ref bean="CronTriggerBean_ProductionIndexPlan" /> -->
<!--获取市政院webservice数据(泵组模型-重庆)-->
<!--<ref bean="CronTriggerBean_ModelJob"/>-->
<!--获取市政院webservice数据(加药模型-重庆)-->
<!--<ref bean="CronTriggerBean_ModelJob_JY"/>-->
<!--获取市政院webservice数据(滤池模型-重庆)-->
<!--<ref bean="CronTriggerBean_ModelJob_LC"/>-->
<!--获取市政院webservice数据(泵站能耗模型-沙口)-->
<!-- <ref bean="CronTriggerBean_ModelJob_FSSK_BZNH"/>-->
<!--获取市政院webservice数据(加药模型-沙口)-->
<!-- <ref bean="CronTriggerBean_ModelJob_FSSK_JY"/>-->
<!--顶部报警数量-->
<!-- <ref bean="CronTriggerBean_TopAlarmNumJob" />-->
<!--可视化-->
<!-- <ref bean="CronTriggerBean_DataVisualJob" />-->
<!--数据中断判定-->
<!-- <ref bean="CronTriggerBean_MpDataStopJob" />-->
<!--定时下发巡检任务-->
<!-- <ref bean="CronTriggerBean_PatrolPlan"/>
<ref bean="CronTriggerBean_Minute" />
<ref bean="CronTriggerBean_Day" />
<ref bean="CronTriggerBean_Hour" /> -->
<!--jsyw-->
<!-- <ref bean="CronTriggerBean_jsyw" /> -->
<!-- <ref bean="CronTriggerBean_PatrolPlan"/>-->
<!-- <ref bean="CronTriggerBean_UserCardJob"/>-->
<!--成都BIM-->
<!-- <ref bean="CronTriggerBean_BIMJob" />-->
<!--视频定时抓拍-->
<!-- <ref bean="CronTriggerBean_CameraPicJob" />-->
<!-- <ref bean="CronTriggerBean_BIMDataJob_NS" />-->
<!-- <ref bean="CronTriggerBean_NewFormulaExec_NowTime" />-->
<!-- <ref bean="CronTriggerBean_NewFormulaExec_Hour" />-->
<!-- <ref bean="CronTriggerBean_NewFormulaExec_Day" />-->
<!-- <ref bean="CronTriggerBean_NewFormulaExec_Month" />-->
<!-- 采样定时下发-->
<!-- <ref bean="CronTriggerBean_autoSamplePlan" />-->
</list>
</property>
</bean>
</beans>

296
WebRoot/WEB-INF/web.xml Normal file
View File

@ -0,0 +1,296 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">
<display-name>Archetype Created Web Application</display-name>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/spring-mybatis.xml,
/WEB-INF/spring-mybatis-scada.xml,
/WEB-INF/spring-elasticsearch.xml,
/WEB-INF/spring-time.xml,
/WEB-INF/spring-security.xml,
/WEB-INF/spring-async.xml,
</param-value>
</context-param>
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<async-supported>true</async-supported>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>sessionFilter</filter-name>
<filter-class>com.sipai.tools.SessionFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>sessionFilter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name>JSONPFilter</filter-name>
<filter-class>org.activiti.explorer.JsonpCallbackFilter</filter-class>
<async-supported>true</async-supported>
</filter>
<filter-mapping>
<filter-name>JSONPFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
<listener>
<listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class>
</listener>
<listener>
<listener-class>com.sipai.tools.Listener</listener-class>
</listener>
<listener>
<listener-class>com.sipai.tools.SSCL</listener-class>
</listener>
<!--<listener>
<listener-class>com.sipai.websocket.SocketServiceLoader</listener-class>
</listener>-->
<!-- 启动netty客户端 内部测试使用-->
<!-- <listener>
<listener-class>com.sipai.netty.NettyClientLoader</listener-class>
</listener> -->
<!-- 启动netty服务端 北控增城使用 -->
<!-- <listener>
<listener-class>com.sipai.netty.NettyServerLoader</listener-class>
</listener> -->
<!--SwaggerBootstrapUi提供的Swagger增强功能,Filter过滤保护Swagger资源-->
<!--生产环境Filter-->
<filter>
<filter-name>knife4jProductionFilter</filter-name>
<filter-class>com.github.xiaoymin.knife4j.spring.filter.ProductionSecurityFilter</filter-class>
<async-supported>true</async-supported>
<init-param>
<param-name>production</param-name>
<param-value>false</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>knife4jProductionFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!--Swagger资源的Basic认证保护策略-->
<filter>
<filter-name>knife4jSecurityBasic</filter-name>
<filter-class>com.github.xiaoymin.knife4j.spring.filter.SecurityBasicAuthFilter</filter-class>
<async-supported>true</async-supported>
<!--开启basic认证-->
<init-param>
<param-name>enableBasicAuth</param-name>
<param-value>false</param-value>
</init-param>
<!--用户名&密码-->
<init-param>
<param-name>userName</param-name>
<param-value>lisi</param-value>
</init-param>
<init-param>
<param-name>password</param-name>
<param-value>123</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>knife4jSecurityBasic</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<servlet>
<servlet-name>SpringMVC</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-mvc.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<!-- 配置knife4j的url请求路径-->
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/v2/api-docs</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/swagger-resources</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/v2/api-docs-ext</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/swagger-resources/configuration/ui</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SpringMVC</servlet-name>
<url-pattern>/swagger-resources/configuration/security</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>org.apache.axis2.transport.http.AxisServlet</servlet-class>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>engineering</servlet-name>
<servlet-class>com.sipai.servlet.engineeringServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>engineering</servlet-name>
<url-pattern>/services/engineeringService/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>/index.jsp</welcome-file>
</welcome-file-list>
<servlet>
<description>消息轮训servlet</description>
<display-name>getMessageServlet4App</display-name>
<servlet-name>PushSmsServlet</servlet-name>
<servlet-class>com.sipai.servlet.PushSmsServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<!--<servlet>
<servlet-name>init</servlet-name>
<servlet-class>com.sipai.tools.InitHCNetSDK</servlet-class>
<load-on-startup>3</load-on-startup>
</servlet>-->
<servlet-mapping>
<servlet-name>PushSmsServlet</servlet-name>
<url-pattern>/PushSmsServlet</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>VImage</servlet-name>
<servlet-class>com.sipai.servlet.VImage</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>VImage</servlet-name>
<url-pattern>/vimage</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ShowImg</servlet-name>
<servlet-class>com.sipai.servlet.ShowImgServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>ShowImg</servlet-name>
<url-pattern>/showImg</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>ModelRestServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-mvc-modeler.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>ModelRestServlet</servlet-name>
<url-pattern>/service/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>RestServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring-mvc-rest.xml</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>RestServlet</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>WeChatLoginServlet</servlet-name>
<servlet-class>com.sipai.servlet.wechat.WeChatLoginInterface</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>WeChatLoginServlet</servlet-name>
<url-pattern>/weChatLogin</url-pattern>
</servlet-mapping>
<!-- 添加druid监控-->
<servlet>
<servlet-name>DruidStatView</servlet-name>
<servlet-class>com.alibaba.druid.support.http.StatViewServlet</servlet-class>
<async-supported>true</async-supported>
</servlet>
<servlet-mapping>
<servlet-name>DruidStatView</servlet-name>
<url-pattern>/druid/*</url-pattern>
</servlet-mapping>
<!-- 添加Web应用等监控-->
<filter>
<filter-name>DruidWebStatFilter</filter-name>
<filter-class>com.alibaba.druid.support.http.WebStatFilter</filter-class>
<async-supported>true</async-supported>
<init-param>
<param-name>exclusions</param-name>
<param-value>*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*</param-value>
</init-param>
<init-param>
<param-name>profileEnable</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>principalCookieName</param-name>
<param-value>USER_COOKIE</param-value>
</init-param>
<init-param>
<param-name>principalSessionName</param-name>
<param-value>USER_SESSION</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>DruidWebStatFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<session-config>
<session-timeout>120</session-timeout>
</session-config>
<error-page>
<error-code>400</error-code>
<location>/jsp/error/error.jsp</location>
</error-page>
<error-page>
<error-code>404</error-code>
<location>/jsp/error/error404.jsp</location>
</error-page>
<error-page>
<error-code>500</error-code>
<location>/jsp/error/error.jsp</location>
</error-page>
</web-app>