|  | @@ -23,8 +23,10 @@ import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  | +import java.time.LocalDate;
 | 
	
		
			
				|  |  |  import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  | +import java.util.Map;
 | 
	
		
			
				|  |  |  import java.util.UUID;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /**
 | 
	
	
		
			
				|  | @@ -55,8 +57,8 @@ public class ReimburseRegisterService extends ServiceImpl<ReimburseRegisterMappe
 | 
	
		
			
				|  |  |          if (StringUtils.isNotEmpty(registration.getId())){
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |              ReimburseRegister report = registerMapper.getById(registration.getId());
 | 
	
		
			
				|  |  | -            registration.setCreateById(report.getCreateById());
 | 
	
		
			
				|  |  |              if (report != null){
 | 
	
		
			
				|  |  | +                registration.setCreateById(report.getCreateById());
 | 
	
		
			
				|  |  |                  return update(registration);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  |          }
 | 
	
	
		
			
				|  | @@ -209,7 +211,26 @@ public class ReimburseRegisterService extends ServiceImpl<ReimburseRegisterMappe
 | 
	
		
			
				|  |  |                          registrationService.updatePracticeStatus(report.getCreateById(),endTime);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                          //系统账号冻结
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +                        // 获取当前日期
 | 
	
		
			
				|  |  | +                        LocalDate currentDate = LocalDate.now();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        // 获取年、月、日
 | 
	
		
			
				|  |  | +                        int year = currentDate.getYear();
 | 
	
		
			
				|  |  | +                        int month = currentDate.getMonthValue();
 | 
	
		
			
				|  |  | +                        int day = currentDate.getDayOfMonth();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +                        //发送短信
 | 
	
		
			
				|  |  | +                        String randomCode = "你好" + report.getCreateName() + "!恭喜你完成在我司的实习,希望你今后工作生活顺利。系统将在" + year + "年"+ month + "月" + day + "日晚上12点冻结账号,请尽快" +
 | 
	
		
			
				|  |  | +                                "处理好手头的工作!";
 | 
	
		
			
				|  |  | +                        Map<String, Object> stringObjectMap = SpringUtil.getBean(IUserApi.class).sendRandomCodes(report.getMobilePhone(), randomCode);
 | 
	
		
			
				|  |  | +                        String statusCode = (String) stringObjectMap.get("statusCode");
 | 
	
		
			
				|  |  | +                        if (("000000").equals(statusCode)) {
 | 
	
		
			
				|  |  | +                            System.out.println("短信发送成功!");
 | 
	
		
			
				|  |  | +                        }else if(statusCode.equals("160040")){
 | 
	
		
			
				|  |  | +                            System.out.println("手机号获取验证码次数已达每日上限!");
 | 
	
		
			
				|  |  | +                        }else{
 | 
	
		
			
				|  |  | +                            System.out.println("短信发送失败,错误代码:101,请联系管理员!");
 | 
	
		
			
				|  |  | +                        }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                  }
 | 
	
		
			
				|  |  |              }
 |