src/main/java/com/yj/oa/common/utils/myThread/MyAttendCountThread.java
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.yj.oa.common.utils.myThread;
import com.yj.oa.common.utils.DateUtils;
import com.yj.oa.common.utils.StringUtils;
import com.yj.oa.project.mapper.*;
import com.yj.oa.project.po.*;
import com.yj.oa.project.service.workTime.WorkTimeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
/**
* @author 永健
* 线程 分批处理月底队员工的考勤统计
*/
public class MyAttendCountThread implements Runnable{
private Logger log = LoggerFactory.getLogger(MyAttendCountThread.class);
private WorkTimeMapper workTimeMapper;
private AttendMapper attendMapper;
private LeaveFormMapper leaveFormMapper;
private AttendCountMapper attendCountMapper;
private List<User> users;
public MyAttendCountThread(WorkTimeMapper workTimeMapper, AttendMapper attendMapper,
LeaveFormMapper leaveFormMapper, AttendCountMapper attendCountMapper, List<User> users)
{
this.workTimeMapper = workTimeMapper;
this.leaveFormMapper = leaveFormMapper;
this.attendMapper = attendMapper;
this.attendCountMapper = attendCountMapper;
this.users = users;
}
@Override
public void run()
{
WorkTime workTime = workTimeMapper.selectUsing();
//统计所有用户的
//List<User> users = userMapper.selectByUser(new User());
LeaveForm leaveForm = new LeaveForm();
AttendCount attendCount = new AttendCount();
Attend attend = new Attend();
//当前日期 每个月一号 统计,统计上个月的打卡记录
Date date = new Date();
Date preMoth = DateUtils.getPreMoth(date);
//要统计的月 的第一天
attend.setBeginTime(DateUtils.getFirstDayDateOfMonth(preMoth));
//要统计的月的最后一天
attend.setOverTime(DateUtils.getLastDayOfMonth(preMoth));
后面还有 236 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。