| 
															
																@ -409,11 +409,11 @@ public class SurveyScreenResultService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public Map<String,Object> screenStatics(String doctor){ 
															 | 
															
															 | 
															
																    public Map<String,Object> screenStatics(String doctor){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Map<String,Object> resultMap = new HashedMap(); 
															 | 
															
															 | 
															
																        Map<String,Object> resultMap = new HashedMap(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String userSql = "SELECT DISTINCT(template_code) FROM wlyy_survey_screen_result WHERE doctor = '"+doctor+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String userSql = "SELECT DISTINCT(template_code) FROM wlyy_survey_screen_result WHERE doctor = '"+doctor+"' and source=1"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<String> userList = jdbcTemplate.queryForList(userSql,String.class); 
															 | 
															
															 | 
															
																        List<String> userList = jdbcTemplate.queryForList(userSql,String.class); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //使用筛查表数量 
															 | 
															
															 | 
															
																        //使用筛查表数量 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        resultMap.put("useTemplateCount",userList.size()); 
															 | 
															
															 | 
															
																        resultMap.put("useTemplateCount",userList.size()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String sql = "SELECT * FROM wlyy_survey_screen_result WHERE doctor='"+doctor+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String sql = "SELECT * FROM wlyy_survey_screen_result WHERE doctor='"+doctor+"' and source=1"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<SurveyScreenResult> surveyScreenResultList = jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(SurveyScreenResult.class)); 
															 | 
															
															 | 
															
																        List<SurveyScreenResult> surveyScreenResultList = jdbcTemplate.query(sql,new BeanPropertyRowMapper<>(SurveyScreenResult.class)); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        //下发问卷数量 
															 | 
															
															 | 
															
																        //下发问卷数量 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        resultMap.put("grantCount",surveyScreenResultList.size()); 
															 | 
															
															 | 
															
																        resultMap.put("grantCount",surveyScreenResultList.size()); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -767,7 +767,7 @@ public class SurveyScreenResultService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            json.put("keyword2", sdf.format(new Date())); 
															 | 
															
															 | 
															
																                            json.put("keyword2", sdf.format(new Date())); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            json.put("survey", wxTemplateCode+"_"+doctor); 
															 | 
															
															 | 
															
																                            json.put("survey", wxTemplateCode+"_"+doctor); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            json.put("toUser", c); 
															 | 
															
															 | 
															
																                            json.put("toUser", c); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            json.put("url","jkpg/html/start-survey.html?survey="+wxTemplateCode+"_"+doctor); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            json.put("url","jkpg/html/start-survey.html?survey="+wxTemplateCode+"&doctor="+doctor+"&toUser="+c+"&toName="+name); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																//                          String first = name + ",您好!为了给您提供更好的家庭医生健康服务,现有一份问卷需要您填写。"; 
															 | 
															
															 | 
															
																//                          String first = name + ",您好!为了给您提供更好的家庭医生健康服务,现有一份问卷需要您填写。"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            first = templateConfig.getFirst(); 
															 | 
															
															 | 
															
																                            first = templateConfig.getFirst(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            first = first.replace("key1",(name==null?"":name)); 
															 | 
															
															 | 
															
																                            first = first.replace("key1",(name==null?"":name)); 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -792,7 +792,7 @@ public class SurveyScreenResultService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                    if (StringUtils.isNotBlank(member.getOpenid())) { 
															 | 
															
															 | 
															
																                                    if (StringUtils.isNotBlank(member.getOpenid())) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        json.remove("toUser"); 
															 | 
															
															 | 
															
																                                        json.remove("toUser"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        json.put("toUser", member.getCode()); 
															 | 
															
															 | 
															
																                                        json.put("toUser", member.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        json.put("url","jkpg/html/start-survey.html?survey="+wxTemplateCode+"_"+doctor); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                                        json.put("url","jkpg/html/start-survey.html?survey="+wxTemplateCode+"&doctor="+doctor+"&toUser="+member.getCode()+"&toName="+member.getName()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        json.remove("first"); 
															 | 
															
															 | 
															
																                                        json.remove("first"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                        try { 
															 | 
															
															 | 
															
																                                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                            json.put("keyword1", keyword1); 
															 | 
															
															 | 
															
																                                            json.put("keyword1", keyword1); 
															 |