test环境

Signed-off-by: lSun <15893999301@qq.com>
This commit is contained in:
lSun 2024-12-24 19:14:18 +08:00
parent d28d076925
commit 756af47a82
5 changed files with 8 additions and 8 deletions

View File

@ -60,7 +60,7 @@ public class AttTasks {
private volatile boolean executed = false; // 标志位表示任务是否已经执行过 private volatile boolean executed = false; // 标志位表示任务是否已经执行过
// @Scheduled(cron = "0 0/10 * * * ?") // @Scheduled(cron = "0 0/10 * * * ?")
// @Scheduled(initialDelay = 6000, fixedDelay = 60000 * 10) @Scheduled(initialDelay = 6000, fixedDelay = 60000 * 10)
@Async @Async
public void getAttTasks() { public void getAttTasks() {
log.info("--------考勤定时器开启------"); log.info("--------考勤定时器开启------");
@ -72,7 +72,7 @@ public class AttTasks {
/** /**
* 历史考勤数据 * 历史考勤数据
*/ */
// @Scheduled(initialDelay = 60000 * 4,fixedDelay = 60000 * 30) @Scheduled(initialDelay = 60000 * 4,fixedDelay = 60000 * 30)
@Async @Async
public void getHisAttTasks() { public void getHisAttTasks() {
log.info("--------考勤定时器开启------"); log.info("--------考勤定时器开启------");

View File

@ -106,7 +106,7 @@ public class WechatTasks {
/** /**
* 休假出差数据同步定时器 * 休假出差数据同步定时器
*/ */
// @Scheduled(initialDelay = 60000 * 2,fixedDelay = 60000 * 10) @Scheduled(initialDelay = 60000 * 2,fixedDelay = 60000 * 10)
@Async @Async
public void leaveTask() { public void leaveTask() {
log.info("--------休假出差数据定时器开启------"); log.info("--------休假出差数据定时器开启------");
@ -177,7 +177,7 @@ public class WechatTasks {
/** /**
* 考勤数据同步定时器 * 考勤数据同步定时器
*/ */
// @Scheduled(initialDelay = 60000 * 3,fixedDelay = 60000 * 10) @Scheduled(initialDelay = 60000 * 3,fixedDelay = 60000 * 10)
@Async @Async
public void wechatAttTask() { public void wechatAttTask() {
log.info("--------考勤数据定时器开启------"); log.info("--------考勤数据定时器开启------");

View File

@ -14,7 +14,7 @@ public class IpAndPathConfig {
*/ */
// @Value("${environment}") // @Value("${environment}")
// public static String environment; // public static String environment;
public static String environment = "location"; public static String environment = "test";
/** /**
* 小程序相关 * 小程序相关

View File

@ -123,7 +123,7 @@
attendance_date as attCurrentDay, attendance_time as attCurrentTime, attendance_date as attCurrentDay, attendance_time as attCurrentTime,
CASE attendance_type WHEN '上班' THEN 1 ELSE 2 END as attType, CASE attendance_type WHEN '上班' THEN 1 ELSE 2 END as attType,
'0' as attAddress, lon as attLon, lat as attLat, '1' as dataSource '0' as attAddress, lon as attLon, lat as attLat, '1' as dataSource
from gz_cloud.fc_sup_attendance sup from gz_cloud_test.fc_sup_attendance sup
where sup.attendance_date where sup.attendance_date
<if test=' pushType == "1" '> <if test=' pushType == "1" '>
>= #{pushDate} >= #{pushDate}

View File

@ -33,7 +33,7 @@
<insert id="pushAttDataToQsy"> <insert id="pushAttDataToQsy">
<foreach collection="list" item="item" separator=";"> <foreach collection="list" item="item" separator=";">
replace INTO gz_cloud.fc_sup_attendance ( replace INTO gz_cloud_test.fc_sup_attendance (
name, name,
id_number, id_number,
org_id, org_id,
@ -175,7 +175,7 @@
If(PROJECT_ID is null,0,PROJECT_ID) AS proId, If(PROJECT_ID is null,0,PROJECT_ID) AS proId,
If(ORG_ID is null,0,ORG_ID) AS orgId If(ORG_ID is null,0,ORG_ID) AS orgId
FROM FROM
gz_cloud.bm_sup_attend_history gz_cloud_test.bm_sup_attend_history
WHERE WHERE
ID_NUMBER = #{idNumber} ID_NUMBER = #{idNumber}
limit 1 limit 1