Initial commit
This commit is contained in:
33
.gitignore
vendored
Normal file
33
.gitignore
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
||||
368
logs/sys-error.2025-08-13.log
Normal file
368
logs/sys-error.2025-08-13.log
Normal file
@@ -0,0 +1,368 @@
|
||||
09:15:52.215 [scheduled-3] ERROR c.z.h.p.HikariPool - [throwPoolInitializationException,594] - HikariPool-1 - Exception during pool initialization.
|
||||
java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:854)
|
||||
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
|
||||
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57)
|
||||
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:747)
|
||||
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:562)
|
||||
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
|
||||
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
|
||||
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
|
||||
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
|
||||
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
|
||||
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
|
||||
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:159)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:117)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
|
||||
at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80)
|
||||
at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)
|
||||
at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)
|
||||
at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)
|
||||
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
|
||||
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
|
||||
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
|
||||
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
|
||||
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
|
||||
at com.sun.proxy.$Proxy58.selectOne(Unknown Source)
|
||||
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
|
||||
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)
|
||||
at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)
|
||||
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)
|
||||
at com.sun.proxy.$Proxy62.selectTopRelationshipRestructur(Unknown Source)
|
||||
at com.project.joggle.service.PortServiceImpl.reorganizeRelationShip(PortServiceImpl.java:153)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$d8eb89e2.reorganizeRelationShip(<generated>)
|
||||
at com.project.joggle.controller.PortController.reorganizeRelationShip(PortController.java:43)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
|
||||
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:571)
|
||||
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:548)
|
||||
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:682)
|
||||
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:309)
|
||||
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1596)
|
||||
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:588)
|
||||
... 60 common frames omitted
|
||||
Caused by: java.io.IOException: Connection timed out: connect, socket connect lapse 21055 ms. /192.168.8.10 1521 30000 1 true
|
||||
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:233)
|
||||
at oracle.net.nt.ConnOption.connect(ConnOption.java:174)
|
||||
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:510)
|
||||
... 65 common frames omitted
|
||||
Caused by: java.net.ConnectException: Connection timed out: connect
|
||||
at sun.nio.ch.Net.connect0(Native Method)
|
||||
at sun.nio.ch.Net.connect(Net.java:459)
|
||||
at sun.nio.ch.Net.connect(Net.java:451)
|
||||
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:646)
|
||||
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
|
||||
at oracle.net.nt.TimeoutSocketChannel.connect(TimeoutSocketChannel.java:99)
|
||||
at oracle.net.nt.TimeoutSocketChannel.<init>(TimeoutSocketChannel.java:77)
|
||||
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:192)
|
||||
... 67 common frames omitted
|
||||
09:15:52.226 [scheduled-3] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
|
||||
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
### The error may exist in file [E:\fortucky\FT182的项目资料\joggle\target\classes\mapper\RelationshipRestructurMapper.xml]
|
||||
### The error may involve com.project.joggle.mapper.RelationshipRestructurMapper.selectTopRelationshipRestructur
|
||||
### The error occurred while executing a query
|
||||
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:96)
|
||||
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
|
||||
at com.sun.proxy.$Proxy58.selectOne(Unknown Source)
|
||||
at org.mybatis.spring.SqlSessionTemplate.selectOne(SqlSessionTemplate.java:160)
|
||||
at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:87)
|
||||
at org.apache.ibatis.binding.MapperProxy$PlainMethodInvoker.invoke(MapperProxy.java:145)
|
||||
at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:86)
|
||||
at com.sun.proxy.$Proxy62.selectTopRelationshipRestructur(Unknown Source)
|
||||
at com.project.joggle.service.PortServiceImpl.reorganizeRelationShip(PortServiceImpl.java:153)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$d8eb89e2.reorganizeRelationShip(<generated>)
|
||||
at com.project.joggle.controller.PortController.reorganizeRelationShip(PortController.java:43)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
Caused by: org.apache.ibatis.exceptions.PersistenceException:
|
||||
### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
### The error may exist in file [E:\fortucky\FT182的项目资料\joggle\target\classes\mapper\RelationshipRestructurMapper.xml]
|
||||
### The error may involve com.project.joggle.mapper.RelationshipRestructurMapper.selectTopRelationshipRestructur
|
||||
### The error occurred while executing a query
|
||||
### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
at org.apache.ibatis.exceptions.ExceptionFactory.wrapException(ExceptionFactory.java:30)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:153)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectOne(DefaultSqlSession.java:76)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:427)
|
||||
... 28 common frames omitted
|
||||
Caused by: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:83)
|
||||
at org.mybatis.spring.transaction.SpringManagedTransaction.openConnection(SpringManagedTransaction.java:80)
|
||||
at org.mybatis.spring.transaction.SpringManagedTransaction.getConnection(SpringManagedTransaction.java:67)
|
||||
at org.apache.ibatis.executor.BaseExecutor.getConnection(BaseExecutor.java:337)
|
||||
at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:86)
|
||||
at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:62)
|
||||
at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:325)
|
||||
at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:156)
|
||||
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:109)
|
||||
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89)
|
||||
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151)
|
||||
... 36 common frames omitted
|
||||
Caused by: java.sql.SQLRecoverableException: IO 错误: The Network Adapter could not establish the connection
|
||||
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:854)
|
||||
at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:793)
|
||||
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:57)
|
||||
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:747)
|
||||
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:562)
|
||||
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
|
||||
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:364)
|
||||
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
|
||||
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:476)
|
||||
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:561)
|
||||
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
|
||||
at com.zaxxer.hikari.HikariDataSource.getConnection(HikariDataSource.java:112)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.fetchConnection(DataSourceUtils.java:159)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:117)
|
||||
at org.springframework.jdbc.datasource.DataSourceUtils.getConnection(DataSourceUtils.java:80)
|
||||
... 46 common frames omitted
|
||||
Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
|
||||
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:571)
|
||||
at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:548)
|
||||
at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:682)
|
||||
at oracle.net.ns.NSProtocol.connect(NSProtocol.java:309)
|
||||
at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1596)
|
||||
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:588)
|
||||
... 60 common frames omitted
|
||||
Caused by: java.io.IOException: Connection timed out: connect, socket connect lapse 21055 ms. /192.168.8.10 1521 30000 1 true
|
||||
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:233)
|
||||
at oracle.net.nt.ConnOption.connect(ConnOption.java:174)
|
||||
at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:510)
|
||||
... 65 common frames omitted
|
||||
Caused by: java.net.ConnectException: Connection timed out: connect
|
||||
at sun.nio.ch.Net.connect0(Native Method)
|
||||
at sun.nio.ch.Net.connect(Net.java:459)
|
||||
at sun.nio.ch.Net.connect(Net.java:451)
|
||||
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:646)
|
||||
at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
|
||||
at oracle.net.nt.TimeoutSocketChannel.connect(TimeoutSocketChannel.java:99)
|
||||
at oracle.net.nt.TimeoutSocketChannel.<init>(TimeoutSocketChannel.java:77)
|
||||
at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:192)
|
||||
... 67 common frames omitted
|
||||
09:16:10.783 [scheduled-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
java.lang.NullPointerException: null
|
||||
at com.project.joggle.service.PortServiceImpl.sendOutProductionDetail(PortServiceImpl.java:389)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendOutProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendOutProductionDetail(PortController.java:81)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
09:16:15.054 [scheduled-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
java.lang.NullPointerException: null
|
||||
at com.project.joggle.service.PortServiceImpl.sendOutProductionDetail(PortServiceImpl.java:389)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendOutProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendOutProductionDetail(PortController.java:81)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
09:16:20.060 [scheduled-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
java.lang.NullPointerException: null
|
||||
at com.project.joggle.service.PortServiceImpl.sendOutProductionDetail(PortServiceImpl.java:389)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendOutProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendOutProductionDetail(PortController.java:81)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
09:16:25.037 [scheduled-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
java.lang.NullPointerException: null
|
||||
at com.project.joggle.service.PortServiceImpl.sendOutProductionDetail(PortServiceImpl.java:389)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendOutProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendOutProductionDetail(PortController.java:81)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
09:16:30.054 [scheduled-2] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
java.lang.NullPointerException: null
|
||||
at com.project.joggle.service.PortServiceImpl.sendOutProductionDetail(PortServiceImpl.java:389)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendOutProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendOutProductionDetail(PortController.java:81)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
09:16:31.787 [scheduled-1] ERROR o.s.s.s.TaskUtils$LoggingErrorHandler - [handleError,95] - Unexpected error occurred in scheduled task
|
||||
cn.hutool.core.io.IORuntimeException: ConnectException: Connection timed out: connect
|
||||
at cn.hutool.http.HttpRequest.send(HttpRequest.java:1350)
|
||||
at cn.hutool.http.HttpRequest.doExecute(HttpRequest.java:1188)
|
||||
at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1051)
|
||||
at cn.hutool.http.HttpRequest.execute(HttpRequest.java:1027)
|
||||
at com.project.joggle.service.PortServiceImpl.getToken(PortServiceImpl.java:136)
|
||||
at com.project.joggle.service.PortServiceImpl.sendInProductionDetail(PortServiceImpl.java:250)
|
||||
at com.project.joggle.service.PortServiceImpl$$FastClassBySpringCGLIB$$2261a38d.invoke(<generated>)
|
||||
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
|
||||
at org.springframework.aop.framework.CglibAopProxy.invokeMethod(CglibAopProxy.java:386)
|
||||
at org.springframework.aop.framework.CglibAopProxy.access$000(CglibAopProxy.java:85)
|
||||
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:704)
|
||||
at com.project.joggle.service.PortServiceImpl$$EnhancerBySpringCGLIB$$19dfb5a1.sendInProductionDetail(<generated>)
|
||||
at com.project.joggle.controller.PortController.sendInProductionDetail(PortController.java:61)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
|
||||
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
|
||||
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
|
||||
at java.lang.reflect.Method.invoke(Method.java:498)
|
||||
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:84)
|
||||
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
|
||||
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:95)
|
||||
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
|
||||
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
|
||||
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
|
||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
|
||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
|
||||
at java.lang.Thread.run(Thread.java:750)
|
||||
Caused by: java.net.ConnectException: Connection timed out: connect
|
||||
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
|
||||
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:75)
|
||||
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:476)
|
||||
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:218)
|
||||
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:200)
|
||||
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:162)
|
||||
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:394)
|
||||
at java.net.Socket.connect(Socket.java:606)
|
||||
at java.net.Socket.connect(Socket.java:555)
|
||||
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
|
||||
at sun.net.www.http.HttpClient.openServer(HttpClient.java:499)
|
||||
at sun.net.www.http.HttpClient.openServer(HttpClient.java:594)
|
||||
at sun.net.www.http.HttpClient.<init>(HttpClient.java:278)
|
||||
at sun.net.www.http.HttpClient.New(HttpClient.java:375)
|
||||
at sun.net.www.http.HttpClient.New(HttpClient.java:393)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1240)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1167)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1061)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:995)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1354)
|
||||
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1329)
|
||||
at cn.hutool.http.HttpConnection.getOutputStream(HttpConnection.java:461)
|
||||
at cn.hutool.http.HttpRequest.sendFormUrlEncoded(HttpRequest.java:1367)
|
||||
at cn.hutool.http.HttpRequest.send(HttpRequest.java:1342)
|
||||
... 26 common frames omitted
|
||||
20962
logs/sys-error.log
Normal file
20962
logs/sys-error.log
Normal file
File diff suppressed because it is too large
Load Diff
48
logs/sys-info.2025-08-06.log
Normal file
48
logs/sys-info.2025-08-06.log
Normal file
@@ -0,0 +1,48 @@
|
||||
17:35:57.714 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 3876 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
17:35:57.732 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
17:36:01.144 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 4.028 seconds (JVM running for 6.139)
|
||||
17:58:08.506 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 36640 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
17:58:08.511 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
17:58:11.241 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 3.085 seconds (JVM running for 4.309)
|
||||
17:59:55.325 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 21660 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
17:59:55.328 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
17:59:56.276 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
17:59:56.276 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
17:59:56.277 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
17:59:56.281 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
17:59:56.290 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
17:59:56.291 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
17:59:56.291 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
17:59:56.443 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
17:59:57.237 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
17:59:57.262 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 2.284 seconds (JVM running for 3.152)
|
||||
18:02:02.747 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 44640 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:02:02.753 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:02:05.523 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 3.22 seconds (JVM running for 5.19)
|
||||
18:06:05.234 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 37008 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:06:05.239 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:06:07.903 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 2.978 seconds (JVM running for 4.302)
|
||||
18:07:54.891 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 36716 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:07:54.894 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:07:57.415 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 2.861 seconds (JVM running for 4.16)
|
||||
18:09:55.882 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 40308 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:09:55.887 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:09:58.516 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 2.943 seconds (JVM running for 4.278)
|
||||
18:11:30.337 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 17.0.16 on KARZ with PID 34716 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:11:30.342 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:11:33.556 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 3.535 seconds (JVM running for 5.577)
|
||||
18:14:35.183 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 31244 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
18:14:35.187 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:14:36.356 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
18:14:36.356 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
18:14:36.356 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
18:14:36.361 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
18:14:36.370 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
18:14:36.371 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
18:14:36.372 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
18:14:36.525 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
18:14:37.394 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
18:14:37.455 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 2.699 seconds (JVM running for 3.77)
|
||||
18:15:11.097 [main] INFO c.p.j.JoggleApplicationTests - [logStarting,55] - Starting JoggleApplicationTests using Java 1.8.0_381 on KARZ with PID 13852 (started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
18:15:11.100 [main] INFO c.p.j.JoggleApplicationTests - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
18:15:12.386 [main] INFO c.p.j.JoggleApplicationTests - [logStarted,61] - Started JoggleApplicationTests in 1.439 seconds (JVM running for 2.043)
|
||||
13
logs/sys-info.2025-08-07.log
Normal file
13
logs/sys-info.2025-08-07.log
Normal file
@@ -0,0 +1,13 @@
|
||||
09:25:48.986 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 37608 (E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle\target\classes started by zyr in E:\fortucky\FT182<38><32><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD><EFBFBD>\joggle)
|
||||
09:25:48.990 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
09:25:49.655 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
09:25:49.655 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
09:25:49.655 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
09:25:49.660 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
09:25:49.665 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
09:25:49.665 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
09:25:49.665 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
09:25:49.753 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
09:25:50.190 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
09:25:50.206 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 1.375 seconds (JVM running for 1.617)
|
||||
09:26:00.143 [http-nio-8090-exec-1] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
|
||||
30
logs/sys-info.2025-08-13.log
Normal file
30
logs/sys-info.2025-08-13.log
Normal file
@@ -0,0 +1,30 @@
|
||||
09:15:28.036 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 33928 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
09:15:28.036 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
09:15:28.645 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
09:15:28.645 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
09:15:28.645 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
09:15:28.658 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
09:15:28.665 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
09:15:28.665 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
09:15:28.665 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
09:15:28.771 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
09:15:29.240 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
09:15:29.257 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 1.418 seconds (JVM running for 1.959)
|
||||
09:15:30.019 [scheduled-3] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
|
||||
09:15:52.220 [scheduled-1] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
|
||||
09:16:08.692 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 25956 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
09:16:08.693 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
09:16:09.146 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
09:16:09.146 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
09:16:09.146 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
09:16:09.148 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
09:16:09.151 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
09:16:09.151 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
09:16:09.151 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
09:16:09.218 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
09:16:09.635 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
09:16:09.652 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 1.104 seconds (JVM running for 1.493)
|
||||
09:16:10.032 [scheduled-1] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
|
||||
09:16:10.500 [scheduled-1] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
|
||||
09:16:33.239 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
|
||||
09:16:33.310 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
|
||||
32
logs/sys-info.log
Normal file
32
logs/sys-info.log
Normal file
@@ -0,0 +1,32 @@
|
||||
10:40:55.906 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 45096 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
10:40:55.911 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
10:40:56.558 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
10:40:56.559 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
10:40:56.559 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
10:40:56.574 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
10:40:56.579 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
10:40:56.579 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
10:40:56.579 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
10:40:56.683 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
10:40:57.269 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
10:40:57.286 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 1.601 seconds (JVM running for 2.271)
|
||||
10:41:00.069 [scheduled-1] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
|
||||
10:41:00.541 [scheduled-1] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
|
||||
10:41:10.898 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
|
||||
10:41:10.959 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
|
||||
10:41:12.872 [main] INFO c.p.j.JoggleApplication - [logStarting,55] - Starting JoggleApplication using Java 1.8.0_381 on KARZ with PID 50044 (E:\fortucky\FT182的项目资料\joggle\target\classes started by zyr in E:\fortucky\FT182的项目资料\joggle)
|
||||
10:41:12.873 [main] INFO c.p.j.JoggleApplication - [logStartupProfileInfo,645] - No active profile set, falling back to 1 default profile: "default"
|
||||
10:41:13.388 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - Loaded Apache Tomcat Native library [1.3.1] using APR version [1.7.4].
|
||||
10:41:13.388 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true].
|
||||
10:41:13.388 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true]
|
||||
10:41:13.391 [main] INFO o.a.c.c.AprLifecycleListener - [log,173] - OpenSSL successfully initialized [OpenSSL 3.0.14 4 Jun 2024]
|
||||
10:41:13.395 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Initializing ProtocolHandler ["http-nio-8090"]
|
||||
10:41:13.395 [main] INFO o.a.c.c.StandardService - [log,173] - Starting service [Tomcat]
|
||||
10:41:13.395 [main] INFO o.a.c.c.StandardEngine - [log,173] - Starting Servlet engine: [Apache Tomcat/9.0.68]
|
||||
10:41:13.478 [main] INFO o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring embedded WebApplicationContext
|
||||
10:41:13.864 [main] INFO o.a.c.h.Http11NioProtocol - [log,173] - Starting ProtocolHandler ["http-nio-8090"]
|
||||
10:41:13.887 [main] INFO c.p.j.JoggleApplication - [logStarted,61] - Started JoggleApplication in 1.167 seconds (JVM running for 1.727)
|
||||
10:41:15.028 [scheduled-3] INFO c.z.h.HikariDataSource - [getConnection,110] - HikariPool-1 - Starting...
|
||||
10:41:15.374 [scheduled-3] INFO c.z.h.HikariDataSource - [getConnection,123] - HikariPool-1 - Start completed.
|
||||
13:58:48.109 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,350] - HikariPool-1 - Shutdown initiated...
|
||||
13:58:48.232 [SpringApplicationShutdownHook] INFO c.z.h.HikariDataSource - [close,352] - HikariPool-1 - Shutdown completed.
|
||||
0
logs/sys-user.log
Normal file
0
logs/sys-user.log
Normal file
100
pom.xml
Normal file
100
pom.xml
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.project</groupId>
|
||||
<artifactId>joggle</artifactId>
|
||||
<version>0.0.1-SNAPSHOT</version>
|
||||
<name>joggle</name>
|
||||
<description>joggle</description>
|
||||
<properties>
|
||||
<java.version>1.8</java.version>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<spring-boot.version>2.6.13</spring-boot.version>
|
||||
</properties>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-test</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.oracle.database.jdbc</groupId>
|
||||
<artifactId>ojdbc8</artifactId>
|
||||
<version>19.3.0.0</version>
|
||||
</dependency>
|
||||
<!-- MyBatis Starter -->
|
||||
<dependency>
|
||||
<groupId>org.mybatis.spring.boot</groupId>
|
||||
<artifactId>mybatis-spring-boot-starter</artifactId>
|
||||
<version>2.2.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.hutool</groupId>
|
||||
<artifactId>hutool-all</artifactId>
|
||||
<version>5.8.27</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
</dependencies>
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-dependencies</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<type>pom</type>
|
||||
<scope>import</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.1</version>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<version>${spring-boot.version}</version>
|
||||
<configuration>
|
||||
<mainClass>com.project.joggle.JoggleApplication</mainClass>
|
||||
<skip>false</skip>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>repackage</id>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<!--<plugin>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>repackage</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>-->
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
||||
26
src/main/java/com/project/joggle/JoggleApplication.java
Normal file
26
src/main/java/com/project/joggle/JoggleApplication.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.project.joggle;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.SchedulingConfigurer;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
|
||||
import org.springframework.scheduling.config.ScheduledTaskRegistrar;
|
||||
|
||||
@SpringBootApplication
|
||||
@EnableScheduling
|
||||
public class JoggleApplication implements SchedulingConfigurer {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(JoggleApplication.class, args);
|
||||
}
|
||||
@Override
|
||||
public void configureTasks(ScheduledTaskRegistrar registrar) {
|
||||
ThreadPoolTaskScheduler scheduler = new ThreadPoolTaskScheduler();
|
||||
scheduler.setPoolSize(3);
|
||||
scheduler.setThreadNamePrefix("scheduled-");
|
||||
scheduler.initialize();
|
||||
registrar.setTaskScheduler(scheduler);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.project.joggle.controller;
|
||||
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.project.joggle.domain.Result;
|
||||
import com.project.joggle.service.PortService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
|
||||
@Controller
|
||||
@RequestMapping("/port")
|
||||
public class PortController {
|
||||
|
||||
@Autowired
|
||||
PortService portService;
|
||||
|
||||
/**
|
||||
* 登录获取Token
|
||||
*/
|
||||
@RequestMapping("/getToken")
|
||||
public void getToken() {
|
||||
portService.getToken();
|
||||
}
|
||||
|
||||
/**
|
||||
* 入库计划保存API
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/saveInStockin")
|
||||
@ResponseBody
|
||||
public Result saveInStockin() {
|
||||
Result result = portService.saveInStockin();
|
||||
return result;
|
||||
}
|
||||
}
|
||||
84
src/main/java/com/project/joggle/domain/InterfaceLog.java
Normal file
84
src/main/java/com/project/joggle/domain/InterfaceLog.java
Normal file
@@ -0,0 +1,84 @@
|
||||
package com.project.joggle.domain;
|
||||
|
||||
|
||||
public class InterfaceLog {
|
||||
|
||||
private String logId;
|
||||
private String interfaceName;
|
||||
private String requestTime;
|
||||
|
||||
private String requestData;
|
||||
private String responseData;
|
||||
private String businessId;
|
||||
private String flag;
|
||||
|
||||
|
||||
public String getLogId() {
|
||||
return logId;
|
||||
}
|
||||
|
||||
public void setLogId(String logId) {
|
||||
this.logId = logId;
|
||||
}
|
||||
|
||||
public String getInterfaceName() {
|
||||
return interfaceName;
|
||||
}
|
||||
|
||||
public void setInterfaceName(String interfaceName) {
|
||||
this.interfaceName = interfaceName;
|
||||
}
|
||||
|
||||
public String getRequestTime() {
|
||||
return requestTime;
|
||||
}
|
||||
|
||||
public void setRequestTime(String requestTime) {
|
||||
this.requestTime = requestTime;
|
||||
}
|
||||
|
||||
public String getRequestData() {
|
||||
return requestData;
|
||||
}
|
||||
|
||||
public void setRequestData(String requestData) {
|
||||
this.requestData = requestData;
|
||||
}
|
||||
|
||||
public String getResponseData() {
|
||||
return responseData;
|
||||
}
|
||||
|
||||
public void setResponseData(String responseData) {
|
||||
this.responseData = responseData;
|
||||
}
|
||||
|
||||
public String getBusinessId() {
|
||||
return businessId;
|
||||
}
|
||||
|
||||
public void setBusinessId(String businessId) {
|
||||
this.businessId = businessId;
|
||||
}
|
||||
|
||||
public String getFlag() {
|
||||
return flag;
|
||||
}
|
||||
|
||||
public void setFlag(String flag) {
|
||||
this.flag = flag;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "InterfaceLog{" +
|
||||
"logId='" + logId + '\'' +
|
||||
", interfaceName='" + interfaceName + '\'' +
|
||||
", requestTime='" + requestTime + '\'' +
|
||||
", requestData='" + requestData + '\'' +
|
||||
", responseData='" + responseData + '\'' +
|
||||
", businessId='" + businessId + '\'' +
|
||||
", flag='" + flag + '\'' +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
54
src/main/java/com/project/joggle/domain/Result.java
Normal file
54
src/main/java/com/project/joggle/domain/Result.java
Normal file
@@ -0,0 +1,54 @@
|
||||
package com.project.joggle.domain;
|
||||
|
||||
public class Result {
|
||||
|
||||
private Integer code;
|
||||
|
||||
private Boolean success;
|
||||
|
||||
private String message;
|
||||
|
||||
private Boolean data;
|
||||
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
public Boolean getSuccess() {
|
||||
return success;
|
||||
}
|
||||
|
||||
public void setSuccess(Boolean success) {
|
||||
this.success = success;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
public Boolean getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(Boolean data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "Result{" +
|
||||
"code=" + code +
|
||||
", success=" + success +
|
||||
", message='" + message + '\'' +
|
||||
", data=" + data +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
67
src/main/java/com/project/joggle/domain/TokenBody.java
Normal file
67
src/main/java/com/project/joggle/domain/TokenBody.java
Normal file
@@ -0,0 +1,67 @@
|
||||
package com.project.joggle.domain;
|
||||
|
||||
public class TokenBody {
|
||||
private String client_id;
|
||||
private String client_secret;
|
||||
private String username;
|
||||
private String accountId;
|
||||
private String language;
|
||||
private String nonce;
|
||||
private String timestamp;
|
||||
|
||||
public String getClient_id() {
|
||||
return client_id;
|
||||
}
|
||||
|
||||
public void setClient_id(String client_id) {
|
||||
this.client_id = client_id;
|
||||
}
|
||||
|
||||
public String getClient_secret() {
|
||||
return client_secret;
|
||||
}
|
||||
|
||||
public void setClient_secret(String client_secret) {
|
||||
this.client_secret = client_secret;
|
||||
}
|
||||
|
||||
public String getUsername() {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public String getAccountId() {
|
||||
return accountId;
|
||||
}
|
||||
|
||||
public void setAccountId(String accountId) {
|
||||
this.accountId = accountId;
|
||||
}
|
||||
|
||||
public String getLanguage() {
|
||||
return language;
|
||||
}
|
||||
|
||||
public void setLanguage(String language) {
|
||||
this.language = language;
|
||||
}
|
||||
|
||||
public String getNonce() {
|
||||
return nonce;
|
||||
}
|
||||
|
||||
public void setNonce(String nonce) {
|
||||
this.nonce = nonce;
|
||||
}
|
||||
|
||||
public String getTimestamp() {
|
||||
return timestamp;
|
||||
}
|
||||
|
||||
public void setTimestamp(String timestamp) {
|
||||
this.timestamp = timestamp;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.project.joggle.mapper;
|
||||
|
||||
import com.project.joggle.domain.ToKwmsAgjust;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author Jackie
|
||||
* @description 针对表【TO_KWMS_AGJUST(库存调整单主表)】的数据库操作Mapper
|
||||
* @createDate 2026-01-20 15:14:13
|
||||
* @Entity com.project.joggle.domain.ToKwmsAgjust
|
||||
*/
|
||||
public interface ToKwmsAgjustMapper extends BaseMapper<ToKwmsAgjust> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
11
src/main/java/com/project/joggle/service/PortService.java
Normal file
11
src/main/java/com/project/joggle/service/PortService.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.project.joggle.service;
|
||||
|
||||
import com.project.joggle.domain.Result;
|
||||
|
||||
public interface PortService {
|
||||
|
||||
|
||||
void getToken();
|
||||
|
||||
Result saveInStockin();
|
||||
}
|
||||
145
src/main/java/com/project/joggle/service/PortServiceImpl.java
Normal file
145
src/main/java/com/project/joggle/service/PortServiceImpl.java
Normal file
@@ -0,0 +1,145 @@
|
||||
package com.project.joggle.service;
|
||||
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.hutool.crypto.digest.DigestUtil;
|
||||
import cn.hutool.crypto.digest.MD5;
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
import cn.hutool.http.HttpUtil;
|
||||
import cn.hutool.json.JSONArray;
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.project.joggle.domain.*;
|
||||
import com.project.joggle.mapper.*;
|
||||
import com.project.joggle.utils.HttpUtils;
|
||||
import com.project.joggle.utils.UtilId;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
import javax.rmi.CORBA.Util;
|
||||
import java.text.ParseException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.time.OffsetDateTime;
|
||||
import java.util.*;
|
||||
|
||||
@Service
|
||||
public class PortServiceImpl implements PortService {
|
||||
@Autowired
|
||||
private InterfaceLogMapper interfaceLogMapper;
|
||||
@Autowired
|
||||
private RelationshipRestructurMapper relationshipRestructurMapper;
|
||||
|
||||
static String tokenTime = "";
|
||||
static int expiring = 0;
|
||||
static String token = "";
|
||||
private static final String kWmsUrl = "https://localhost:port";
|
||||
private static final String getToken = "/kapi/oauth2/getToken";
|
||||
|
||||
public synchronized void getToken() {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
if (!"".equals(tokenTime) && expiring != 0) {
|
||||
//计算token失效时间
|
||||
try {
|
||||
Date expiringTime = sdf.parse(tokenTime);
|
||||
long expiringTimes = expiringTime.getTime() + expiring;
|
||||
long now = System.currentTimeMillis();
|
||||
if(now < expiringTimes) {
|
||||
return;
|
||||
}
|
||||
} catch (ParseException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
String url = kWmsUrl + getToken;
|
||||
TokenBody body = new TokenBody();
|
||||
body.setClient_id("ZSJRLKWMSJK");
|
||||
body.setClient_secret("ZSJR@@xxhqwe3245");
|
||||
body.setUsername("jkyh");
|
||||
body.setAccountId("2357576281186374656");
|
||||
body.setLanguage("zh_CN");
|
||||
body.setNonce(UtilId.uuids());
|
||||
tokenTime = sdf.format(new Date());
|
||||
body.setTimestamp(tokenTime);
|
||||
|
||||
String responseJson = HttpUtils.sendPost(url, JSONUtil.toJsonStr(body), "application/json");
|
||||
JSONObject obj = new JSONObject(responseJson);
|
||||
if ("0".equals(obj.getStr("errorCode"))) {
|
||||
token = obj.getJSONObject("data").getStr("access_token");
|
||||
expiring = obj.getJSONObject("data").getInt("expires_in");
|
||||
}
|
||||
insertInterfaceLog("金蝶WMS获取token", JSONUtil.toJsonStr(body), responseJson, "", obj.getStr("errorCode").toString());
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result saveInStockin() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void reorganizeRelationShip() {
|
||||
RelationshipRestructur relationshipRestructur = relationshipRestructurMapper.selectTopRelationshipRestructur();
|
||||
if (relationshipRestructur != null) {
|
||||
List<RelationshipRestructur> relationshipRestructurList = relationshipRestructurMapper.selectRelationshipRestructurByParentCode(relationshipRestructur.getParentCode());
|
||||
RelationRestructurSend relationRestructurSend = new RelationRestructurSend();
|
||||
List<TrayCodes> trayCodesList = new ArrayList<>();
|
||||
for (RelationshipRestructur relationshipRestructurOne : relationshipRestructurList) {
|
||||
TrayCodes trayCodes = new TrayCodes();
|
||||
trayCodes.setParentCode(relationshipRestructurOne.getParentCode());
|
||||
trayCodes.setCurCode(relationshipRestructurOne.getCurCode());
|
||||
trayCodesList.add(trayCodes);
|
||||
}
|
||||
relationRestructurSend.setWarehouse("FLRD");
|
||||
relationRestructurSend.setTraceCodes(trayCodesList);
|
||||
String jsonStr = JSONUtil.toJsonStr(relationRestructurSend);
|
||||
//发送数据
|
||||
getToken();
|
||||
String doc_id = "8303C5AC-4285-4D7C-BEDA-9026115840BE";
|
||||
// 目标URL
|
||||
String url = getUrl("000006", "JieRou");
|
||||
HttpRequest request = HttpUtil.createPost(url);
|
||||
request.header("doc_id", doc_id);
|
||||
request.header("Token", token);
|
||||
request.body(jsonStr);
|
||||
HttpResponse response = request.execute();
|
||||
JSONObject jsonObject = new JSONObject(response.body());
|
||||
if (jsonObject.getInt("code") == 0) {
|
||||
relationshipRestructur.setStatus("1");
|
||||
|
||||
} else if (jsonObject.getInt("code") == 1) {
|
||||
if (relationshipRestructur.getErrorcount() == null) {
|
||||
relationshipRestructur.setErrorcount(1);
|
||||
} else {
|
||||
relationshipRestructur.setErrorcount(relationshipRestructur.getErrorcount() + 1);
|
||||
}
|
||||
relationshipRestructur.setStatus("2");
|
||||
|
||||
} else if (jsonObject.getInt("code") == 2) {
|
||||
relationshipRestructur.setStatus("3");
|
||||
|
||||
}
|
||||
relationshipRestructurMapper.updateRelationshipRestructur(relationshipRestructur);
|
||||
insertInterfaceLog("关联关系重组", jsonStr, response.body(), relationshipRestructur.getParentCode(), jsonObject.getInt("code").toString());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public void insertInterfaceLog(String name, String requsetData, String responseDate, String bussinessId, String flag) {
|
||||
InterfaceLog interfaceLog = new InterfaceLog();
|
||||
interfaceLog.setLogId(UUID.randomUUID().toString());
|
||||
interfaceLog.setInterfaceName(name);
|
||||
interfaceLog.setRequestTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
||||
interfaceLog.setRequestData(requsetData);
|
||||
interfaceLog.setResponseData(responseDate);
|
||||
interfaceLog.setBusinessId(bussinessId);
|
||||
interfaceLog.setFlag(flag);
|
||||
interfaceLogMapper.insertInterfaceLog(interfaceLog);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.project.joggle.service;
|
||||
|
||||
import com.project.joggle.domain.ToKwmsAgjust;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author Jackie
|
||||
* @description 针对表【TO_KWMS_AGJUST(库存调整单主表)】的数据库操作Service
|
||||
* @createDate 2026-01-20 15:14:13
|
||||
*/
|
||||
public interface ToKwmsAgjustService extends IService<ToKwmsAgjust> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.project.joggle.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.project.joggle.domain.ToKwmsAgjust;
|
||||
import com.project.joggle.service.ToKwmsAgjustService;
|
||||
import com.project.joggle.mapper.ToKwmsAgjustMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author Jackie
|
||||
* @description 针对表【TO_KWMS_AGJUST(库存调整单主表)】的数据库操作Service实现
|
||||
* @createDate 2026-01-20 15:14:13
|
||||
*/
|
||||
@Service
|
||||
public class ToKwmsAgjustServiceImpl extends ServiceImpl<ToKwmsAgjustMapper, ToKwmsAgjust>
|
||||
implements ToKwmsAgjustService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
89
src/main/java/com/project/joggle/utils/HttpUtils.java
Normal file
89
src/main/java/com/project/joggle/utils/HttpUtils.java
Normal file
@@ -0,0 +1,89 @@
|
||||
package com.project.joggle.utils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.http.MediaType;
|
||||
|
||||
import javax.net.ssl.*;
|
||||
import java.io.*;
|
||||
import java.net.ConnectException;
|
||||
import java.net.SocketTimeoutException;
|
||||
import java.net.URL;
|
||||
import java.net.URLConnection;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.security.cert.X509Certificate;
|
||||
|
||||
/**
|
||||
* 通用http发送方法
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
public class HttpUtils
|
||||
{
|
||||
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class);
|
||||
|
||||
|
||||
public static String sendPost(String url, String param, String contentType)
|
||||
{
|
||||
PrintWriter out = null;
|
||||
BufferedReader in = null;
|
||||
StringBuilder result = new StringBuilder();
|
||||
try
|
||||
{
|
||||
log.info("sendPost - {}", url);
|
||||
URL realUrl = new URL(url);
|
||||
URLConnection conn = realUrl.openConnection();
|
||||
conn.setRequestProperty("accept", "*/*");
|
||||
conn.setRequestProperty("connection", "Keep-Alive");
|
||||
conn.setRequestProperty("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64)");
|
||||
conn.setRequestProperty("Accept-Charset", "utf-8");
|
||||
conn.setRequestProperty("Content-Type", contentType);
|
||||
conn.setDoOutput(true);
|
||||
conn.setDoInput(true);
|
||||
out = new PrintWriter(conn.getOutputStream());
|
||||
out.print(param);
|
||||
out.flush();
|
||||
in = new BufferedReader(new InputStreamReader(conn.getInputStream(), StandardCharsets.UTF_8));
|
||||
String line;
|
||||
while ((line = in.readLine()) != null)
|
||||
{
|
||||
result.append(line);
|
||||
}
|
||||
log.info("recv - {}", result);
|
||||
}
|
||||
catch (ConnectException e)
|
||||
{
|
||||
log.error("调用HttpUtils.sendPost ConnectException, url=" + url + ",param=" + param, e);
|
||||
}
|
||||
catch (SocketTimeoutException e)
|
||||
{
|
||||
log.error("调用HttpUtils.sendPost SocketTimeoutException, url=" + url + ",param=" + param, e);
|
||||
}
|
||||
catch (IOException e)
|
||||
{
|
||||
log.error("调用HttpUtils.sendPost IOException, url=" + url + ",param=" + param, e);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.error("调用HttpsUtil.sendPost Exception, url=" + url + ",param=" + param, e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
try
|
||||
{
|
||||
if (out != null)
|
||||
{
|
||||
out.close();
|
||||
}
|
||||
if (in != null)
|
||||
{
|
||||
in.close();
|
||||
}
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
log.error("调用in.close Exception, url=" + url + ",param=" + param, ex);
|
||||
}
|
||||
}
|
||||
return result.toString();
|
||||
}
|
||||
}
|
||||
11
src/main/java/com/project/joggle/utils/UtilId.java
Normal file
11
src/main/java/com/project/joggle/utils/UtilId.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package com.project.joggle.utils;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class UtilId {
|
||||
public static String uuids() {
|
||||
UUID uuid = UUID.randomUUID();
|
||||
String a = uuid.toString().replace("-", "").toUpperCase();
|
||||
return a;
|
||||
}
|
||||
}
|
||||
17
src/main/resources/application.properties
Normal file
17
src/main/resources/application.properties
Normal file
@@ -0,0 +1,17 @@
|
||||
# 应用服务 WEB 访问端口
|
||||
server.port=8090
|
||||
|
||||
# DataSource configuration for Oracle
|
||||
spring.datasource.url=jdbc:oracle:thin:@172.16.2.170:1521:orcl
|
||||
spring.datasource.username=ZSJR
|
||||
spring.datasource.password=123456
|
||||
spring.datasource.driver-class-name=oracle.jdbc.OracleDriver
|
||||
|
||||
# MyBatis configuration
|
||||
mybatis.type-aliases-package=com.project.joggle.domain
|
||||
mybatis.mapper-locations=classpath*:mapper/*Mapper.xml
|
||||
|
||||
# MyBatis SQL log configuration
|
||||
logging.level.com.project.joggle.mapper=debug
|
||||
mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
93
src/main/resources/logback.xml
Normal file
93
src/main/resources/logback.xml
Normal file
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<configuration>
|
||||
<!-- 日志存放路径 -->
|
||||
<property name="log.path" value="./logs" />
|
||||
<!-- 日志输出格式 -->
|
||||
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||
|
||||
<!-- 控制台输出 -->
|
||||
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统日志输出 -->
|
||||
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-info.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/sys-info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>INFO</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-error.log</file>
|
||||
<!-- 循环政策:基于时间创建日志文件 -->
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 日志文件名格式 -->
|
||||
<fileNamePattern>${log.path}/sys-error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||
<!-- 过滤的级别 -->
|
||||
<level>ERROR</level>
|
||||
<!-- 匹配时的操作:接收(记录) -->
|
||||
<onMatch>ACCEPT</onMatch>
|
||||
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||
<onMismatch>DENY</onMismatch>
|
||||
</filter>
|
||||
</appender>
|
||||
|
||||
<!-- 用户访问日志输出 -->
|
||||
<appender name="sys-user" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
<file>${log.path}/sys-user.log</file>
|
||||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||
<!-- 按天回滚 daily -->
|
||||
<fileNamePattern>${log.path}/sys-user.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||
<!-- 日志最大的历史 60天 -->
|
||||
<maxHistory>60</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>${log.pattern}</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
<!-- 系统模块日志级别控制 -->
|
||||
<logger name="com.project.joggle" level="info" />
|
||||
<!-- Spring日志级别控制 -->
|
||||
<logger name="org.springframework" level="warn" />
|
||||
|
||||
<root level="info">
|
||||
<appender-ref ref="console" />
|
||||
</root>
|
||||
|
||||
<!--系统操作日志-->
|
||||
<root level="info">
|
||||
<appender-ref ref="file_info" />
|
||||
<appender-ref ref="file_error" />
|
||||
</root>
|
||||
|
||||
<!--系统用户操作日志-->
|
||||
<logger name="sys-user" level="info">
|
||||
<appender-ref ref="sys-user"/>
|
||||
</logger>
|
||||
</configuration>
|
||||
224
src/main/resources/mapper/InPtsProductionDetailMapper.xml
Normal file
224
src/main/resources/mapper/InPtsProductionDetailMapper.xml
Normal file
@@ -0,0 +1,224 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.InPtsProductionDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.InPtsProductionDetail">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="action" column="action" jdbcType="INTEGER"/>
|
||||
<result property="parentTraceCode" column="parent_trace_code" jdbcType="VARCHAR"/>
|
||||
<result property="parentAppendCode" column="parent_append_code" jdbcType="VARCHAR"/>
|
||||
<result property="productNo" column="product_no" jdbcType="VARCHAR"/>
|
||||
<result property="productName" column="product_name" jdbcType="VARCHAR"/>
|
||||
<result property="productSpec" column="product_spec" jdbcType="VARCHAR"/>
|
||||
<result property="packagingRatioName" column="packaging_ratio_name" jdbcType="VARCHAR"/>
|
||||
<result property="productionDate" column="production_date" jdbcType="VARCHAR"/>
|
||||
<result property="productionBatch" column="production_batch" jdbcType="VARCHAR"/>
|
||||
<result property="expirationDate" column="expiration_date" jdbcType="VARCHAR"/>
|
||||
<result property="sourceNo" column="source_no" jdbcType="VARCHAR"/>
|
||||
<result property="taskNo" column="task_no" jdbcType="VARCHAR"/>
|
||||
<result property="lineNo" column="line_no" jdbcType="VARCHAR"/>
|
||||
<result property="teamGroupNo" column="team_group_no" jdbcType="VARCHAR"/>
|
||||
<result property="machineNo" column="machine_no" jdbcType="VARCHAR"/>
|
||||
<result property="fuzzy" column="fuzzy" jdbcType="INTEGER"/>
|
||||
<result property="curCode" column="cur_code" jdbcType="VARCHAR"/>
|
||||
<result property="scanNo" column="scan_no" jdbcType="INTEGER"/>
|
||||
<result property="layerNo" column="layer_no" jdbcType="INTEGER"/>
|
||||
<result property="status" column="status" jdbcType="VARCHAR"/>
|
||||
<result property="inType" column="in_type" jdbcType="VARCHAR"/>
|
||||
<result property="errorcount" column="errorcount" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id, action, parent_trace_code,parent_append_code,
|
||||
product_no, product_name, product_spec,
|
||||
packaging_ratio_name, production_date, production_batch,
|
||||
expiration_date, source_no, task_no,
|
||||
line_no, team_group_no, machine_no,
|
||||
fuzzy, cur_code, scan_no,
|
||||
layer_no, status,in_type,errorcount
|
||||
</sql>
|
||||
|
||||
<select id="selectInptsProductionDetailList" parameterType="InPtsProductionDetail" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
<where>
|
||||
<if test="id != null and id != ''">AND id = #{id}</if>
|
||||
<if test="action != null and action != ''">AND action = #{action}</if>
|
||||
<if test="parentTraceCode != null and parentTraceCode != ''">AND parent_trace_code = #{parentTraceCode}</if>
|
||||
<if test="parentAppendCode != null and parentAppendCode != ''">AND parent_append_code = #{parentAppendCode}</if>
|
||||
<if test="productNo != null and productNo != ''">AND product_no = #{productNo}</if>
|
||||
<if test="productName != null and productName != ''">AND product_name = #{productName}</if>
|
||||
<if test="productSpec != null and productSpec != ''">AND product_spec = #{productSpec}</if>
|
||||
<if test="packagingRatioName != null and packagingRatioName != ''">AND packaging_ratio_name = #{packagingRatioName}</if>
|
||||
<if test="productionDate != null">AND production_date = #{productionDate}</if>
|
||||
<if test="productionBatch != null and productionBatch != ''">AND production_batch = #{productionBatch}</if>
|
||||
<if test="expirationDate != null">AND expiration_date = #{expirationDate}</if>
|
||||
<if test="sourceNo != null and sourceNo != ''">AND source_no = #{sourceNo}</if>
|
||||
<if test="taskNo != null and taskNo != ''">AND task_no = #{taskNo}</if>
|
||||
<if test="lineNo != null and lineNo != ''">AND line_no = #{lineNo}</if>
|
||||
<if test="teamGroupNo != null and teamGroupNo != ''">AND team_group_no = #{teamGroupNo}</if>
|
||||
<if test="machineNo != null and machineNo != ''">AND machine_no = #{machineNo}</if>
|
||||
<if test="fuzzy != null">AND fuzzy = #{fuzzy}</if>
|
||||
<if test="status != null and status != ''">AND status = #{status}</if>
|
||||
<if test="inType != null and inType != ''">AND in_type = #{inType}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<insert id="insertInPtsProductionDetail" parameterType="com.project.joggle.domain.InPtsProductionDetail">
|
||||
INSERT INTO in_pts_production_detail
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">id,</if>
|
||||
<if test="action != null "> action,</if>
|
||||
<if test="parentTraceCode != null and parentTraceCode != ''">parent_trace_code,</if>
|
||||
<if test="parentAppendCode != null and parentAppendCode != ''">parent_append_code,</if>
|
||||
<if test="productNo != null and productNo != ''">product_no,</if>
|
||||
<if test="productName != null and productName != ''">product_name,</if>
|
||||
<if test="productSpec != null and productSpec != ''">product_spec,</if>
|
||||
<if test="packagingRatioName != null and packagingRatioName != ''">packaging_ratio_name,</if>
|
||||
<if test="productionDate != null">production_date,</if>
|
||||
<if test="productionBatch != null and productionBatch != ''">production_batch,</if>
|
||||
<if test="expirationDate != null">expiration_date,</if>
|
||||
<if test="sourceNo != null and sourceNo != ''">source_no,</if>
|
||||
<if test="taskNo != null and taskNo != ''">task_no,</if>
|
||||
<if test="lineNo != null and lineNo != ''">line_no,</if>
|
||||
<if test="teamGroupNo != null and teamGroupNo != ''">team_group_no,</if>
|
||||
<if test="machineNo != null and machineNo != ''">machine_no,</if>
|
||||
<if test="fuzzy != null">fuzzy,</if>
|
||||
<if test="curCode != null and curCode != ''">cur_code,</if>
|
||||
<if test="scanNo != null">scan_no,</if>
|
||||
<if test="layerNo != null">layer_no,</if>
|
||||
<if test="status != null and status != ''">status,</if>
|
||||
<if test="inType != null and inType != ''">in_type,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null and id != ''">#{id},</if>
|
||||
<if test="action != null ">#{action},</if>
|
||||
<if test="parentTraceCode != null and parentTraceCode != ''">#{parentTraceCode},</if>
|
||||
<if test="parentAppendCode != null and parentAppendCode != ''">#{parentAppendCode},</if>
|
||||
<if test="productNo != null and productNo != ''">#{productNo},</if>
|
||||
<if test="productName != null and productName != ''">#{productName},</if>
|
||||
<if test="productSpec != null and productSpec != ''">#{productSpec},</if>
|
||||
<if test="packagingRatioName != null and packagingRatioName != ''">#{packagingRatioName},</if>
|
||||
<if test="productionDate != null">#{productionDate},</if>
|
||||
<if test="productionBatch != null and productionBatch != ''">#{productionBatch},</if>
|
||||
<if test="expirationDate != null">#{expirationDate},</if>
|
||||
<if test="sourceNo != null and sourceNo != ''">#{sourceNo},</if>
|
||||
<if test="taskNo != null and taskNo != ''">#{taskNo},</if>
|
||||
<if test="lineNo != null and lineNo != ''">#{lineNo},</if>
|
||||
<if test="teamGroupNo != null and teamGroupNo != ''">#{teamGroupNo},</if>
|
||||
<if test="machineNo != null and machineNo != ''">#{machineNo},</if>
|
||||
<if test="fuzzy != null">#{fuzzy},</if>
|
||||
<if test="curCode != null and curCode != ''">#{curCode},</if>
|
||||
<if test="scanNo != null">#{scanNo},</if>
|
||||
<if test="layerNo != null">#{layerNo},</if>
|
||||
<if test="status != null and status != ''">#{status},</if>
|
||||
<if test="inType != null and inType != ''">#{inType},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateInPtsProductionDetail" parameterType="com.project.joggle.domain.InPtsProductionDetail">
|
||||
UPDATE in_pts_production_detail
|
||||
<set>
|
||||
<if test="action != null and action != ''">action = #{action},</if>
|
||||
<if test="parentTraceCode != null and parentTraceCode != ''">parent_trace_code = #{parentTraceCode},</if>
|
||||
<if test="parentAppendCode != null and parentAppendCode != ''">parent_append_code = #{parentAppendCode},</if>
|
||||
<if test="productNo != null and productNo != ''">product_no = #{productNo},</if>
|
||||
<if test="productName != null and productName != ''">product_name = #{productName},</if>
|
||||
<if test="productSpec != null and productSpec != ''">product_spec = #{productSpec},</if>
|
||||
<if test="packagingRatioName != null and packagingRatioName != ''">packaging_ratio_name = #{packagingRatioName},</if>
|
||||
<if test="productionDate != null">production_date = #{productionDate},</if>
|
||||
<if test="productionBatch != null and productionBatch != ''">production_batch = #{productionBatch},</if>
|
||||
<if test="expirationDate != null">expiration_date = #{expirationDate},</if>
|
||||
<if test="sourceNo != null and sourceNo != ''">source_no = #{sourceNo},</if>
|
||||
<if test="taskNo != null and taskNo != ''">task_no = #{taskNo},</if>
|
||||
<if test="lineNo != null and lineNo != ''">line_no = #{lineNo},</if>
|
||||
<if test="teamGroupNo != null and teamGroupNo != ''">team_group_no = #{teamGroupNo},</if>
|
||||
<if test="machineNo != null and machineNo != ''">machine_no = #{machineNo},</if>
|
||||
<if test="fuzzy != null">fuzzy = #{fuzzy},</if>
|
||||
<if test="curCode != null and curCode != ''">cur_code = #{curCode},</if>
|
||||
<if test="scanNo != null">scan_no = #{scanNo},</if>
|
||||
<if test="layerNo != null">layer_no = #{layerNo},</if>
|
||||
<if test="status != null and status != ''">status = #{status},</if>
|
||||
<if test="inType != null and inType != ''">in_type = #{inType},</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
<update id="updateStatusByParentAppendCode" parameterType="string">
|
||||
UPDATE in_pts_production_detail
|
||||
SET status = #{status}
|
||||
WHERE parent_append_code = #{parentAppendCode} and status = '0'
|
||||
</update>
|
||||
|
||||
<select id="selectInPtsProductionDetailById" resultMap="BaseResultMap" parameterType="com.project.joggle.domain.InPtsProductionDetail">
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
WHERE id = #{id}
|
||||
</select>
|
||||
|
||||
<delete id="deleteInPtsProductionDetail" parameterType="string">
|
||||
DELETE FROM in_pts_production_detail
|
||||
WHERE id = #{id}
|
||||
</delete>
|
||||
|
||||
<select id="selectInptsProductionDetailByParentAppendCode" parameterType="string" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
WHERE parent_append_code = #{parentAppendCode}
|
||||
and status = '0'
|
||||
</select>
|
||||
|
||||
<select id="selectTopInptsProductionDetail" resultMap="BaseResultMap">
|
||||
SELECT * FROM (
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
WHERE status in (2,4)
|
||||
and in_type in (1,4)
|
||||
and (errorcount is null or errorcount <3)
|
||||
order by production_date asc
|
||||
) WHERE ROWNUM = 1
|
||||
</select>
|
||||
|
||||
<select id="selectInptsProductionDetailBySourceNo" parameterType="string" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
WHERE source_no = #{sourceNo}
|
||||
and status in (2,4)
|
||||
and in_type =4
|
||||
</select>
|
||||
|
||||
<select id="selectInPtsProductionDetailByAppendCodeAndStatus" parameterType="string" resultMap="BaseResultMap">
|
||||
SELECT <include refid="Base_Column_List"/>
|
||||
FROM in_pts_production_detail
|
||||
WHERE parent_append_code = #{parentAppendCode}
|
||||
and status in (2,4)
|
||||
and in_type =4
|
||||
</select>
|
||||
|
||||
<update id="updateInPtsProductionDetailByParentAppendCode" parameterType="string">
|
||||
|
||||
UPDATE in_pts_production_detail
|
||||
<set>
|
||||
<if test="status != null and status != ''">
|
||||
status = #{status}
|
||||
</if>
|
||||
<if test="errorcount !=null and errorcount != ''">
|
||||
errorcount= #{errorcount}
|
||||
</if>
|
||||
</set>
|
||||
WHERE parent_append_code = #{parentAppendCode}
|
||||
and status='2'
|
||||
</update>
|
||||
|
||||
<update id="updateInPtsProductionDetailByOrderNo" parameterType="string">
|
||||
UPDATE in_pts_production_detail
|
||||
SET status = #{status}
|
||||
WHERE parent_append_code = #{parentAppendCode}
|
||||
and status > 2
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
</mapper>
|
||||
49
src/main/resources/mapper/InStockinMapper.xml
Normal file
49
src/main/resources/mapper/InStockinMapper.xml
Normal file
@@ -0,0 +1,49 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.InStockinMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.InStockin">
|
||||
<result property="stockinId" column="STOCKIN_ID" jdbcType="VARCHAR"/>
|
||||
<result property="inType" column="IN_TYPE" jdbcType="VARCHAR"/>
|
||||
<result property="createDate" column="CREATE_DATE" jdbcType="TIMESTAMP"/>
|
||||
<result property="supplierId" column="SUPPLIER_ID" jdbcType="VARCHAR"/>
|
||||
<result property="createManId" column="CREATE_MAN_ID" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="warehouseId" column="WAREHOUSE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="classNowId" column="CLASS_NOW_ID" jdbcType="VARCHAR"/>
|
||||
<result property="stockinGuid" column="STOCKIN_GUID" jdbcType="VARCHAR"/>
|
||||
<result property="stockinSource" column="STOCKIN_SOURCE" jdbcType="VARCHAR"/>
|
||||
<result property="lineId" column="LINE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="fid" column="FID" jdbcType="VARCHAR"/>
|
||||
<result property="supplierName" column="SUPPLIER_NAME" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
STOCKIN_ID,IN_TYPE,CREATE_DATE,
|
||||
SUPPLIER_ID,CREATE_MAN_ID,STATUS,
|
||||
WAREHOUSE_ID,CLASS_NOW_ID,STOCKIN_GUID,
|
||||
STOCKIN_SOURCE,LINE_ID,FID
|
||||
</sql>
|
||||
|
||||
<select id="selectInStockinByStockinId" resultMap="BaseResultMap" parameterType="string">
|
||||
select
|
||||
i.STOCKIN_ID,i.IN_TYPE,i.CREATE_DATE,
|
||||
i.SUPPLIER_ID,i.CREATE_MAN_ID,i.STATUS,
|
||||
i.WAREHOUSE_ID,i.CLASS_NOW_ID,i.STOCKIN_GUID,
|
||||
i.STOCKIN_SOURCE,i.LINE_ID,i.FID,b.SUPPLIER_NAME
|
||||
from IN_STOCKIN i left join BAS_SUPPLIER b on i.SUPPLIER_ID = b.SUPPLIER_NO
|
||||
where STOCKIN_ID = #{stockinId}
|
||||
</select>
|
||||
|
||||
<select id="selectInstockinFinishByStockinId" resultMap="BaseResultMap" parameterType="string">
|
||||
select
|
||||
i.STOCKIN_ID,i.IN_TYPE,i.CREATE_DATE,
|
||||
i.SUPPLIER_ID,i.CREATE_MAN_ID,i.STATUS,
|
||||
i.WAREHOUSE_ID,i.CLASS_NOW_ID,i.STOCKIN_GUID,
|
||||
i.STOCKIN_SOURCE,i.LINE_ID,i.FID,b.SUPPLIER_NAME
|
||||
from IN_STOCKIN_FINISH i left join BAS_SUPPLIER b on i.SUPPLIER_ID = b.SUPPLIER_NO
|
||||
where STOCKIN_ID = #{stockinId}
|
||||
</select>
|
||||
</mapper>
|
||||
93
src/main/resources/mapper/InterfaceLogMapper.xml
Normal file
93
src/main/resources/mapper/InterfaceLogMapper.xml
Normal file
@@ -0,0 +1,93 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.InterfaceLogMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.InterfaceLog">
|
||||
<id property="logId" column="LOG_ID" jdbcType="VARCHAR"/>
|
||||
<result property="interfaceName" column="INTERFACE_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="requestTime" column="REQUEST_TIME" jdbcType="VARCHAR"/>
|
||||
|
||||
<result property="requestData" column="REQUEST_DATA" jdbcType="VARCHAR"/>
|
||||
<result property="responseData" column="RESPONSE_DATA" jdbcType="VARCHAR"/>
|
||||
|
||||
<result property="businessId" column="BUSINESS_ID" jdbcType="VARCHAR"/>
|
||||
<result property="flag" column="FLAG" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
LOG_ID,INTERFACE_NAME,REQUEST_TIME,
|
||||
REQUEST_DATA,RESPONSE_DATA,
|
||||
BUSINESS_ID,
|
||||
FLAG
|
||||
</sql>
|
||||
|
||||
<insert id="insertInterfaceLog" parameterType="com.project.joggle.domain.InterfaceLog">
|
||||
INSERT INTO INTERFACE_LOG
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">LOG_ID,</if>
|
||||
<if test="interfaceName != null">INTERFACE_NAME,</if>
|
||||
<if test="requestTime != null">REQUEST_TIME,</if>
|
||||
|
||||
<if test="requestData != null">REQUEST_DATA,</if>
|
||||
<if test="responseData != null">RESPONSE_DATA,</if>
|
||||
|
||||
<if test="businessId != null">BUSINESS_ID,</if>
|
||||
<if test="flag != null">FLAG,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="logId != null">#{logId},</if>
|
||||
<if test="interfaceName != null">#{interfaceName},</if>
|
||||
<if test="requestTime != null">#{requestTime},</if>
|
||||
|
||||
<if test="requestData != null">#{requestData},</if>
|
||||
<if test="responseData != null">#{responseData},</if>
|
||||
|
||||
<if test="businessId != null">#{businessId},</if>
|
||||
<if test="flag != null">#{flag},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteInterfaceLog">
|
||||
DELETE FROM INTERFACE_LOG
|
||||
WHERE LOG_ID = #{logId}
|
||||
</delete>
|
||||
|
||||
<update id="updateInterfaceLog" parameterType="com.project.joggle.domain.InterfaceLog">
|
||||
UPDATE INTERFACE_LOG
|
||||
<set>
|
||||
<if test="interfaceName != null">INTERFACE_NAME = #{interfaceName},</if>
|
||||
<if test="requestTime != null">REQUEST_TIME = #{requestTime},</if>
|
||||
|
||||
<if test="requestData != null">REQUEST_DATA = #{requestData},</if>
|
||||
<if test="responseData != null">RESPONSE_DATA = #{responseData},</if>
|
||||
|
||||
<if test="businessId != null">BUSINESS_ID = #{businessId},</if>
|
||||
<if test="flag != null">FLAG = #{flag},</if>
|
||||
</set>
|
||||
WHERE LOG_ID = #{logId}
|
||||
</update>
|
||||
|
||||
<select id="selectInterfaceLogById" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM INTERFACE_LOG
|
||||
WHERE LOG_ID = #{logId}
|
||||
</select>
|
||||
|
||||
<select id="selectInterfaceLogList" parameterType="com.project.joggle.domain.InterfaceLog" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM INTERFACE_LOG
|
||||
<where>
|
||||
<if test="logId != null">AND LOG_ID = #{logId}</if>
|
||||
<if test="interfaceName != null">AND INTERFACE_NAME = #{interfaceName}</if>
|
||||
<if test="requestTime != null">AND REQUEST_TIME = #{requestTime}</if>
|
||||
|
||||
|
||||
<if test="businessId != null">AND BUSINESS_ID = #{businessId}</if>
|
||||
<if test="flag != null">AND FLAG = #{flag}</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
209
src/main/resources/mapper/MydoJobMapper.xml
Normal file
209
src/main/resources/mapper/MydoJobMapper.xml
Normal file
@@ -0,0 +1,209 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.MydoJobMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.MydoJob">
|
||||
<result property="jobId" column="JOB_ID" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="onLineType" column="ON_LINE_TYPE" jdbcType="VARCHAR"/>
|
||||
<result property="taskNo" column="TASK_NO" jdbcType="VARCHAR"/>
|
||||
<result property="supplierId" column="SUPPLIER_ID" jdbcType="VARCHAR"/>
|
||||
<result property="customerId" column="CUSTOMER_ID" jdbcType="VARCHAR"/>
|
||||
<result property="trayCode" column="TRAY_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="roadwayId" column="ROADWAY_ID" jdbcType="VARCHAR"/>
|
||||
<result property="cargoSpaceId" column="CARGO_SPACE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="lineId" column="LINE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="workshopId" column="WORKSHOP_ID" jdbcType="VARCHAR"/>
|
||||
<result property="entranceId" column="ENTRANCE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="exitId" column="EXIT_ID" jdbcType="VARCHAR"/>
|
||||
<result property="priority" column="PRIORITY" jdbcType="DECIMAL"/>
|
||||
<result property="inOrOut" column="IN_OR_OUT" jdbcType="VARCHAR"/>
|
||||
<result property="createTime" column="CREATE_TIME" jdbcType="TIMESTAMP"/>
|
||||
<result property="startTime" column="START_TIME" jdbcType="TIMESTAMP"/>
|
||||
<result property="finishTime" column="FINISH_TIME" jdbcType="TIMESTAMP"/>
|
||||
<result property="classNowName" column="CLASS_NOW_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="classWorkshopName" column="CLASS_WORKSHOP_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="warehouseId" column="WAREHOUSE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="targetRoadwayId" column="TARGET_ROADWAY_ID" jdbcType="VARCHAR"/>
|
||||
<result property="targetCargoSpaceId" column="TARGET_CARGO_SPACE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="executionPhase" column="EXECUTION_PHASE" jdbcType="VARCHAR"/>
|
||||
<result property="classgroupNumber" column="CLASSGROUP_NUMBER" jdbcType="VARCHAR"/>
|
||||
<result property="classWorkshopDateTime" column="CLASS_WORKSHOP_DATE_TIME" jdbcType="VARCHAR"/>
|
||||
<result property="classId" column="CLASS_ID" jdbcType="VARCHAR"/>
|
||||
<result property="classNowDateTime" column="CLASS_NOW_DATE_TIME" jdbcType="VARCHAR"/>
|
||||
<result property="carNumber" column="CAR_NUMBER" jdbcType="VARCHAR"/>
|
||||
<result property="faultFlag" column="FAULT_FLAG" jdbcType="VARCHAR"/>
|
||||
<result property="outId" column="OUT_ID" jdbcType="DECIMAL"/>
|
||||
<result property="relatedId" column="RELATED_ID" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
JOB_ID,STATUS,ON_LINE_TYPE,
|
||||
TASK_NO,SUPPLIER_ID,CUSTOMER_ID,
|
||||
TRAY_CODE,ROADWAY_ID,CARGO_SPACE_ID,
|
||||
LINE_ID,WORKSHOP_ID,ENTRANCE_ID,
|
||||
EXIT_ID,PRIORITY,IN_OR_OUT,
|
||||
CREATE_TIME,START_TIME,FINISH_TIME,
|
||||
CLASS_NOW_NAME,CLASS_WORKSHOP_NAME,WAREHOUSE_ID,
|
||||
TARGET_ROADWAY_ID,TARGET_CARGO_SPACE_ID,EXECUTION_PHASE,
|
||||
CLASSGROUP_NUMBER,CLASS_WORKSHOP_DATE_TIME,CLASS_ID,
|
||||
CLASS_NOW_DATE_TIME,CAR_NUMBER,FAULT_FLAG,
|
||||
OUT_ID,RELATED_ID
|
||||
</sql>
|
||||
|
||||
<insert id="insertMydoJob" parameterType="com.project.joggle.domain.MydoJob">
|
||||
INSERT INTO MYDO_JOB
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null">JOB_ID,</if>
|
||||
<if test="status != null">STATUS,</if>
|
||||
<if test="onLineType != null">ON_LINE_TYPE,</if>
|
||||
<if test="taskNo != null">TASK_NO,</if>
|
||||
<if test="supplierId != null">SUPPLIER_ID,</if>
|
||||
<if test="customerId != null">CUSTOMER_ID,</if>
|
||||
<if test="trayCode != null">TRAY_CODE,</if>
|
||||
<if test="roadwayId != null">ROADWAY_ID,</if>
|
||||
<if test="cargoSpaceId != null">CARGO_SPACE_ID,</if>
|
||||
<if test="lineId != null">LINE_ID,</if>
|
||||
<if test="workshopId != null">WORKSHOP_ID,</if>
|
||||
<if test="entranceId != null">ENTRANCE_ID,</if>
|
||||
<if test="exitId != null">EXIT_ID,</if>
|
||||
<if test="priority != null">PRIORITY,</if>
|
||||
<if test="inOrOut != null">IN_OR_OUT,</if>
|
||||
<if test="createTime != null">CREATE_TIME,</if>
|
||||
<if test="startTime != null">START_TIME,</if>
|
||||
<if test="finishTime != null">FINISH_TIME,</if>
|
||||
<if test="classNowName != null">CLASS_NOW_NAME,</if>
|
||||
<if test="classWorkshopName != null">CLASS_WORKSHOP_NAME,</if>
|
||||
<if test="warehouseId != null">WAREHOUSE_ID,</if>
|
||||
<if test="targetRoadwayId != null">TARGET_ROADWAY_ID,</if>
|
||||
<if test="targetCargoSpaceId != null">TARGET_CARGO_SPACE_ID,</if>
|
||||
<if test="executionPhase != null">EXECUTION_PHASE,</if>
|
||||
<if test="classgroupNumber != null">CLASSGROUP_NUMBER,</if>
|
||||
<if test="classWorkshopDateTime != null">CLASS_WORKSHOP_DATE_TIME,</if>
|
||||
<if test="classId != null">CLASS_ID,</if>
|
||||
<if test="classNowDateTime != null">CLASS_NOW_DATE_TIME,</if>
|
||||
<if test="carNumber != null">CAR_NUMBER,</if>
|
||||
<if test="faultFlag != null">FAULT_FLAG,</if>
|
||||
<if test="outId != null">OUT_ID,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="jobId != null">#{jobId},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="onLineType != null">#{onLineType},</if>
|
||||
<if test="taskNo != null">#{taskNo},</if>
|
||||
<if test="supplierId != null">#{supplierId},</if>
|
||||
<if test="customerId != null">#{customerId},</if>
|
||||
<if test="trayCode != null">#{trayCode},</if>
|
||||
<if test="roadwayId != null">#{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">#{cargoSpaceId},</if>
|
||||
<if test="lineId != null">#{lineId},</if>
|
||||
<if test="workshopId != null">#{workshopId},</if>
|
||||
<if test="entranceId != null">#{entranceId},</if>
|
||||
<if test="exitId != null">#{exitId},</if>
|
||||
<if test="priority != null">#{priority},</if>
|
||||
<if test="inOrOut != null">#{inOrOut},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="finishTime != null">#{finishTime},</if>
|
||||
<if test="classNowName != null">#{classNowName},</if>
|
||||
<if test="classWorkshopName != null">#{classWorkshopName},</if>
|
||||
<if test="warehouseId != null">#{warehouseId},</if>
|
||||
<if test="targetRoadwayId != null">#{targetRoadwayId},</if>
|
||||
<if test="targetCargoSpaceId != null">#{targetCargoSpaceId},</if>
|
||||
<if test="executionPhase != null">#{executionPhase},</if>
|
||||
<if test="classgroupNumber != null">#{classgroupNumber},</if>
|
||||
<if test="classWorkshopDateTime != null">#{classWorkshopDateTime},</if>
|
||||
<if test="classId != null">#{classId},</if>
|
||||
<if test="classNowDateTime != null">#{classNowDateTime},</if>
|
||||
<if test="carNumber != null">#{carNumber},</if>
|
||||
<if test="faultFlag != null">#{faultFlag},</if>
|
||||
<if test="outId != null">#{outId},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteMydoJobByJobId" parameterType="string">
|
||||
DELETE FROM MYDO_JOB WHERE JOB_ID = #{jobId}
|
||||
</delete>
|
||||
|
||||
<update id="updateMydoJob" parameterType="com.project.joggle.domain.MydoJob">
|
||||
UPDATE MYDO_JOB
|
||||
<set>
|
||||
<if test="status != null">STATUS = #{status},</if>
|
||||
<if test="onLineType != null">ON_LINE_TYPE = #{onLineType},</if>
|
||||
<if test="taskNo != null">TASK_NO = #{taskNo},</if>
|
||||
<if test="supplierId != null">SUPPLIER_ID = #{supplierId},</if>
|
||||
<if test="customerId != null">CUSTOMER_ID = #{customerId},</if>
|
||||
<if test="trayCode != null">TRAY_CODE = #{trayCode},</if>
|
||||
<if test="roadwayId != null">ROADWAY_ID = #{roadwayId},</if>
|
||||
<if test="cargoSpaceId != null">CARGO_SPACE_ID = #{cargoSpaceId},</if>
|
||||
<if test="lineId != null">LINE_ID = #{lineId},</if>
|
||||
<if test="workshopId != null">WORKSHOP_ID = #{workshopId},</if>
|
||||
<if test="entranceId != null">ENTRANCE_ID = #{entranceId},</if>
|
||||
<if test="exitId != null">EXIT_ID = #{exitId},</if>
|
||||
<if test="priority != null">PRIORITY = #{priority},</if>
|
||||
<if test="inOrOut != null">IN_OR_OUT = #{inOrOut},</if>
|
||||
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
||||
<if test="startTime != null">START_TIME = #{startTime},</if>
|
||||
<if test="finishTime != null">FINISH_TIME = #{finishTime},</if>
|
||||
<if test="classNowName != null">CLASS_NOW_NAME = #{classNowName},</if>
|
||||
<if test="classWorkshopName != null">CLASS_WORKSHOP_NAME = #{classWorkshopName},</if>
|
||||
<if test="warehouseId != null">WAREHOUSE_ID = #{warehouseId},</if>
|
||||
<if test="targetRoadwayId != null">TARGET_ROADWAY_ID = #{targetRoadwayId},</if>
|
||||
<if test="targetCargoSpaceId != null">TARGET_CARGO_SPACE_ID = #{targetCargoSpaceId},</if>
|
||||
<if test="executionPhase != null">EXECUTION_PHASE = #{executionPhase},</if>
|
||||
<if test="classgroupNumber != null">CLASSGROUP_NUMBER = #{classgroupNumber},</if>
|
||||
<if test="classWorkshopDateTime != null">CLASS_WORKSHOP_DATE_TIME = #{classWorkshopDateTime},</if>
|
||||
<if test="classId != null">CLASS_ID = #{classId},</if>
|
||||
<if test="classNowDateTime != null">CLASS_NOW_DATE_TIME = #{classNowDateTime},</if>
|
||||
<if test="carNumber != null">CAR_NUMBER = #{carNumber},</if>
|
||||
<if test="faultFlag != null">FAULT_FLAG = #{faultFlag},</if>
|
||||
<if test="outId != null">OUT_ID = #{outId},</if>
|
||||
</set>
|
||||
WHERE JOB_ID = #{jobId}
|
||||
</update>
|
||||
|
||||
<select id="selectMydoJobByJobId" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM MYDO_JOB
|
||||
WHERE JOB_ID = #{jobId}
|
||||
</select>
|
||||
|
||||
<select id="selectMydoJobList" parameterType="com.project.joggle.domain.MydoJob" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM MYDO_JOB
|
||||
<where>
|
||||
<if test="jobId != null">AND JOB_ID = #{jobId}</if>
|
||||
<if test="status != null">AND STATUS = #{status}</if>
|
||||
<if test="onLineType != null">AND ON_LINE_TYPE = #{onLineType}</if>
|
||||
<if test="taskNo != null">AND TASK_NO = #{taskNo}</if>
|
||||
<if test="supplierId != null">AND SUPPLIER_ID = #{supplierId}</if>
|
||||
<if test="customerId != null">AND CUSTOMER_ID = #{customerId}</if>
|
||||
<if test="trayCode != null">AND TRAY_CODE = #{trayCode}</if>
|
||||
<if test="roadwayId != null">AND ROADWAY_ID = #{roadwayId}</if>
|
||||
<if test="cargoSpaceId != null">AND CARGO_SPACE_ID = #{cargoSpaceId}</if>
|
||||
<if test="lineId != null">AND LINE_ID = #{lineId}</if>
|
||||
<if test="workshopId != null">AND WORKSHOP_ID = #{workshopId}</if>
|
||||
<if test="entranceId != null">AND ENTRANCE_ID = #{entranceId}</if>
|
||||
<if test="exitId != null">AND EXIT_ID = #{exitId}</if>
|
||||
<if test="inOrOut != null">AND IN_OR_OUT = #{inOrOut}</if>
|
||||
<if test="warehouseId != null">AND WAREHOUSE_ID = #{warehouseId}</if>
|
||||
<if test="executionPhase != null">AND EXECUTION_PHASE = #{executionPhase}</if>
|
||||
<if test="faultFlag != null">AND FAULT_FLAG = #{faultFlag}</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
<select id="selectMydoJobByTrayCode" parameterType="string" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM MYDO_JOB
|
||||
WHERE TRAY_CODE = #{trayCode}
|
||||
</select>
|
||||
<update id="updateRelatedIdByTrayCode" parameterType="string">
|
||||
update mydo_job set related_id = #{relatedId} where tray_code = #{trayCode}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
100
src/main/resources/mapper/OutPtsProductionDetailFinishMapper.xml
Normal file
100
src/main/resources/mapper/OutPtsProductionDetailFinishMapper.xml
Normal file
@@ -0,0 +1,100 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.OutPtsProductionDetailFinishMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.OutPtsProductionDetailFinish">
|
||||
<result property="id" column="ID" jdbcType="VARCHAR"/>
|
||||
<result property="action" column="ACTION" jdbcType="DECIMAL"/>
|
||||
<result property="parentTraceCode" column="PARENT_TRACE_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="parentAppendCode" column="PARENT_APPEND_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="productNo" column="PRODUCT_NO" jdbcType="VARCHAR"/>
|
||||
<result property="productName" column="PRODUCT_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="productSpec" column="PRODUCT_SPEC" jdbcType="VARCHAR"/>
|
||||
<result property="packagingRatioName" column="PACKAGING_RATIO_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="productionDate" column="PRODUCTION_DATE" jdbcType="VARCHAR"/>
|
||||
<result property="productionBatch" column="PRODUCTION_BATCH" jdbcType="VARCHAR"/>
|
||||
<result property="expirationDate" column="EXPIRATION_DATE" jdbcType="VARCHAR"/>
|
||||
<result property="sourceNo" column="SOURCE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="taskNo" column="TASK_NO" jdbcType="VARCHAR"/>
|
||||
<result property="lineNo" column="LINE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="teamGroupNo" column="TEAM_GROUP_NO" jdbcType="VARCHAR"/>
|
||||
<result property="machineNo" column="MACHINE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="fuzzy" column="FUZZY" jdbcType="DECIMAL"/>
|
||||
<result property="curCode" column="CUR_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="scanNo" column="SCAN_NO" jdbcType="DECIMAL"/>
|
||||
<result property="layerNo" column="LAYER_NO" jdbcType="DECIMAL"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="inType" column="IN_TYPE" jdbcType="VARCHAR"/>
|
||||
<result property="compelete" column="COMPELETE" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID,ACTION,PARENT_TRACE_CODE,
|
||||
PARENT_APPEND_CODE,PRODUCT_NO,PRODUCT_NAME,
|
||||
PRODUCT_SPEC,PACKAGING_RATIO_NAME,PRODUCTION_DATE,
|
||||
PRODUCTION_BATCH,EXPIRATION_DATE,SOURCE_NO,
|
||||
TASK_NO,LINE_NO,TEAM_GROUP_NO,
|
||||
MACHINE_NO,FUZZY,CUR_CODE,
|
||||
SCAN_NO,LAYER_NO,STATUS,
|
||||
IN_TYPE,COMPELETE
|
||||
</sql>
|
||||
|
||||
<!-- 插入完成记录 -->
|
||||
<insert id="insertOutPtsProductionDetailFinish" parameterType="com.project.joggle.domain.OutPtsProductionDetail">
|
||||
insert into OUT_PTS_PRODUCTION_DETAIL_FINISH
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">ID,</if>
|
||||
<if test="action != null">ACTION,</if>
|
||||
<if test="parentTraceCode != null">PARENT_TRACE_CODE,</if>
|
||||
<if test="parentAppendCode != null">PARENT_APPEND_CODE,</if>
|
||||
<if test="productNo != null">PRODUCT_NO,</if>
|
||||
<if test="productName != null">PRODUCT_NAME,</if>
|
||||
<if test="productSpec != null">PRODUCT_SPEC,</if>
|
||||
<if test="packagingRatioName != null">PACKAGING_RATIO_NAME,</if>
|
||||
<if test="productionDate != null">PRODUCTION_DATE,</if>
|
||||
<if test="productionBatch != null">PRODUCTION_BATCH,</if>
|
||||
<if test="expirationDate != null">EXPIRATION_DATE,</if>
|
||||
<if test="sourceNo != null">SOURCE_NO,</if>
|
||||
<if test="taskNo != null">TASK_NO,</if>
|
||||
<if test="lineNo != null">LINE_NO,</if>
|
||||
<if test="teamGroupNo != null">TEAM_GROUP_NO,</if>
|
||||
<if test="machineNo != null">MACHINE_NO,</if>
|
||||
<if test="fuzzy != null">FUZZY,</if>
|
||||
<if test="curCode != null">CUR_CODE,</if>
|
||||
<if test="scanNo != null">SCAN_NO,</if>
|
||||
<if test="layerNo != null">LAYER_NO,</if>
|
||||
<if test="status != null">STATUS,</if>
|
||||
<if test="inType != null">IN_TYPE,</if>
|
||||
<if test="compelete != null">COMPELETE,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=VARCHAR},</if>
|
||||
<if test="action != null">#{action,jdbcType=DECIMAL},</if>
|
||||
<if test="parentTraceCode != null">#{parentTraceCode,jdbcType=VARCHAR},</if>
|
||||
<if test="parentAppendCode != null">#{parentAppendCode,jdbcType=VARCHAR},</if>
|
||||
<if test="productNo != null">#{productNo,jdbcType=VARCHAR},</if>
|
||||
<if test="productName != null">#{productName,jdbcType=VARCHAR},</if>
|
||||
<if test="productSpec != null">#{productSpec,jdbcType=VARCHAR},</if>
|
||||
<if test="packagingRatioName != null">#{packagingRatioName,jdbcType=VARCHAR},</if>
|
||||
<if test="productionDate != null">#{productionDate,jdbcType=VARCHAR},</if>
|
||||
<if test="productionBatch != null">#{productionBatch,jdbcType=VARCHAR},</if>
|
||||
<if test="expirationDate != null">#{expirationDate,jdbcType=VARCHAR},</if>
|
||||
<if test="sourceNo != null">#{sourceNo,jdbcType=VARCHAR},</if>
|
||||
<if test="taskNo != null">#{taskNo,jdbcType=VARCHAR},</if>
|
||||
<if test="lineNo != null">#{lineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="teamGroupNo != null">#{teamGroupNo,jdbcType=VARCHAR},</if>
|
||||
<if test="machineNo != null">#{machineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="fuzzy != null">#{fuzzy,jdbcType=DECIMAL},</if>
|
||||
<if test="curCode != null">#{curCode,jdbcType=VARCHAR},</if>
|
||||
<if test="scanNo != null">#{scanNo,jdbcType=DECIMAL},</if>
|
||||
<if test="layerNo != null">#{layerNo,jdbcType=DECIMAL},</if>
|
||||
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||
<if test="inType != null">#{inType,jdbcType=VARCHAR},</if>
|
||||
<if test="compelete != null">#{compelete,jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
||||
</mapper>
|
||||
202
src/main/resources/mapper/OutPtsProductionDetailMapper.xml
Normal file
202
src/main/resources/mapper/OutPtsProductionDetailMapper.xml
Normal file
@@ -0,0 +1,202 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.OutPtsProductionDetailMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.OutPtsProductionDetail">
|
||||
<result property="id" column="ID" jdbcType="VARCHAR"/>
|
||||
<result property="action" column="ACTION" jdbcType="DECIMAL"/>
|
||||
<result property="parentTraceCode" column="PARENT_TRACE_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="parentAppendCode" column="PARENT_APPEND_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="productNo" column="PRODUCT_NO" jdbcType="VARCHAR"/>
|
||||
<result property="productName" column="PRODUCT_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="productSpec" column="PRODUCT_SPEC" jdbcType="VARCHAR"/>
|
||||
<result property="packagingRatioName" column="PACKAGING_RATIO_NAME" jdbcType="VARCHAR"/>
|
||||
<result property="productionDate" column="PRODUCTION_DATE" jdbcType="VARCHAR"/>
|
||||
<result property="productionBatch" column="PRODUCTION_BATCH" jdbcType="VARCHAR"/>
|
||||
<result property="expirationDate" column="EXPIRATION_DATE" jdbcType="VARCHAR"/>
|
||||
<result property="sourceNo" column="SOURCE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="taskNo" column="TASK_NO" jdbcType="VARCHAR"/>
|
||||
<result property="lineNo" column="LINE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="teamGroupNo" column="TEAM_GROUP_NO" jdbcType="VARCHAR"/>
|
||||
<result property="machineNo" column="MACHINE_NO" jdbcType="VARCHAR"/>
|
||||
<result property="fuzzy" column="FUZZY" jdbcType="DECIMAL"/>
|
||||
<result property="curCode" column="CUR_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="scanNo" column="SCAN_NO" jdbcType="DECIMAL"/>
|
||||
<result property="layerNo" column="LAYER_NO" jdbcType="DECIMAL"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="inType" column="IN_TYPE" jdbcType="VARCHAR"/>
|
||||
<result property="compelete" column="COMPELETE" jdbcType="VARCHAR"/>
|
||||
<result property="errorcount" column="ERRORCOUNT" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID,ACTION,PARENT_TRACE_CODE,
|
||||
PARENT_APPEND_CODE,PRODUCT_NO,PRODUCT_NAME,
|
||||
PRODUCT_SPEC,PACKAGING_RATIO_NAME,PRODUCTION_DATE,
|
||||
PRODUCTION_BATCH,EXPIRATION_DATE,SOURCE_NO,
|
||||
TASK_NO,LINE_NO,TEAM_GROUP_NO,
|
||||
MACHINE_NO,FUZZY,CUR_CODE,
|
||||
SCAN_NO,LAYER_NO,STATUS,
|
||||
IN_TYPE,COMPELETE,ERRORCOUNT
|
||||
</sql>
|
||||
|
||||
<insert id="insert" parameterType="com.project.joggle.domain.OutPtsProductionDetail">
|
||||
insert into OUT_PTS_PRODUCTION_DETAIL
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">ID,</if>
|
||||
<if test="action != null">ACTION,</if>
|
||||
<if test="parentTraceCode != null">PARENT_TRACE_CODE,</if>
|
||||
<if test="parentAppendCode != null">PARENT_APPEND_CODE,</if>
|
||||
<if test="productNo != null">PRODUCT_NO,</if>
|
||||
<if test="productName != null">PRODUCT_NAME,</if>
|
||||
<if test="productSpec != null">PRODUCT_SPEC,</if>
|
||||
<if test="packagingRatioName != null">PACKAGING_RATIO_NAME,</if>
|
||||
<if test="productionDate != null">PRODUCTION_DATE,</if>
|
||||
<if test="productionBatch != null">PRODUCTION_BATCH,</if>
|
||||
<if test="expirationDate != null">EXPIRATION_DATE,</if>
|
||||
<if test="sourceNo != null">SOURCE_NO,</if>
|
||||
<if test="taskNo != null">TASK_NO,</if>
|
||||
<if test="lineNo != null">LINE_NO,</if>
|
||||
<if test="teamGroupNo != null">TEAM_GROUP_NO,</if>
|
||||
<if test="machineNo != null">MACHINE_NO,</if>
|
||||
<if test="fuzzy != null">FUZZY,</if>
|
||||
<if test="curCode != null">CUR_CODE,</if>
|
||||
<if test="scanNo != null">SCAN_NO,</if>
|
||||
<if test="layerNo != null">LAYER_NO,</if>
|
||||
<if test="status != null">STATUS,</if>
|
||||
<if test="inType != null">IN_TYPE,</if>
|
||||
<if test="compelete != null">COMPELETE,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id,jdbcType=VARCHAR},</if>
|
||||
<if test="action != null">#{action,jdbcType=DECIMAL},</if>
|
||||
<if test="parentTraceCode != null">#{parentTraceCode,jdbcType=VARCHAR},</if>
|
||||
<if test="parentAppendCode != null">#{parentAppendCode,jdbcType=VARCHAR},</if>
|
||||
<if test="productNo != null">#{productNo,jdbcType=VARCHAR},</if>
|
||||
<if test="productName != null">#{productName,jdbcType=VARCHAR},</if>
|
||||
<if test="productSpec != null">#{productSpec,jdbcType=VARCHAR},</if>
|
||||
<if test="packagingRatioName != null">#{packagingRatioName,jdbcType=VARCHAR},</if>
|
||||
<if test="productionDate != null">#{productionDate,jdbcType=VARCHAR},</if>
|
||||
<if test="productionBatch != null">#{productionBatch,jdbcType=VARCHAR},</if>
|
||||
<if test="expirationDate != null">#{expirationDate,jdbcType=VARCHAR},</if>
|
||||
<if test="sourceNo != null">#{sourceNo,jdbcType=VARCHAR},</if>
|
||||
<if test="taskNo != null">#{taskNo,jdbcType=VARCHAR},</if>
|
||||
<if test="lineNo != null">#{lineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="teamGroupNo != null">#{teamGroupNo,jdbcType=VARCHAR},</if>
|
||||
<if test="machineNo != null">#{machineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="fuzzy != null">#{fuzzy,jdbcType=DECIMAL},</if>
|
||||
<if test="curCode != null">#{curCode,jdbcType=VARCHAR},</if>
|
||||
<if test="scanNo != null">#{scanNo,jdbcType=DECIMAL},</if>
|
||||
<if test="layerNo != null">#{layerNo,jdbcType=DECIMAL},</if>
|
||||
<if test="status != null">#{status,jdbcType=VARCHAR},</if>
|
||||
<if test="inType != null">#{inType,jdbcType=VARCHAR},</if>
|
||||
<if test="compelete != null">#{compelete,jdbcType=VARCHAR},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<delete id="deleteById" parameterType="java.lang.String">
|
||||
delete from OUT_PTS_PRODUCTION_DETAIL where ID = #{id,jdbcType=VARCHAR}
|
||||
</delete>
|
||||
|
||||
<update id="update" parameterType="com.project.joggle.domain.OutPtsProductionDetail">
|
||||
update OUT_PTS_PRODUCTION_DETAIL
|
||||
<set>
|
||||
<if test="action != null">ACTION = #{action,jdbcType=DECIMAL},</if>
|
||||
<if test="parentTraceCode != null">PARENT_TRACE_CODE = #{parentTraceCode,jdbcType=VARCHAR},</if>
|
||||
<if test="parentAppendCode != null">PARENT_APPEND_CODE = #{parentAppendCode,jdbcType=VARCHAR},</if>
|
||||
<if test="productNo != null">PRODUCT_NO = #{productNo,jdbcType=VARCHAR},</if>
|
||||
<if test="productName != null">PRODUCT_NAME = #{productName,jdbcType=VARCHAR},</if>
|
||||
<if test="productSpec != null">PRODUCT_SPEC = #{productSpec,jdbcType=VARCHAR},</if>
|
||||
<if test="packagingRatioName != null">PACKAGING_RATIO_NAME = #{packagingRatioName,jdbcType=VARCHAR},</if>
|
||||
<if test="productionDate != null">PRODUCTION_DATE = #{productionDate,jdbcType=VARCHAR},</if>
|
||||
<if test="productionBatch != null">PRODUCTION_BATCH = #{productionBatch,jdbcType=VARCHAR},</if>
|
||||
<if test="expirationDate != null">EXPIRATION_DATE = #{expirationDate,jdbcType=VARCHAR},</if>
|
||||
<if test="sourceNo != null">SOURCE_NO = #{sourceNo,jdbcType=VARCHAR},</if>
|
||||
<if test="taskNo != null">TASK_NO = #{taskNo,jdbcType=VARCHAR},</if>
|
||||
<if test="lineNo != null">LINE_NO = #{lineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="teamGroupNo != null">TEAM_GROUP_NO = #{teamGroupNo,jdbcType=VARCHAR},</if>
|
||||
<if test="machineNo != null">MACHINE_NO = #{machineNo,jdbcType=VARCHAR},</if>
|
||||
<if test="fuzzy != null">FUZZY = #{fuzzy,jdbcType=DECIMAL},</if>
|
||||
<if test="curCode != null">CUR_CODE = #{curCode,jdbcType=VARCHAR},</if>
|
||||
<if test="scanNo != null">SCAN_NO = #{scanNo,jdbcType=DECIMAL},</if>
|
||||
<if test="layerNo != null">LAYER_NO = #{layerNo,jdbcType=DECIMAL},</if>
|
||||
<if test="status != null">STATUS = #{status,jdbcType=VARCHAR},</if>
|
||||
<if test="inType != null">IN_TYPE = #{inType,jdbcType=VARCHAR},</if>
|
||||
<if test="compelete != null">COMPELETE = #{compelete,jdbcType=VARCHAR},</if>
|
||||
</set>
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</update>
|
||||
|
||||
<select id="selectById" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from OUT_PTS_PRODUCTION_DETAIL
|
||||
where ID = #{id,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="selectList" parameterType="com.project.joggle.domain.OutPtsProductionDetail" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from OUT_PTS_PRODUCTION_DETAIL
|
||||
<where>
|
||||
<if test="id != null">and ID = #{id,jdbcType=VARCHAR}</if>
|
||||
<if test="action != null">and ACTION = #{action,jdbcType=DECIMAL}</if>
|
||||
<if test="parentTraceCode != null">and PARENT_TRACE_CODE = #{parentTraceCode,jdbcType=VARCHAR}</if>
|
||||
<if test="parentAppendCode != null">and PARENT_APPEND_CODE = #{parentAppendCode,jdbcType=VARCHAR}</if>
|
||||
<if test="productNo != null">and PRODUCT_NO = #{productNo,jdbcType=VARCHAR}</if>
|
||||
<if test="productName != null">and PRODUCT_NAME = #{productName,jdbcType=VARCHAR}</if>
|
||||
<if test="productSpec != null">and PRODUCT_SPEC = #{productSpec,jdbcType=VARCHAR}</if>
|
||||
<if test="packagingRatioName != null">and PACKAGING_RATIO_NAME = #{packagingRatioName,jdbcType=VARCHAR}</if>
|
||||
<if test="productionDate != null">and PRODUCTION_DATE = #{productionDate,jdbcType=VARCHAR}</if>
|
||||
<if test="productionBatch != null">and PRODUCTION_BATCH = #{productionBatch,jdbcType=VARCHAR}</if>
|
||||
<if test="expirationDate != null">and EXPIRATION_DATE = #{expirationDate,jdbcType=VARCHAR}</if>
|
||||
<if test="sourceNo != null">and SOURCE_NO = #{sourceNo,jdbcType=VARCHAR}</if>
|
||||
<if test="taskNo != null">and TASK_NO = #{taskNo,jdbcType=VARCHAR}</if>
|
||||
<if test="lineNo != null">and LINE_NO = #{lineNo,jdbcType=VARCHAR}</if>
|
||||
<if test="teamGroupNo != null">and TEAM_GROUP_NO = #{teamGroupNo,jdbcType=VARCHAR}</if>
|
||||
<if test="machineNo != null">and MACHINE_NO = #{machineNo,jdbcType=VARCHAR}</if>
|
||||
<if test="fuzzy != null">and FUZZY = #{fuzzy,jdbcType=DECIMAL}</if>
|
||||
<if test="curCode != null">and CUR_CODE = #{curCode,jdbcType=VARCHAR}</if>
|
||||
<if test="scanNo != null">and SCAN_NO = #{scanNo,jdbcType=DECIMAL}</if>
|
||||
<if test="layerNo != null">and LAYER_NO = #{layerNo,jdbcType=DECIMAL}</if>
|
||||
<if test="status != null">and STATUS = #{status,jdbcType=VARCHAR}</if>
|
||||
<if test="inType != null">and IN_TYPE = #{inType,jdbcType=VARCHAR}</if>
|
||||
<if test="compelete != null">and COMPELETE = #{compelete,jdbcType=VARCHAR}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTopOutProductionDetail" resultMap="BaseResultMap">
|
||||
SELECT * FROM (
|
||||
SELECT
|
||||
<include refid="Base_Column_List" />
|
||||
FROM OUT_PTS_PRODUCTION_DETAIL
|
||||
WHERE STATUS in (0,2)
|
||||
and (ERRORCOUNT is null or ERRORCOUNT < 3)
|
||||
) WHERE ROWNUM = 1
|
||||
</select>
|
||||
|
||||
<select id="selectOutPtsProductionDetailByParentAppendCode" parameterType="java.lang.String" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from OUT_PTS_PRODUCTION_DETAIL
|
||||
where PARENT_APPEND_CODE = #{parentAppendCode} and status in (0,2) and SOURCE_NO =#{sourceNo}
|
||||
</select>
|
||||
|
||||
<update id="updateStatusByParentAppendCode" parameterType="string">
|
||||
update OUT_PTS_PRODUCTION_DETAIL set status = #{status} where parent_append_code = #{parentAppendCode} and source_no = #{sourceNo} and status in (0,2)
|
||||
</update>
|
||||
|
||||
<update id="updateOutPtsProductionDetailByOrderNo" parameterType="string">
|
||||
update OUT_PTS_PRODUCTION_DETAIL set status =#{status} where parent_append_code = #{parentAppendCode} and status>0
|
||||
</update>
|
||||
|
||||
<delete id="deleteOutPtsProductionDetailByParentAppendCode" parameterType="string">
|
||||
delete from OUT_PTS_PRODUCTION_DETAIL where parent_append_code = #{parentAppendCode} and source_no = #{sourceNo} and status=1
|
||||
</delete>
|
||||
|
||||
<update id="updateErrorcountByParentAppendCode" parameterType="com.project.joggle.domain.OutPtsProductionDetail">
|
||||
update OUT_PTS_PRODUCTION_DETAIL set errorcount = #{errorcount} where parent_append_code = #{parentAppendCode} and source_no = #{sourceNo} and status in (0,2)
|
||||
</update>
|
||||
</mapper>
|
||||
61
src/main/resources/mapper/OutStockoutMapper.xml
Normal file
61
src/main/resources/mapper/OutStockoutMapper.xml
Normal file
@@ -0,0 +1,61 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.OutStockoutMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.OutStockout">
|
||||
<result property="stockoutId" column="STOCKOUT_ID" jdbcType="VARCHAR"/>
|
||||
<result property="outType" column="OUT_TYPE" jdbcType="VARCHAR"/>
|
||||
<result property="createDate" column="CREATE_DATE" jdbcType="TIMESTAMP"/>
|
||||
<result property="customerNo" column="CUSTOMER_NO" jdbcType="VARCHAR"/>
|
||||
<result property="createManId" column="CREATE_MAN_ID" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="warehouseId" column="WAREHOUSE_ID" jdbcType="VARCHAR"/>
|
||||
<result property="classNowId" column="CLASS_NOW_ID" jdbcType="VARCHAR"/>
|
||||
<result property="stockoutGuid" column="STOCKOUT_GUID" jdbcType="VARCHAR"/>
|
||||
<result property="stockoutSource" column="STOCKOUT_SOURCE" jdbcType="VARCHAR"/>
|
||||
<result property="exitId" column="EXIT_ID" jdbcType="VARCHAR"/>
|
||||
<result property="carNumber" column="CAR_NUMBER" jdbcType="VARCHAR"/>
|
||||
<result property="finishDate" column="FINISH_DATE" jdbcType="TIMESTAMP"/>
|
||||
<result property="beganDate" column="BEGAN_DATE" jdbcType="TIMESTAMP"/>
|
||||
<result property="fid" column="FID" jdbcType="VARCHAR"/>
|
||||
<result property="remark" column="REMARK" jdbcType="VARCHAR"/>
|
||||
<result property="customerName" column="CUSTOMER_NAME" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
STOCKOUT_ID,OUT_TYPE,CREATE_DATE,
|
||||
CUSTOMER_NO,CREATE_MAN_ID,STATUS,
|
||||
WAREHOUSE_ID,CLASS_NOW_ID,STOCKOUT_GUID,
|
||||
STOCKOUT_SOURCE,EXIT_ID,CAR_NUMBER,
|
||||
FINISH_DATE,BEGAN_DATE,FID,
|
||||
REMARK
|
||||
</sql>
|
||||
|
||||
<select id="selectOutStockoutByStockoutId" parameterType="string" resultMap="BaseResultMap">
|
||||
select distinct
|
||||
o.STOCKOUT_ID,o.OUT_TYPE,o.CREATE_DATE,
|
||||
o.CUSTOMER_NO,o.CREATE_MAN_ID,o.STATUS,
|
||||
o.WAREHOUSE_ID,o.CLASS_NOW_ID,o.STOCKOUT_GUID,
|
||||
o.STOCKOUT_SOURCE,o.EXIT_ID,o.CAR_NUMBER,
|
||||
o.FINISH_DATE,o.BEGAN_DATE,o.FID,
|
||||
o.REMARK,b.CUSTOMER_NAME
|
||||
from OUT_STOCKOUT o left join BAS_CUSTOMER b on b.CUSTOMER_NO = o.CUSTOMER_NO
|
||||
left join OUT_STOCKOUT_DETAIL d on d.STOCKOUT_GUID = o.STOCKOUT_GUID
|
||||
where d.ERP_STOCKOUT_ID = #{stockoutId}
|
||||
</select>
|
||||
|
||||
<select id="selectOutStockoutFinishByStockoutId" parameterType="string" resultMap="BaseResultMap">
|
||||
select distinct
|
||||
o.STOCKOUT_ID,o.OUT_TYPE,o.CREATE_DATE,
|
||||
o.CUSTOMER_NO,o.CREATE_MAN_ID,o.STATUS,
|
||||
o.WAREHOUSE_ID,o.CLASS_NOW_ID,o.STOCKOUT_GUID,
|
||||
o.STOCKOUT_SOURCE,o.EXIT_ID,o.CAR_NUMBER,
|
||||
o.FINISH_DATE,o.BEGAN_DATE,o.FID,
|
||||
o.REMARK,b.CUSTOMER_NAME
|
||||
from OUT_STOCKOUT_FINISH o left join BAS_CUSTOMER b on b.CUSTOMER_NO = o.CUSTOMER_NO
|
||||
left join OUT_STOCKOUT_DETAIL_FINISH d on d.STOCKOUT_GUID = o.STOCKOUT_GUID
|
||||
where d.ERP_STOCKOUT_ID = #{stockoutId}
|
||||
</select>
|
||||
</mapper>
|
||||
70
src/main/resources/mapper/RelationshipRestructurMapper.xml
Normal file
70
src/main/resources/mapper/RelationshipRestructurMapper.xml
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.RelationshipRestructurMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.RelationshipRestructur">
|
||||
<id property="id" column="ID" jdbcType="VARCHAR"/>
|
||||
<result property="curCode" column="CUR_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="parentCode" column="PARENT_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="errorcount" column="ERRORCOUNT" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID,CUR_CODE,PARENT_CODE,STATUS,ERRORCOUNT
|
||||
</sql>
|
||||
|
||||
<select id="selectRelationshipRestructurList" parameterType="com.project.joggle.domain.RelationshipRestructur" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM RELATIONSHIP_RESTRUCTUR
|
||||
<where>
|
||||
<if test="id != null and id != ''">
|
||||
AND ID = #{id}
|
||||
</if>
|
||||
<if test="curCode != null and curCode != ''">
|
||||
AND CUR_CODE = #{curCode}
|
||||
</if>
|
||||
<if test="parentCode != null and parentCode != ''">
|
||||
AND PARENT_CODE = #{parentCode}
|
||||
</if>
|
||||
<if test="status != null and status != ''">
|
||||
AND STATUS = #{status}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectTopRelationshipRestructur" resultMap="BaseResultMap">
|
||||
SELECT * FROM (
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM RELATIONSHIP_RESTRUCTUR
|
||||
WHERE STATUS in (0,2)
|
||||
AND (ERRORCOUNT is null or ERRORCOUNT <3)
|
||||
) WHERE ROWNUM = 1
|
||||
</select>
|
||||
|
||||
<select id="selectRelationshipRestructurByParentCode" resultMap="BaseResultMap" parameterType="string">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM RELATIONSHIP_RESTRUCTUR
|
||||
WHERE PARENT_CODE = #{parentCode}
|
||||
and STATUS in (0,2)
|
||||
</select>
|
||||
|
||||
<update id="updateRelationshipRestructur" parameterType="com.project.joggle.domain.RelationshipRestructur">
|
||||
UPDATE RELATIONSHIP_RESTRUCTUR
|
||||
<set>
|
||||
<if test="status != null and status != ''">
|
||||
STATUS = #{status},
|
||||
</if>
|
||||
<if test="errorcount != null and errorcount != ''">
|
||||
ERRORCOUNT = #{errorcount}
|
||||
</if>
|
||||
</set>
|
||||
WHERE PARENT_CODE = #{parentCode}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
50
src/main/resources/mapper/RemoveRelationshipMapper.xml
Normal file
50
src/main/resources/mapper/RemoveRelationshipMapper.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.RemoveRelationshipMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.RemoveRelationship">
|
||||
<id property="id" column="ID" jdbcType="VARCHAR"/>
|
||||
<result property="curCode" column="CUR_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="errorcount" column="ERRORCOUNT" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID,CUR_CODE,STATUS,ERRORCOUNT
|
||||
</sql>
|
||||
|
||||
<select id="selectRemoveRelationshipList" parameterType="RemoveRelationship" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from REMOVE_RELATIONSHIP
|
||||
<where>
|
||||
STATUS in (0,2)
|
||||
and (ERRORCOUNT < 3 or ERRORCOUNT is null)
|
||||
<if test="id != null and id != ''">
|
||||
and ID = #{id}
|
||||
</if>
|
||||
<if test="curCode != null and curCode != ''">
|
||||
and CUR_CODE = #{curCode}
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateRemoveRelationship" parameterType="RemoveRelationship" >
|
||||
update REMOVE_RELATIONSHIP
|
||||
<set>
|
||||
|
||||
<if test="status != null and status != ''">
|
||||
STATUS = #{status},
|
||||
</if>
|
||||
<if test="errorcount != null and errorcount != ''">
|
||||
ERRORCOUNT = #{errorcount},
|
||||
</if>
|
||||
</set>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
56
src/main/resources/mapper/ReplaceRelationshipMapper.xml
Normal file
56
src/main/resources/mapper/ReplaceRelationshipMapper.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.ReplaceRelationshipMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.ReplaceRelationship">
|
||||
<result property="id" column="ID" jdbcType="VARCHAR"/>
|
||||
<result property="oldTraceCode" column="OLD_TRACE_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="newTraceCode" column="NEW_TRACE_CODE" jdbcType="VARCHAR"/>
|
||||
<result property="status" column="STATUS" jdbcType="VARCHAR"/>
|
||||
<result property="errorcount" column="ERRORCOUNT" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ID,OLD_TRACE_CODE,NEW_TRACE_CODE,
|
||||
STATUS,ERRORCOUNT
|
||||
</sql>
|
||||
|
||||
<select id="selectReplaceRelationshipList" parameterType="ReplaceRelationship" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM REPLACE_RELATIONSHIP
|
||||
<where>
|
||||
STATUS in (0,2)
|
||||
and (ERRORCOUNT is null or ERRORCOUNT <3)
|
||||
|
||||
<if test="id != null and id != ''">
|
||||
AND ID = #{id}
|
||||
</if>
|
||||
<if test="oldTraceCode != null and oldTraceCode != ''">
|
||||
AND OLD_TRACE_CODE = #{oldTraceCode}
|
||||
</if>
|
||||
<if test="newTraceCode != null and newTraceCode != ''">
|
||||
AND NEW_TRACE_CODE = #{newTraceCode}
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<update id="updateRelationshipRestructur" parameterType="ReplaceRelationship">
|
||||
UPDATE REPLACE_RELATIONSHIP
|
||||
<set>
|
||||
<if test="status != null and status != ''">
|
||||
STATUS = #{status},
|
||||
</if>
|
||||
<if test="errorcount !=null and errorcount != ''">
|
||||
ERRORCOUNT= #{errorcount}
|
||||
</if>
|
||||
</set>
|
||||
WHERE id = #{id}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
30
src/main/resources/mapper/ToKwmsAgjustMapper.xml
Normal file
30
src/main/resources/mapper/ToKwmsAgjustMapper.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.project.joggle.mapper.ToKwmsAgjustMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.project.joggle.domain.ToKwmsAgjust">
|
||||
<id property="adjustId" column="ADJUST_ID" />
|
||||
<result property="moyaBilltypeNumber" column="MOYA_BILLTYPE_NUMBER" />
|
||||
<result property="orgNumber" column="ORG_NUMBER" />
|
||||
<result property="moyaBiztime" column="MOYA_BIZTIME" />
|
||||
<result property="moyaOwnertype" column="MOYA_OWNERTYPE" />
|
||||
<result property="moyaOwnerNumber" column="MOYA_OWNER_NUMBER" />
|
||||
<result property="moyaWarehouseNumber" column="MOYA_WAREHOUSE_NUMBER" />
|
||||
<result property="billstatus" column="BILLSTATUS" />
|
||||
<result property="moyaRemark" column="MOYA_REMARK" />
|
||||
<result property="h7f1Sourcesystem" column="H7F1_SOURCESYSTEM" />
|
||||
<result property="moyaHsrcbillno" column="MOYA_HSRCBILLNO" />
|
||||
<result property="status" column="STATUS" />
|
||||
<result property="returnCode" column="RETURN_CODE" />
|
||||
<result property="returnMessage" column="RETURN_MESSAGE" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
ADJUST_ID,MOYA_BILLTYPE_NUMBER,ORG_NUMBER,MOYA_BIZTIME,MOYA_OWNERTYPE,MOYA_OWNER_NUMBER,
|
||||
MOYA_WAREHOUSE_NUMBER,BILLSTATUS,MOYA_REMARK,H7F1_SOURCESYSTEM,MOYA_HSRCBILLNO,
|
||||
STATUS,RETURN_CODE,RETURN_MESSAGE,CREATE_TIME
|
||||
</sql>
|
||||
</mapper>
|
||||
6
src/main/resources/static/index.html
Normal file
6
src/main/resources/static/index.html
Normal file
@@ -0,0 +1,6 @@
|
||||
<html>
|
||||
<body>
|
||||
<h1>hello word!!!</h1>
|
||||
<p>this is a html page</p>
|
||||
</body>
|
||||
</html>
|
||||
13
src/test/java/com/project/joggle/JoggleApplicationTests.java
Normal file
13
src/test/java/com/project/joggle/JoggleApplicationTests.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package com.project.joggle;
|
||||
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
|
||||
@SpringBootTest
|
||||
class JoggleApplicationTests {
|
||||
|
||||
@Test
|
||||
void contextLoads() {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user