You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.4 KiB
Java
50 lines
1.4 KiB
Java
package TestAttendanceAllowance;
|
|
|
|
import com.engine.attendance.attendanceanalysis.job.AttendanceAnalysisJob;
|
|
import com.engine.attendance.attendanceanalysis.web.AttendanceanalysisAction;
|
|
import com.engine.attendance.component.calendarscheduling.web.WorkRulesController;
|
|
import com.engine.common.util.DateUtil;
|
|
import com.google.common.collect.Lists;
|
|
import com.google.common.collect.Maps;
|
|
import weaver.hrm.company.SubCompanyComInfo;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class
|
|
|
|
Test extends beforlog{
|
|
|
|
@org.junit.Test
|
|
public void testAnalysis() throws Exception{
|
|
Map<String,Object> paramMap = Maps.newHashMap();
|
|
paramMap.put("startDate","2024-04-15");
|
|
paramMap.put("endDate","2024-04-15");
|
|
paramMap.put("userIds","31");
|
|
|
|
beforlog be = new beforlog();
|
|
AttendanceanalysisAction action = new AttendanceanalysisAction();
|
|
action.getSchedulingData(null,null);
|
|
|
|
}
|
|
|
|
@org.junit.Test
|
|
public void testjob() throws Exception{
|
|
AttendanceAnalysisJob attendanceAnalysisJob = new AttendanceAnalysisJob();
|
|
attendanceAnalysisJob.execute();
|
|
}
|
|
@org.junit.Test
|
|
public void testRealse() throws Exception{
|
|
List<String> list = Lists.newArrayList();
|
|
list.add("2024-11:15");
|
|
list.add("2024-12:15");
|
|
list.add("2024-13:15");
|
|
list.add("2024-14:15");
|
|
|
|
|
|
System.out.println(list.indexOf("2024-12:15"));
|
|
|
|
}
|
|
|
|
}
|