|  | @ -79,7 +79,7 @@ public class DoctorDeviceController extends BaseController {
 | 
	
		
			
				|  |  | 	@RequestMapping(value = "DeletePatientDevice",method = RequestMethod.DELETE)
 | 
	
		
			
				|  |  | 	@ResponseBody
 | 
	
		
			
				|  |  | 	public String delete(@ApiParam(name="id",value="删除设备关联ID")
 | 
	
		
			
				|  |  | 						  @RequestParam(value="id",required = true) String id) {
 | 
	
		
			
				|  |  | 						 @RequestParam(value="id",required = true) String id) {
 | 
	
		
			
				|  |  | 		try {
 | 
	
		
			
				|  |  | 			PatientDevice pd = patientDeviceService.findById(id);
 | 
	
		
			
				|  |  | 			if(pd!=null)
 | 
	
	
		
			
				|  | @ -98,4 +98,36 @@ public class DoctorDeviceController extends BaseController {
 | 
	
		
			
				|  |  | 			return invalidUserException(ex, -1,ex.getMessage());
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 	@ApiOperation("获取患者设备信息")
 | 
	
		
			
				|  |  | 	@RequestMapping(value = "PatientDeviceInfo",method = RequestMethod.GET)
 | 
	
		
			
				|  |  | 	@ResponseBody
 | 
	
		
			
				|  |  | 	public String getPatientDeviceInfo(@ApiParam(name="id",value="患者设备ID",defaultValue = "34")
 | 
	
		
			
				|  |  | 									   @RequestParam(value="id",required = true) String id) {
 | 
	
		
			
				|  |  | 		try {
 | 
	
		
			
				|  |  | 			PatientDevice device = patientDeviceService.findById(id);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 			return write(200, "查询成功", "data", device);
 | 
	
		
			
				|  |  | 		} catch (Exception ex) {
 | 
	
		
			
				|  |  | 			return invalidUserException(ex, -1, ex.getMessage());
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 	@ApiOperation("通过sn码获取设备绑定情况")
 | 
	
		
			
				|  |  | 	@RequestMapping(value = "PatientDeviceIdcard",method = RequestMethod.GET)
 | 
	
		
			
				|  |  | 	@ResponseBody
 | 
	
		
			
				|  |  | 	public String getDeviceUser(
 | 
	
		
			
				|  |  | 			@ApiParam(name="patient",value="患者code",defaultValue = "915cca0a-5b1d-11e6-8344-fa163e8aee56")
 | 
	
		
			
				|  |  | 			@RequestParam(value="patient",required = true) String patient,
 | 
	
		
			
				|  |  | 			@ApiParam(name="type",value="设备类型",defaultValue = "1")
 | 
	
		
			
				|  |  | 			@RequestParam(value="type",required = true) String type,
 | 
	
		
			
				|  |  | 			@ApiParam(name="device_sn",value="设备SN码",defaultValue = "15L000002")
 | 
	
		
			
				|  |  | 			@RequestParam(value="device_sn",required = true) String deviceSn) {
 | 
	
		
			
				|  |  | 		try {
 | 
	
		
			
				|  |  | 			List<Map<String,String>> list = patientDeviceService.getDeviceUser(patient,deviceSn,type);
 | 
	
		
			
				|  |  | 			return write(200, "获取设备绑定信息成功!", "data",list);
 | 
	
		
			
				|  |  | 		} catch (Exception ex) {
 | 
	
		
			
				|  |  | 			return invalidUserException(ex, -1, ex.getMessage());
 | 
	
		
			
				|  |  | 		}
 | 
	
		
			
				|  |  | 	}
 | 
	
		
			
				|  |  | }
 |