|  | @@ -32,6 +32,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  |  import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.annotation.Resource;
 | 
	
		
			
				|  |  | +import java.text.ParseException;
 | 
	
		
			
				|  |  |  import java.util.Date;
 | 
	
		
			
				|  |  |  import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -127,7 +128,7 @@ public class PatientController {
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 关闭订单
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  | -   /* @PostMapping("/delPayOrder")
 | 
	
		
			
				|  |  | +    @PostMapping("/delPayOrder")
 | 
	
		
			
				|  |  |      @TraceLog
 | 
	
		
			
				|  |  |      public ResultResponse delPayOrder(String orderNo,Long userId,String orderType) {
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -154,7 +155,7 @@ public class PatientController {
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          return ResultResponse.success();
 | 
	
		
			
				|  |  | -    }*/
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
	
		
			
				|  | @@ -182,7 +183,7 @@ public class PatientController {
 | 
	
		
			
				|  |  |      @PreAuthorize("@SSPermissionChecker.hasPermission('deal_apckage')")
 | 
	
		
			
				|  |  |      @Log(title = "不付费开通理疗功能")
 | 
	
		
			
				|  |  |      @PostMapping("/deal/package")
 | 
	
		
			
				|  |  | -    public ResultResponse dealPackage(@RequestBody DealPackageDto dealPackageDto){
 | 
	
		
			
				|  |  | +    public ResultResponse dealPackage(@RequestBody DealPackageDto dealPackageDto) throws ParseException {
 | 
	
		
			
				|  |  |          CurrentLoginUser currentUser = tokenUtil.getCurrentUser();
 | 
	
		
			
				|  |  |          if (!currentUser.getOrgCode().equals("system")) {
 | 
	
		
			
				|  |  |              SysOrg oryCodeSysOrg = sysOrgService.getOryCodeSysOrg(currentUser.getOrgCode());
 | 
	
	
		
			
				|  | @@ -200,5 +201,13 @@ public class PatientController {
 | 
	
		
			
				|  |  |          return ResultResponse.success(appUserService.resetPassWordSys(appUser));
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  | +     * 更换设备
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    @PostMapping("/updatePadNo")
 | 
	
		
			
				|  |  | +    @TraceLog
 | 
	
		
			
				|  |  | +    public ResultResponse updatePadNo(@RequestBody AppUser appUser) {
 | 
	
		
			
				|  |  | +        return ResultResponse.success(appUserService.updatePadNo(appUser));
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  }
 |