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.
45 lines
1.4 KiB
Java
45 lines
1.4 KiB
Java
package vocation;
|
|
|
|
import com.engine.attendance.vacation.job.holidaygeneration.HolidayGenerationJob;
|
|
import com.engine.attendance.vacation.service.VocationService;
|
|
import com.engine.attendance.vacation.service.impl.VocationServiceImpl;
|
|
import com.engine.common.util.ParamUtil;
|
|
import com.engine.common.util.ServiceUtil;
|
|
import com.engine.common.util.Utils;
|
|
import com.engine.cube.service.ModeImpExpService;
|
|
import com.engine.cube.service.impl.ModeImpExpServiceImpl;
|
|
import com.google.common.collect.Maps;
|
|
import org.junit.Test;
|
|
import weaver.hrm.User;
|
|
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
public class Test1 extends beforlog{
|
|
private ModeImpExpService getService(User user) {
|
|
return (ModeImpExpService) ServiceUtil.getService(ModeImpExpServiceImpl.class, user);
|
|
}
|
|
VocationService basicsetService = ServiceUtil.getService(VocationServiceImpl.class);
|
|
@Test
|
|
public void test1() {
|
|
User user = new User(1);
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
params.put("fileid","26849");
|
|
params.put("type", "checkImpType");
|
|
Map<String, Object> result = this.getService(user).checkImpType(params,user);
|
|
System.out.println(result);
|
|
}
|
|
|
|
public int getScheduleIndex(){
|
|
int j = -1;
|
|
for (int i =0;i<10;i++){
|
|
if (i == 2){
|
|
return i;
|
|
}
|
|
j = i;
|
|
}
|
|
return j;
|
|
}
|
|
}
|