| 
					
				 | 
			
			
				@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMethod; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.RequestParam; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import org.springframework.web.bind.annotation.ResponseBody; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import javax.servlet.http.HttpServletRequest; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import javax.servlet.http.HttpServletResponse; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.io.IOException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.io.OutputStream; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -35,18 +36,6 @@ public class WlyyPatientDeviceController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @RequestMapping(value = "initial", method = RequestMethod.GET) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String listPageInit(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String currentid = getUID(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        Doctor doctor = doctorService.findDoctorByCode(currentid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String hospitalCode = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        if(doctor != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            hospitalCode = doctor.getHospital(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        request.setAttribute("hospitalCode",hospitalCode); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return "device/patientDevice_list"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -59,13 +48,24 @@ public class WlyyPatientDeviceController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "deviceSn",required = false) String deviceSn, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "userName",required = false) String userName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "doctorName",required = false) String doctorName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "hospitalCode",required = false) String hospitalCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "hospitalName",required = false) String hospitalName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "page") Integer page, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "rows") Integer pageSize){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            @RequestParam(value = "rows") Integer pageSize, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            HttpServletRequest req, HttpServletResponse resp){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String currentid = req.getSession().getAttribute("code").toString(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            System.out.println("doctorid:"+currentid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Doctor doctor = doctorService.findDoctorByCode(currentid); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            String hospitalCode = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(doctor != null){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                System.out.println("doctor-hospitalCode:"+doctor.getHospital()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                hospitalCode = doctor.getHospital(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            List<WlyyPatientDeviceVO> patientDevices = patientDeviceService.searchListNew(deviceName,categoryCode, deviceSn, userName, doctorName,hospitalName,hospitalCode,page, pageSize); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            Long totalcount = patientDeviceService.getCountSearchListNew(deviceName,categoryCode, deviceSn, userName, doctorName,hospitalName,hospitalCode); 
			 |