From 6bd7e0fd1fdfcd69d280846de05c3a2828ff4f39 Mon Sep 17 00:00:00 2001 From: pengwei Date: Thu, 17 Jul 2025 13:00:02 +0800 Subject: [PATCH] =?UTF-8?q?fit:=E5=80=BC=E7=8F=AD=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/biutag/supervision/job/Job.java | 2 +- .../java/com/biutag/supervision/mapper/SupRotaMapper.java | 4 ++-- src/main/java/com/biutag/supervision/pojo/entity/SupRota.java | 2 +- .../com/biutag/supervision/pojo/param/SupRotaQueryParam.java | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/biutag/supervision/job/Job.java b/src/main/java/com/biutag/supervision/job/Job.java index 1d04004..7f7c7fc 100644 --- a/src/main/java/com/biutag/supervision/job/Job.java +++ b/src/main/java/com/biutag/supervision/job/Job.java @@ -260,7 +260,7 @@ public class Job { private final SupRotaMapper supRotaMapper; //每天一次 00:20:00 //值班人员 - @Scheduled(cron = "0 20 00 * * ?") + @Scheduled(cron = "0 30 12 * * ?") public void operator(){ log.info("operator--------------------"); log.info("值班人员抓取中---------------------"); diff --git a/src/main/java/com/biutag/supervision/mapper/SupRotaMapper.java b/src/main/java/com/biutag/supervision/mapper/SupRotaMapper.java index 7b6de4e..101bfb4 100644 --- a/src/main/java/com/biutag/supervision/mapper/SupRotaMapper.java +++ b/src/main/java/com/biutag/supervision/mapper/SupRotaMapper.java @@ -20,7 +20,7 @@ public interface SupRotaMapper extends BaseMapper { " from sup_depart a " + "LEFT JOIN sup_rota b on a.id = b.dept_code and b.rota_time = #{dateTime} " + "where statistics_group_id = #{groupId} ") - List getSubofficeData(Date dateTime,String groupId); + List getSubofficeData(String dateTime,String groupId); @Select("SELECT " + "a.id as departId, " + @@ -33,5 +33,5 @@ public interface SupRotaMapper extends BaseMapper { " from sup_depart a " + "LEFT JOIN sup_rota b on a.id = b.dept_code and b.rota_time = #{dateTime} " + "where a.pid =#{departId} ") - List getSupRotaList(Date dateTime,String departId); + List getSupRotaList(String dateTime,String departId); } diff --git a/src/main/java/com/biutag/supervision/pojo/entity/SupRota.java b/src/main/java/com/biutag/supervision/pojo/entity/SupRota.java index d9d21fc..ab6d0d8 100644 --- a/src/main/java/com/biutag/supervision/pojo/entity/SupRota.java +++ b/src/main/java/com/biutag/supervision/pojo/entity/SupRota.java @@ -23,7 +23,7 @@ public class SupRota { private String idCode; //值班时间 @TableField("rota_time") - private Date rotaTime; + private String rotaTime; //单位 @TableField("dept_name") private String deptName; diff --git a/src/main/java/com/biutag/supervision/pojo/param/SupRotaQueryParam.java b/src/main/java/com/biutag/supervision/pojo/param/SupRotaQueryParam.java index a208988..16f43e3 100644 --- a/src/main/java/com/biutag/supervision/pojo/param/SupRotaQueryParam.java +++ b/src/main/java/com/biutag/supervision/pojo/param/SupRotaQueryParam.java @@ -12,6 +12,6 @@ import java.util.Date; public class SupRotaQueryParam { private String deptId; - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date date; + @DateTimeFormat(pattern = "yyyy-MM-dd") + private String date; }