|
@@ -28,6 +28,7 @@ import org.jeecg.modules.geke.statutoryleave.service.IStatutoryLeaveService;
|
|
|
import org.jeecg.modules.quartz.entity.QuartzJob;
|
|
|
import org.jeecg.modules.system.entity.SysDepart;
|
|
|
import org.jeecg.modules.system.entity.SysUser;
|
|
|
+import org.jeecg.modules.system.service.ISysDepartService;
|
|
|
import org.jeecg.modules.system.service.ISysUserService;
|
|
|
import org.jeecg.modules.system.util.DateUtils2;
|
|
|
import org.jeecg.modules.viewClockIn.entity.*;
|
|
@@ -62,6 +63,8 @@ import io.swagger.annotations.ApiOperation;
|
|
|
@RestController
|
|
|
@RequestMapping("/viewClockIn/viewClockIn")
|
|
|
public class viewClockInController extends JeecgController<ViewClockIn, IviewClockInService> {
|
|
|
+ @Autowired
|
|
|
+ private ISysDepartService sysDepartService;
|
|
|
@Autowired
|
|
|
private IviewClockInService viewClockInService;
|
|
|
@Autowired
|
|
@@ -699,10 +702,57 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
* @param viewClockIn
|
|
|
*/
|
|
|
@RequestMapping(value = "/exportXls")
|
|
|
- public ModelAndView exportXls(HttpServletRequest request, ViewClockIn viewClockIn,String userName,String mDate,String userType) {
|
|
|
+ public ModelAndView exportXls(HttpServletRequest request, ViewClockIn viewClockIn,String userName,String mDate,String userType,
|
|
|
+ String excelType,String par_name,String par_code,String par_departIds,String par_works_type,
|
|
|
+ String par_pay_type,String par_multiple,String par_begin,String par_end) {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ if(!StringUtil.isNullOrEmpty(excelType) && excelType.equals("1")){
|
|
|
+
|
|
|
+ Map<String,String> map = new HashMap<>();
|
|
|
+ map.put("par_name",par_name);
|
|
|
+ map.put("par_code",par_code);
|
|
|
+
|
|
|
+ if(!StringUtil.isNullOrEmpty(par_departIds) && !par_departIds.equals("0")){
|
|
|
+ SysDepart sysDepart = sysDepartService.getById(par_departIds);
|
|
|
+ if(sysDepart != null){
|
|
|
+ map.put("par_departIds",sysDepart.getOrgCode());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ map.put("par_works_type",par_works_type);
|
|
|
+ map.put("par_pay_type",par_pay_type);
|
|
|
+ map.put("par_multiple",par_multiple);
|
|
|
+ map.put("par_begin",par_begin);
|
|
|
+ map.put("par_end",par_end);
|
|
|
+
|
|
|
+ List<ExcelOvertime> lists = viewClockInService.exportAllOvertime(map);
|
|
|
+
|
|
|
+ LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
|
|
+ mv.addObject(NormalExcelConstants.FILE_NAME, "员工加班信息");
|
|
|
+ mv.addObject(NormalExcelConstants.CLASS, ExcelOvertime.class);
|
|
|
+
|
|
|
+ ExportParams exportParams=new ExportParams("员工加班信息", "导出人:" + sysUser.getRealname(), "员工加班信息");
|
|
|
+ exportParams.setImageBasePath(upLoadPath);
|
|
|
+
|
|
|
+ mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
|
|
+ mv.addObject(NormalExcelConstants.DATA_LIST, lists);
|
|
|
+ return mv;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
List<ExportClockInfo> list = viewClockInService.exportErrotInfo(userName,mDate,userType);
|
|
|
- List<ExportClockInfo> list2 = new ArrayList<>();
|
|
|
-
|
|
|
+
|
|
|
String realname = null;
|
|
|
String oneDept = null;
|
|
|
String twoDept = null;
|
|
@@ -725,7 +775,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
l.setAttendanceCount("0");
|
|
|
}
|
|
|
list2.add(l);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
ModelAndView mv = new ModelAndView(new JeecgEntityExcelView());
|
|
@@ -736,7 +786,7 @@ public class viewClockInController extends JeecgController<ViewClockIn, IviewClo
|
|
|
exportParams.setImageBasePath(upLoadPath);
|
|
|
|
|
|
mv.addObject(NormalExcelConstants.PARAMS,exportParams);
|
|
|
- mv.addObject(NormalExcelConstants.DATA_LIST, list2);
|
|
|
+ mv.addObject(NormalExcelConstants.DATA_LIST, list);
|
|
|
return mv;
|
|
|
}
|
|
|
|