Commit 27700434 by 张富康

fix(database): 格式化日期并修正打卡信息表名

- 将entryDate和leaveDate字段格式化为“YYYY-MM-DD”格式
- 修改StaffQwClockInInfo实体对应的数据库表名为dj_car_life_staff_qw_clock_in_info
- 更新StaffQwClockInInfoMapper查询中的表名为dj_car_life_staff_qw_clock_in_info
1 parent e1f6b219
...@@ -19,7 +19,7 @@ import java.util.Date; ...@@ -19,7 +19,7 @@ import java.util.Date;
@NoArgsConstructor @NoArgsConstructor
@Accessors(chain = true) @Accessors(chain = true)
// todz dj_car_life_staff_qw_clock_in_info_dev 修改 // todz dj_car_life_staff_qw_clock_in_info_dev 修改
@Table(name = "dj_car_life_staff_qw_clock_in_info_dev") @Table(name = "dj_car_life_staff_qw_clock_in_info")
public class StaffQwClockInInfo implements Serializable { public class StaffQwClockInInfo implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
......
...@@ -526,8 +526,8 @@ ...@@ -526,8 +526,8 @@
spe.merchant_name AS merchantName, spe.merchant_name AS merchantName,
spe.oId_job_post AS oIdJobPost, spe.oId_job_post AS oIdJobPost,
spe.superior_leader_name AS superiorLeaderName, spe.superior_leader_name AS superiorLeaderName,
spe.entry_date AS entryDate, DATE_FORMAT(spe.entry_date, '%Y-%m-%d') AS entryDate,
spe.leave_date AS leaveDate, DATE_FORMAT(spe.leave_date, '%Y-%m-%d') AS leaveDate,
IF(spe.is_probation = 1 AND spe.is_correction = 0, spe.before_correction_basic_salary, IF(spe.is_probation = 1 AND spe.is_correction = 0, spe.before_correction_basic_salary,
spe.after_correction_basic_salary) AS salaryStandard, spe.after_correction_basic_salary) AS salaryStandard,
sas.expected_attendance_days AS expectedAttendanceDays, sas.expected_attendance_days AS expectedAttendanceDays,
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
select user_id as userId, select user_id as userId,
staff_phone as staffPhone, staff_phone as staffPhone,
clock_in_date as clockInDate clock_in_date as clockInDate
from dj_car_life_staff_qw_clock_in_info_dev from dj_car_life_staff_qw_clock_in_info
where deleted_flag = 'N' where deleted_flag = 'N'
and (DATE_FORMAT(clock_in_date, '%Y-%m') = #{clockInDate}) and (DATE_FORMAT(clock_in_date, '%Y-%m') = #{clockInDate})
order by user_id; order by user_id;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!