|  | @@ -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) {
 | 
	
		
			
				|  |  | +//		  excelType 1 加班导出   其他为正常导出
 | 
	
		
			
				|  |  | +//		  par_name:'',//导出加班 姓名
 | 
	
		
			
				|  |  | +//		  par_code:'',//导出加班 工号
 | 
	
		
			
				|  |  | +//		  par_departIds:'',//导出加班 部门
 | 
	
		
			
				|  |  | +//		  par_works_type:'',//导出加班 加班事由
 | 
	
		
			
				|  |  | +//		  par_pay_type:'',//导出加班 支付类型
 | 
	
		
			
				|  |  | +//		  par_multiple:'',//导出加班 支付倍数
 | 
	
		
			
				|  |  | +//		  par_begin:'',//导出加班 开始时间
 | 
	
		
			
				|  |  | +//		  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, "员工加班信息"); //此处设置的filename无效 ,前端会重更新设置一下
 | 
	
		
			
				|  |  | +			 mv.addObject(NormalExcelConstants.CLASS, ExcelOvertime.class);
 | 
	
		
			
				|  |  | +			  //update-begin--Author:liusq  Date:20210126 for:图片导出报错,ImageBasePath未设置--------------------
 | 
	
		
			
				|  |  | +			 ExportParams exportParams=new ExportParams("员工加班信息", "导出人:" + sysUser.getRealname(), "员工加班信息");
 | 
	
		
			
				|  |  | +			 exportParams.setImageBasePath(upLoadPath);
 | 
	
		
			
				|  |  | +			  //update-end--Author:liusq  Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
 | 
	
		
			
				|  |  | +			 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<>();
 | 
	
		
			
				|  |  | -//
 | 
	
		
			
				|  |  | +		  /*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);
 | 
	
		
			
				|  |  |  		  //update-end--Author:liusq  Date:20210126 for:图片导出报错,ImageBasePath未设置----------------------
 | 
	
		
			
				|  |  |  		  mv.addObject(NormalExcelConstants.PARAMS,exportParams);
 | 
	
		
			
				|  |  | -		  mv.addObject(NormalExcelConstants.DATA_LIST, list2);
 | 
	
		
			
				|  |  | +		  mv.addObject(NormalExcelConstants.DATA_LIST, list);
 | 
	
		
			
				|  |  |  		  return mv;
 | 
	
		
			
				|  |  |  	  }
 | 
	
		
			
				|  |  |  
 |