Commit 2f05f456 authored by nie'hong's avatar nie'hong

修改bug

parent ecd1bd1f
...@@ -177,6 +177,7 @@ public class WorkCollectServiceImpl implements WorkCollectService { ...@@ -177,6 +177,7 @@ public class WorkCollectServiceImpl implements WorkCollectService {
* @return 当日填报情况 * @return 当日填报情况
*/ */
@Override @Override
@Transactional
public WorkCollect getByUserIdAndWorkDay(Integer userId, Date workDay) { public WorkCollect getByUserIdAndWorkDay(Integer userId, Date workDay) {
log.info("WorkCollectServiceImpl[]getByUserIdAndWorkDay[]input.param.userId:{}, workDay:{}" + userId, workDay); log.info("WorkCollectServiceImpl[]getByUserIdAndWorkDay[]input.param.userId:{}, workDay:{}" + userId, workDay);
if (null == userId || null == workDay) { if (null == userId || null == workDay) {
...@@ -216,6 +217,7 @@ public class WorkCollectServiceImpl implements WorkCollectService { ...@@ -216,6 +217,7 @@ public class WorkCollectServiceImpl implements WorkCollectService {
* @return 是否成功 * @return 是否成功
*/ */
@Override @Override
@Transactional
public Boolean update(WorkCollect workCollect) { public Boolean update(WorkCollect workCollect) {
log.info("WorkCollectServiceImpl[]getByUserIdAndWorkDay[]input.param.workCollect:{}, " + workCollect); log.info("WorkCollectServiceImpl[]getByUserIdAndWorkDay[]input.param.workCollect:{}, " + workCollect);
if (null == workCollect) { if (null == workCollect) {
......
...@@ -118,6 +118,7 @@ public class ShiroConfig { ...@@ -118,6 +118,7 @@ public class ShiroConfig {
ShiroSessionManager sessionManager = new ShiroSessionManager(); ShiroSessionManager sessionManager = new ShiroSessionManager();
sessionManager.setSessionIdCookie(simpleCookie()); sessionManager.setSessionIdCookie(simpleCookie());
sessionManager.setSessionDAO(sessionDAO()); sessionManager.setSessionDAO(sessionDAO());
sessionManager.setGlobalSessionTimeout(-1);
return sessionManager; return sessionManager;
} }
......
...@@ -50,7 +50,7 @@ public class Trigger implements SchedulingConfigurer { ...@@ -50,7 +50,7 @@ public class Trigger implements SchedulingConfigurer {
throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL); throw new BaseCustomException(BASE_RESP_CODE_ENUM.INPUT_PARAM_IS_NULL);
} }
// 更新work_time_order表 // 更新work_time_order表
List<WorkTimeOrder> workTimeOrders = workTimeOrderMapper.getAutoOrder(autoExamine*24); List<WorkTimeOrder> workTimeOrders = workTimeOrderMapper.getAutoOrder(autoExamine * 24);
if (!CollectionUtils.isEmpty(workTimeOrders)) { if (!CollectionUtils.isEmpty(workTimeOrders)) {
List<Integer> projectIds = new ArrayList<>(); List<Integer> projectIds = new ArrayList<>();
workTimeOrders.forEach(wto -> projectIds.add(wto.getWorkId())); workTimeOrders.forEach(wto -> projectIds.add(wto.getWorkId()));
......
...@@ -27,7 +27,8 @@ spring: ...@@ -27,7 +27,8 @@ spring:
two: two:
## 数据源two配置 ## 数据源two配置
name: DBconfig2 name: DBconfig2
url: jdbc:mysql://192.168.110.84:3306/work_test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8 url: jdbc:mysql://192.168.110.84:3306/work_order?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
# url: jdbc:mysql://192.168.110.84:3306/work_test?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&serverTimezone=GMT%2B8
username: root username: root
password: admin!@#123 password: admin!@#123
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
...@@ -45,7 +46,8 @@ spring: ...@@ -45,7 +46,8 @@ spring:
redis: redis:
database: 1 database: 0
# database: 1
host: 192.168.110.84 host: 192.168.110.84
port: 6379 port: 6379
password: # 密码(默认为空) password: # 密码(默认为空)
......
...@@ -3,7 +3,7 @@ server: ...@@ -3,7 +3,7 @@ server:
uri-encoding: UTF-8 uri-encoding: UTF-8
max-threads: 1000 max-threads: 1000
min-spare-threads: 30 min-spare-threads: 30
port: 8086 port: 8081
connection-timeout: 5000ms connection-timeout: 5000ms
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment