| 
					
				 | 
			
			
				@ -126,13 +126,22 @@ public class SurveyEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    //=================调查问卷居民查询\答题 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @PostMapping(value = BaseHospitalRequestMapping.WlyySurvey.saveSurveyDept) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "模板-设置模板发送的科室") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ObjEnvelop saveSurveyDept(@ApiParam(name = "tempId", value = "模板实体json") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ObjEnvelop saveSurveyDept(@ApiParam(name = "tempId", value = "模板ID") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "tempId",required = true)String tempId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @ApiParam(name = "sdJsons", value = "部门与科室关系json") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "sdJsons",required = true)String sdJsons)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "sdJsons",required = false)String sdJsons)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(surveyService.saveSurveyDept(tempId,sdJsons)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @PostMapping(value = BaseHospitalRequestMapping.WlyySurvey.saveDeptSurvey) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "模板-设置科室发送的模板") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ObjEnvelop saveDeptSurvey(@ApiParam(name = "dept", value = "部门code") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "dept",required = true)String dept, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @ApiParam(name = "sdJsons", value = "部门与科室关系json") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "sdJsons",required = false)String sdJsons)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(surveyService.saveDeptSurvey(dept,sdJsons)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyySurvey.findSurveyByDept) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "模板-查询部门下发放的问卷") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ListEnvelop findSurveyByDept(@ApiParam(name = "dept", value = "科室") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -142,7 +151,7 @@ public class SurveyEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyySurvey.findDeptBySurvey) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "模板-查询模板下的科室") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ListEnvelop findDeptBySurvey(@ApiParam(name = "tempId", value = "模板实体json") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ListEnvelop findDeptBySurvey(@ApiParam(name = "tempId", value = "模板ID") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                        @RequestParam(value = "tempId",required = true)String tempId)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(surveyService.findDeptBySurvey(tempId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -165,5 +174,39 @@ public class SurveyEndpoint extends EnvelopRestEndpoint { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                  @RequestParam(value = "tempId",required = true)String tempId)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(surveyService.findAnswerBySurveyTempCode(patient,tempId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyySurvey.findSurveyTemplateResult) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "统计-查询问题情况") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public ObjEnvelop findSurveyTemplateResult(@ApiParam(name = "tempId", value = "模板ID") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                                @RequestParam(value = "tempId",required = true)String tempId)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return success(surveyService.findSurveyTemplateResult(tempId)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyySurvey.findQuestionInfoList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "统计-查询问题情况") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public MixEnvelop findQuestionInfoList(@ApiParam(name = "comment", value = "选项备注") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "comment",required = false) String comment, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @ApiParam(name = "content", value = "选项内容,问答题内容") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "content",required = false)String content, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @ApiParam(name = "tempQuestionCode", value = "问题code") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "tempQuestionCode",required = false)String tempQuestionCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @ApiParam(name = "tempOptionCode", value = "选项code") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "tempOptionCode",required = false)String tempOptionCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @ApiParam(name = "page", value = "第几页,1开始") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "page",required = true)Integer page, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @ApiParam(name = "size", value = "每页大小") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                           @RequestParam(value = "size",required = true)Integer size)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return surveyService.findQuestionInfoList(comment,content,tempQuestionCode,tempOptionCode,page, size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @GetMapping(value = BaseHospitalRequestMapping.WlyySurvey.findAnswerList) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    @ApiOperation(value = "统计-综合查询问题答案") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public MixEnvelop findAnswerList(@ApiParam(name = "title", value = "标题") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "title",required = false) String title, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @ApiParam(name = "page", value = "第几页,1开始") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "page",required = true)Integer page, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @ApiParam(name = "size", value = "每页大小") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                                     @RequestParam(value = "size",required = true)Integer size)throws Exception { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return surveyService.findAnswerList(title,page,size); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    //================= 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				} 
			 |