|  | @@ -573,18 +573,24 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//日期格式化
 | 
	
		
			
				|  |  |          SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  |          int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  | -        String sDate = "";
 | 
	
		
			
				|  |  | -        String eDate = "";
 | 
	
		
			
				|  |  | +//        String sDate = "";
 | 
	
		
			
				|  |  | +//        String eDate = "";
 | 
	
		
			
				|  |  |          Date stDate = null;
 | 
	
		
			
				|  |  |          Date enDate = null;
 | 
	
		
			
				|  |  |          long startDate;
 | 
	
		
			
				|  |  |          long endDate;
 | 
	
		
			
				|  |  | -        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | -        eDate = simpleDateFormat.format(new Date())  + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | -        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | -        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | -        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | -        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +        Calendar now = Calendar.getInstance();
 | 
	
		
			
				|  |  | +        endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        enDate = now.getTime();
 | 
	
		
			
				|  |  | +        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +        startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        stDate = now.getTime();
 | 
	
		
			
				|  |  | +//        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | +//        eDate = simpleDateFormat.format(new Date())  + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | +//        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | +//        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | +//        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +//        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              List<String> list = WeixinUserIdList();
 | 
	
		
			
				|  |  |              if (list != null && list.size() > 0) {
 | 
	
	
		
			
				|  | @@ -692,27 +698,37 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          UrlData.getToken();
 | 
	
		
			
				|  |  |          String msg="ok";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            Calendar calendar = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  | +            Calendar now = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  |              SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//日期格式化
 | 
	
		
			
				|  |  |              SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -            int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  | +            int actualMaximum = now.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  |              String sDate = "";
 | 
	
		
			
				|  |  |              String eDate = "";
 | 
	
		
			
				|  |  |              Date stDate = null;
 | 
	
		
			
				|  |  |              Date enDate = null;
 | 
	
		
			
				|  |  |              long startDate;
 | 
	
		
			
				|  |  |              long endDate;
 | 
	
		
			
				|  |  | -            sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | -            eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | -            stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | -            enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | -            startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | -            endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +        endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        enDate = now.getTime();
 | 
	
		
			
				|  |  | +        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +        startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        stDate = now.getTime();
 | 
	
		
			
				|  |  | +//            sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | +//            eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | +//            stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | +//            enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | +//            startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +//            endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  |              List<String> list = WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"5");
 | 
	
		
			
				|  |  |              for (String ls:list){//循环审批id
 | 
	
		
			
				|  |  |                  workOvertime workOvertime = WeixinWorks(ls);
 | 
	
		
			
				|  |  |                  if (workOvertime!=null) {
 | 
	
		
			
				|  |  | -                    Boolean aBoolean = iworkOvertimeService.workSave(workOvertime);
 | 
	
		
			
				|  |  | +                    try {
 | 
	
		
			
				|  |  | +                        Boolean aBoolean = iworkOvertimeService.workSave(workOvertime);
 | 
	
		
			
				|  |  | +                    }catch (Exception e){
 | 
	
		
			
				|  |  | +                        e.printStackTrace();
 | 
	
		
			
				|  |  | +                    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          return null;
 | 
	
	
		
			
				|  | @@ -730,22 +746,27 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          UrlData.getToken();
 | 
	
		
			
				|  |  |          String msg="ok";
 | 
	
		
			
				|  |  |          List<UserQuit>lst=new ArrayList<>();
 | 
	
		
			
				|  |  | -        Calendar calendar = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  | +        Calendar now = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  |          SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//日期格式化
 | 
	
		
			
				|  |  |          SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -        int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  | +        int actualMaximum = now.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  |          String sDate = "";
 | 
	
		
			
				|  |  |          String eDate = "";
 | 
	
		
			
				|  |  |          Date stDate = null;
 | 
	
		
			
				|  |  |          Date enDate = null;
 | 
	
		
			
				|  |  |          long startDate;
 | 
	
		
			
				|  |  |          long endDate;
 | 
	
		
			
				|  |  | -        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | -        eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | -        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | -        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | -        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | -        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +        endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        enDate = now.getTime();
 | 
	
		
			
				|  |  | +        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +        startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        stDate = now.getTime();
 | 
	
		
			
				|  |  | +//        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | +//        eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | +//        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | +//        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | +//        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +//        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  |          List<String> list = WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),null);
 | 
	
		
			
				|  |  |          userQuitService.deleteQuit(sDate,eDate);
 | 
	
		
			
				|  |  |          for (String ls:list){//循环审批id
 | 
	
	
		
			
				|  | @@ -771,22 +792,27 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          UrlData.getVacationToken();
 | 
	
		
			
				|  |  |          UrlData.getToken();
 | 
	
		
			
				|  |  |          String msg="ok";
 | 
	
		
			
				|  |  | -        Calendar calendar = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  | +        Calendar now = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  |          SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//日期格式化
 | 
	
		
			
				|  |  |          SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -        int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  | +        int actualMaximum = now.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  |          String sDate = "";
 | 
	
		
			
				|  |  |          String eDate = "";
 | 
	
		
			
				|  |  |          Date stDate = null;
 | 
	
		
			
				|  |  |          Date enDate = null;
 | 
	
		
			
				|  |  |          long startDate;
 | 
	
		
			
				|  |  |          long endDate;
 | 
	
		
			
				|  |  | -        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | -        eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | -        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | -        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | -        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | -        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +        endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        enDate = now.getTime();
 | 
	
		
			
				|  |  | +        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +        startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +        stDate = now.getTime();
 | 
	
		
			
				|  |  | +//        sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | +//        eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | +//        stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | +//        enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | +//        startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +//        endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  |          List<String> list = WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"2");
 | 
	
		
			
				|  |  |          makeUpCardService.deleteDate(sDate);
 | 
	
		
			
				|  |  |          List<MakeUpCard>ls=new ArrayList<>();
 | 
	
	
		
			
				|  | @@ -1020,6 +1046,7 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |                  if (weixinApproval != null&&weixinApproval.getSp_status().equals("2")) {//获取数据库字段所需的数据
 | 
	
		
			
				|  |  |                      work=new workOvertime();
 | 
	
		
			
				|  |  |                      work.setCode(weixinApproval.getSp_no());
 | 
	
		
			
				|  |  | +                    work.setId(weixinApproval.getSp_no());
 | 
	
		
			
				|  |  |                      String us = weixinApproval.getApplyer().toString();
 | 
	
		
			
				|  |  |                      mapTypes = JSON.parseObject(us);
 | 
	
		
			
				|  |  |                      work.setPerson(mapTypes.get("userid").toString());
 | 
	
	
		
			
				|  | @@ -1153,22 +1180,27 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |        UrlData.getToken();
 | 
	
		
			
				|  |  |        String msg="ok";
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            Calendar calendar = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  | +            Calendar now = Calendar.getInstance();//获取系统时间实列
 | 
	
		
			
				|  |  |              SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM");//日期格式化
 | 
	
		
			
				|  |  |              SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 | 
	
		
			
				|  |  | -            int actualMaximum = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  | +            int actualMaximum = now.getActualMaximum(Calendar.DAY_OF_MONTH);//获取前端传过来的时间获取月份的总天数
 | 
	
		
			
				|  |  |              String sDate = "";
 | 
	
		
			
				|  |  |              String eDate = "";
 | 
	
		
			
				|  |  |              Date stDate = null;
 | 
	
		
			
				|  |  |              Date enDate = null;
 | 
	
		
			
				|  |  |              long startDate;
 | 
	
		
			
				|  |  |              long endDate;
 | 
	
		
			
				|  |  | -            sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | -            eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | -            stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | -            enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | -            startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | -            endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +            endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +            enDate = now.getTime();
 | 
	
		
			
				|  |  | +            now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +            startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +            stDate = now.getTime();
 | 
	
		
			
				|  |  | +//            sDate = simpleDateFormat.format(new Date()) + "-01 00:00:00";
 | 
	
		
			
				|  |  | +//            eDate = simpleDateFormat.format(new Date()) + "-" + actualMaximum + " 23:59:59";
 | 
	
		
			
				|  |  | +//            stDate = sdf.parse(sDate);
 | 
	
		
			
				|  |  | +//            enDate = sdf.parse(eDate);
 | 
	
		
			
				|  |  | +//            startDate = stDate.getTime() / 1000;
 | 
	
		
			
				|  |  | +//            endDate = enDate.getTime() / 1000;
 | 
	
		
			
				|  |  |              UrlData.getVacationToken();
 | 
	
		
			
				|  |  |              List<String> list = WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"1");
 | 
	
		
			
				|  |  |                      for (String ls:list){//循环审批id
 |