|  | @@ -611,16 +611,17 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          long startDate;
 | 
	
		
			
				|  |  |          long endDate;
 | 
	
		
			
				|  |  |          Calendar now = Calendar.getInstance();//当前日期
 | 
	
		
			
				|  |  | -        now.add(Calendar.DAY_OF_MONTH, -1);
 | 
	
		
			
				|  |  |          String format = sft.format(now.getTime());
 | 
	
		
			
				|  |  | -        Date parse = sdf.parse(format + " 00:00:00");
 | 
	
		
			
				|  |  | -        startDate = parse.getTime()/1000;
 | 
	
		
			
				|  |  |          Date parses = sdf.parse(format + " 23:59:59");
 | 
	
		
			
				|  |  |          endDate= parses.getTime()/1000;
 | 
	
		
			
				|  |  | +        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +        String formats = sft.format(now.getTime());
 | 
	
		
			
				|  |  | +        Date parse = sdf.parse(formats + " 00:00:00");
 | 
	
		
			
				|  |  | +        startDate = parse.getTime()/1000;
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  |              List<String> list = WeixinUserIdList();
 | 
	
		
			
				|  |  |              if (list != null && list.size() > 0) {
 | 
	
		
			
				|  |  | -                //attendanceService.DeleteDateAttendance(sdf.format(stDate2), sdf.format(enDate), list);
 | 
	
		
			
				|  |  | +                attendanceService.DeleteDateAttendance(sdf.format(parse), sdf.format(parses), list);
 | 
	
		
			
				|  |  |                  weixinSigns.addAll(WeixinSignList(String.valueOf(startDate), String.valueOf(endDate), list));
 | 
	
		
			
				|  |  |                  //weixinSigns.addAll(WeixinSignList(String.valueOf(startDate2), String.valueOf(startDate), list));
 | 
	
		
			
				|  |  |                  if (weixinSigns != null && weixinSigns.size() > 0) {
 | 
	
	
		
			
				|  | @@ -763,15 +764,15 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |              long startDate2;
 | 
	
		
			
				|  |  |              long endDate;
 | 
	
		
			
				|  |  |          endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        enDate = now.getTime();
 | 
	
		
			
				|  |  | +       // enDate = now.getTime();
 | 
	
		
			
				|  |  |          now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  |          startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        stDate = now.getTime();
 | 
	
		
			
				|  |  | -        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | -        startDate2 = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        stDate2 = now.getTime();
 | 
	
		
			
				|  |  | +//        stDate = now.getTime();
 | 
	
		
			
				|  |  | +//        now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +//        startDate2 = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +//        stDate2 = now.getTime();
 | 
	
		
			
				|  |  |          list.addAll(WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVJmnEQTwW4cFS"));
 | 
	
		
			
				|  |  | -        list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVJmnEQTwW4cFS"));
 | 
	
		
			
				|  |  | +        //list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVJmnEQTwW4cFS"));
 | 
	
		
			
				|  |  |              for (String ls:list){//循环审批id
 | 
	
		
			
				|  |  |                  workOvertime workOvertime = WeixinWorks(ls);
 | 
	
		
			
				|  |  |                  if (workOvertime!=null) {
 | 
	
	
		
			
				|  | @@ -953,15 +954,15 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |          long startDate2;
 | 
	
		
			
				|  |  |          long endDate;
 | 
	
		
			
				|  |  |          endDate =now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        enDate = now.getTime();
 | 
	
		
			
				|  |  | +        //enDate = now.getTime();
 | 
	
		
			
				|  |  |          now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  |          startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        stDate = now.getTime();
 | 
	
		
			
				|  |  | +       /* stDate = now.getTime();
 | 
	
		
			
				|  |  |          now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  |          startDate2 = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -        stDate2 = now.getTime();
 | 
	
		
			
				|  |  | +        stDate2 = now.getTime();*/
 | 
	
		
			
				|  |  |          list.addAll(WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"","3TmB1h5HqrhwHanzxLTSX1x44zz7djoVyWTbQHWn"));
 | 
	
		
			
				|  |  | -        list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","3TmB1h5HqrhwHanzxLTSX1x44zz7djoVyWTbQHWn"));
 | 
	
		
			
				|  |  | +        //list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","3TmB1h5HqrhwHanzxLTSX1x44zz7djoVyWTbQHWn"));
 | 
	
		
			
				|  |  |          //makeUpCardService.deleteDate(sdf.format(startDate2),sdf.format(endDate));
 | 
	
		
			
				|  |  |          List<MakeUpCard>ls=new ArrayList<>();
 | 
	
		
			
				|  |  |          list.forEach(str->{
 | 
	
	
		
			
				|  | @@ -969,16 +970,16 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |                  MakeUpCard makeUpCard = WxUpCard(str);
 | 
	
		
			
				|  |  |                  if (makeUpCard!=null){
 | 
	
		
			
				|  |  |                      makeUpCardService.save(makeUpCard);
 | 
	
		
			
				|  |  | -                    Attendance one = attendanceMapper.getOne(makeUpCard.getUserId(), sdf.format(makeUpCard.getTime()));
 | 
	
		
			
				|  |  | +                    /*Attendance one = attendanceMapper.getOne(makeUpCard.getUserId(), sdf.format(makeUpCard.getTime()));
 | 
	
		
			
				|  |  |                      if (oConvertUtils.isEmpty(one)){
 | 
	
		
			
				|  |  |                          Attendance attendance=new Attendance();
 | 
	
		
			
				|  |  |                          attendance.setUserDate(makeUpCard.getTime());
 | 
	
		
			
				|  |  |                          attendance.setUserId(makeUpCard.getUserId());
 | 
	
		
			
				|  |  |                          attendance.setExceptionType("正常");
 | 
	
		
			
				|  |  |                         // attendanceService.save()
 | 
	
		
			
				|  |  | -                    }
 | 
	
		
			
				|  |  | +                    }*/
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  | -                System.out.println(makeUpCard);
 | 
	
		
			
				|  |  | +               // System.out.println(makeUpCard);
 | 
	
		
			
				|  |  |              }catch (Exception e){
 | 
	
		
			
				|  |  |                  e.printStackTrace();
 | 
	
		
			
				|  |  |              }
 | 
	
	
		
			
				|  | @@ -1501,12 +1502,12 @@ public class WeixinUserImpl implements IWeixinUserService{
 | 
	
		
			
				|  |  |              enDate = now.getTime();
 | 
	
		
			
				|  |  |              now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  |              startDate = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -            stDate = now.getTime();
 | 
	
		
			
				|  |  | -            now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | -            startDate2 = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | -            stDate2 = now.getTime();
 | 
	
		
			
				|  |  | +//            stDate = now.getTime();
 | 
	
		
			
				|  |  | +//            now.add(Calendar.DAY_OF_MONTH, -30);
 | 
	
		
			
				|  |  | +//            startDate2 = now.getTime().getTime()/1000;
 | 
	
		
			
				|  |  | +//            stDate2 = now.getTime();
 | 
	
		
			
				|  |  |               list.addAll(WeixinVacationList(String.valueOf(startDate), String.valueOf(endDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVDd3Zpjq3Tycy"));
 | 
	
		
			
				|  |  | -             list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVDd3Zpjq3Tycy"));
 | 
	
		
			
				|  |  | +            // list.addAll(WeixinVacationList(String.valueOf(startDate2), String.valueOf(startDate),"","Bs7yC3swLeNVwa2WyLsSXVL5XV6kVDd3Zpjq3Tycy"));
 | 
	
		
			
				|  |  |                      for (String ls:list){//循环审批id
 | 
	
		
			
				|  |  |                          Vacation vacation = WeixinVacationdetail(ls);
 | 
	
		
			
				|  |  |                          if (vacation!=null) {
 |