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.

53 lines
1.8 KiB
Java

12 months ago
package vocation;
11 months ago
import com.engine.attendance.component.persongroup.commonutil.PersongroupCommonUtil;
12 months ago
import com.engine.attendance.vacation.service.VocationService;
import com.engine.attendance.vacation.service.impl.VocationServiceImpl;
11 months ago
import com.engine.common.util.DateUtil;
11 months ago
import com.engine.common.util.DbTools;
12 months ago
import com.engine.common.util.ServiceUtil;
import com.engine.common.util.Utils;
11 months ago
import com.engine.cube.service.ModeImpExpService;
import com.engine.cube.service.impl.ModeImpExpServiceImpl;
12 months ago
import com.google.common.collect.Maps;
import org.junit.Test;
11 months ago
import weaver.hrm.User;
import weaver.hrm.company.SubCompanyComInfo;
import workflow.beforlog;
12 months ago
import java.util.Map;
public class Test1 extends beforlog {
11 months ago
private ModeImpExpService getService(User user) {
return (ModeImpExpService) ServiceUtil.getService(ModeImpExpServiceImpl.class, user);
}
12 months ago
VocationService basicsetService = ServiceUtil.getService(VocationServiceImpl.class);
@Test
public void test1() {
11 months ago
Map<String,Object> params = Maps.newHashMap();
Map<String,String> formmodeIdMap = Utils.getFormmodeIdMap();
String modeId = formmodeIdMap.get("uf_jcl_kq_jqed");
params.put("modeId",modeId);
11 months ago
params.put("cover",1);
basicsetService.generateVocation(params);
12 months ago
}
11 months ago
@Test
public void test2() throws Exception{
11 months ago
Map<String,Object> params = Maps.newHashMap();
Map<String,String> formmodeIdMap = Utils.getFormmodeIdMap();
String modeId = formmodeIdMap.get("uf_jcl_kq_jqed");
params.put("modeId",modeId);
11 months ago
params.put("cover",1);
basicsetService.handleOverdueVocation(params);
}
@Test
public void test3() throws Exception{
11 months ago
System.out.println(PersongroupCommonUtil.getClassesAndSimpleNameInformation().get("1").split("&")[2]);
11 months ago
}
11 months ago
12 months ago
}