手机考勤bug修复

This commit is contained in:
guoshengxiong 2024-11-25 19:01:55 +08:00
parent af64fb3879
commit 8ef7d7b80b
2 changed files with 4 additions and 4 deletions

View File

@ -138,7 +138,7 @@ public interface WorkerAttendanceMapper extends BaseMapper<WorkerAttendance> {
* @param workerId * @param workerId
* @return * @return
*/ */
String getWorkerAttendanceMinTime(@Param("workerId") Integer workerId); String getWorkerAttendanceMinTime(@Param("workerId") String workerId);
/** /**
* 查询今日最晚通行的时间 * 查询今日最晚通行的时间
@ -146,7 +146,7 @@ public interface WorkerAttendanceMapper extends BaseMapper<WorkerAttendance> {
* @param workerId * @param workerId
* @return * @return
*/ */
String getWorkerAttendanceMaxTime(@Param("workerId") Integer workerId); String getWorkerAttendanceMaxTime(@Param("workerId") String workerId);
/** /**
* 统计某日出勤人数统计 * 统计某日出勤人数统计

View File

@ -495,8 +495,8 @@ public class WorkerAttendanceServiceImpl extends ServiceImpl<WorkerAttendanceMap
@Override @Override
public Map<String, Object> getPersonAttendanceTime(Map<String, Object> map) { public Map<String, Object> getPersonAttendanceTime(Map<String, Object> map) {
Map<String, Object> data = new HashMap<>(16); Map<String, Object> data = new HashMap<>(16);
String enterTime = workerAttendanceMapper.getWorkerAttendanceMinTime(MapUtils.getInteger(map, "workerId")); String enterTime = workerAttendanceMapper.getWorkerAttendanceMinTime(MapUtils.getString(map, "workerId"));
String outTime = workerAttendanceMapper.getWorkerAttendanceMaxTime(MapUtils.getInteger(map, "workerId")); String outTime = workerAttendanceMapper.getWorkerAttendanceMaxTime(MapUtils.getString(map, "workerId"));
data.put("enterTime", enterTime); data.put("enterTime", enterTime);
data.put("outTime", outTime); data.put("outTime", outTime);
return data; return data;