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; // 标志位表示任务是否已经执行过
// @Scheduled(cron = "0 0/10 * * * ?")
// @Scheduled(initialDelay = 6000, fixedDelay = 60000 * 10)
@Scheduled(initialDelay = 6000, fixedDelay = 60000 * 10)
@Async
public void getAttTasks() {
log.info("--------考勤定时器开启------");
@ -72,7 +72,7 @@ public class AttTasks {
/**
* 历史考勤数据
*/
// @Scheduled(initialDelay = 60000 * 4,fixedDelay = 60000 * 30)
@Scheduled(initialDelay = 60000 * 4,fixedDelay = 60000 * 30)
@Async
public void getHisAttTasks() {
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
public void leaveTask() {
log.info("--------休假出差数据定时器开启------");
@ -177,7 +177,7 @@ public class WechatTasks {
/**
* 考勤数据同步定时器
*/
// @Scheduled(initialDelay = 60000 * 3,fixedDelay = 60000 * 10)
@Scheduled(initialDelay = 60000 * 3,fixedDelay = 60000 * 10)
@Async
public void wechatAttTask() {
log.info("--------考勤数据定时器开启------");

View File

@ -14,7 +14,7 @@ public class IpAndPathConfig {
*/
// @Value("${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,
CASE attendance_type WHEN '上班' THEN 1 ELSE 2 END as attType,
'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
<if test=' pushType == "1" '>
>= #{pushDate}

View File

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