| 
															
																@ -23,6 +23,7 @@ import org.apache.commons.lang3.StringUtils; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.hibernate.type.descriptor.sql.JdbcTypeFamilyInformation; 
															 | 
															
															 | 
															
																import org.hibernate.type.descriptor.sql.JdbcTypeFamilyInformation; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.json.JSONArray; 
															 | 
															
															 | 
															
																import org.json.JSONArray; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.json.JSONObject; 
															 | 
															
															 | 
															
																import org.json.JSONObject; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																import org.springframework.beans.factory.ObjectFactory; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.beans.factory.annotation.Autowired; 
															 | 
															
															 | 
															
																import org.springframework.beans.factory.annotation.Autowired; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.data.redis.core.StringRedisTemplate; 
															 | 
															
															 | 
															
																import org.springframework.data.redis.core.StringRedisTemplate; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																import org.springframework.jdbc.core.JdbcTemplate; 
															 | 
															
															 | 
															
																import org.springframework.jdbc.core.JdbcTemplate; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -173,6 +174,18 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return json; 
															 | 
															
															 | 
															
																        return json; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -192,7 +205,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            throw new Exception("doctor info can not find"); 
															 | 
															
															 | 
															
																            throw new Exception("doctor info can not find"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Map<String, JSONObject> result = new HashMap<>(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        Map<String, JSONObject> result = new TreeMap<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> signList = new ArrayList<>(); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> signList = new ArrayList<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        int start = page * pagesize; 
															 | 
															
															 | 
															
																        int start = page * pagesize; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String sql = ""; 
															 | 
															
															 | 
															
																        String sql = ""; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -227,7 +240,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                throw new Exception("label is not exist"); 
															 | 
															
															 | 
															
																                throw new Exception("label is not exist"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            sql += " order by openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            args = new Object[]{doctor, doctor, teamCode}; 
															 | 
															
															 | 
															
																            args = new Object[]{doctor, doctor, teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } else { 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if (labelCode.equals("0")) { 
															 | 
															
															 | 
															
																            if (labelCode.equals("0")) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -242,7 +255,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    t2.patient is null " + 
															 | 
															
															 | 
															
																                        "    t2.patient is null " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND (t1.doctor = ? or t1.doctor_health = ?) " + 
															 | 
															
															 | 
															
																                        "    AND (t1.doctor = ? or t1.doctor_health = ?) " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
															
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.admin_team_code = ? "; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        "    AND t1.admin_team_code = ? order by t1.openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{labelType, doctor, doctor, teamCode}; 
															 | 
															
															 | 
															
																                args = new Object[]{labelType, doctor, doctor, teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -258,7 +271,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.patient = t2.patient " + 
															 | 
															
															 | 
															
																                        "    AND t1.patient = t2.patient " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND (t1.doctor = ? or t1.doctor_health = ?)" + 
															 | 
															
															 | 
															
																                        "    AND (t1.doctor = ? or t1.doctor_health = ?)" + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
															
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.admin_team_code = ? "; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        "    AND t1.admin_team_code = ? order by t1.openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{labelCode, labelType, doctor, doctor, teamCode}; 
															 | 
															
															 | 
															
																                args = new Object[]{labelCode, labelType, doctor, doctor, teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -302,6 +315,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -361,6 +385,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                //json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                //json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -434,6 +469,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -506,6 +552,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -665,6 +722,23 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        return count; 
															 | 
															
															 | 
															
																        return count; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    } 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * 获取团队签约人数 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @param teamCode 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @return 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     * @throws Exception 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    public int getPatientFocusAmountByTeam(Long teamCode) throws Exception { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        String sql = "select count(distinct patient) count from wlyy_sign_family where admin_team_code = ? and status > 0 and length(trim(ifnull(openid,''))) > 1"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        List<Map<String, Object>> count = jdbcTemplate.queryForList(sql, new Object[]{teamCode}); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        if (count != null && count.size() > 0 && count.get(0).containsKey("count")) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            return Integer.valueOf(String.valueOf(count.get(0).get("count"))); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            return 0; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    /** 
															 | 
															
															 | 
															
																    /** 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 查询某个标签类型的所有标签居民数统计,或者所有类型 
															 | 
															
															 | 
															
																     * 查询某个标签类型的所有标签居民数统计,或者所有类型 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     * 
															 | 
															
															 | 
															
																     * 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1152,7 +1226,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if (StringUtils.isNotEmpty(labelCode)) { 
															 | 
															
															 | 
															
																            if (StringUtils.isNotEmpty(labelCode)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{doctor, doctor, labelCode, labelType, "%" + filter + "%"}; 
															 | 
															
															 | 
															
																                args = new Object[]{doctor, doctor, labelCode, labelType, "%" + filter + "%"}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{doctor, doctor, "%" + filter  + "%"}; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                args = new Object[]{doctor, doctor, "%" + filter + "%"}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } else { 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            sql = "select " + 
															 | 
															
															 | 
															
																            sql = "select " + 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1220,6 +1294,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1302,6 +1387,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1662,6 +1758,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1741,6 +1848,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1819,6 +1937,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1884,6 +2013,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1906,7 +2046,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																     */ 
															 | 
															
															 | 
															
																     */ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																    public JSONArray getPatientByTeamCodeExitDoctor(long teamCode, String labelCode, String labelType, int page, int pagesize) throws Exception { 
															 | 
															
															 | 
															
																    public JSONArray getPatientByTeamCodeExitDoctor(long teamCode, String labelCode, String labelType, int page, int pagesize) throws Exception { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        Map<String, JSONObject> result = new HashMap<>(); 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																        Map<String, JSONObject> result = new TreeMap<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        List<Map<String, Object>> signList = new ArrayList<>(); 
															 | 
															
															 | 
															
																        List<Map<String, Object>> signList = new ArrayList<>(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        int start = page * pagesize; 
															 | 
															
															 | 
															
																        int start = page * pagesize; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        String sql = ""; 
															 | 
															
															 | 
															
																        String sql = ""; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1941,7 +2081,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                throw new Exception("label is not exist"); 
															 | 
															
															 | 
															
																                throw new Exception("label is not exist"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																            sql += " order by openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            args = new Object[]{teamCode}; 
															 | 
															
															 | 
															
																            args = new Object[]{teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																        } else { 
															 | 
															
															 | 
															
																        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            if (labelCode.equals("0")) { 
															 | 
															
															 | 
															
																            if (labelCode.equals("0")) { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1955,7 +2095,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        " WHERE " + 
															 | 
															
															 | 
															
																                        " WHERE " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    t2.patient is null " + 
															 | 
															
															 | 
															
																                        "    t2.patient is null " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
															
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.admin_team_code = ? "; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        "    AND t1.admin_team_code = ? order by t1.openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{teamCode, labelType, teamCode}; 
															 | 
															
															 | 
															
																                args = new Object[]{teamCode, labelType, teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } else { 
															 | 
															
															 | 
															
																            } else { 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1970,7 +2110,7 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t2.status = 1 " + 
															 | 
															
															 | 
															
																                        "    AND t2.status = 1 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.patient = t2.patient " + 
															 | 
															
															 | 
															
																                        "    AND t1.patient = t2.patient " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
															
															 | 
															
																                        "    AND t1.status > 0 " + 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        "    AND t1.admin_team_code = ? "; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        "    AND t1.admin_team_code = ? order by t1.openid desc "; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                args = new Object[]{labelCode, labelType, teamCode}; 
															 | 
															
															 | 
															
																                args = new Object[]{labelCode, labelType, teamCode}; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																            } 
															 | 
															
															 | 
															
																            } 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2015,6 +2155,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
															
															 | 
															
																                                jsonP.put("expensesRemindStatus", new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                            } 
															 | 
															
															 | 
															
																                            } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                        } 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                            jsonP.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                        } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    } 
															 | 
															
															 | 
															
																                    } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    continue; 
															 | 
															
															 | 
															
																                    continue; 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2074,6 +2225,17 @@ public class SignPatientLabelInfoService extends BaseService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    // 缴费情况 
															 | 
															
															 | 
															
																                    // 缴费情况 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
															
															 | 
															
																                    json.put("expensesStatus", "1"); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                } 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                String epTime = ""; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                try { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    epTime = redisTemplate.opsForValue().get("wechat:focus:remind:" + p.getCode()); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } catch (Exception e) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    e.printStackTrace(); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                if (StringUtils.isEmpty(epTime)) { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind", 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                    json.put("wechatFocusRemind",  new SimpleDateFormat("yyyy-MM-dd").format(new Date()).equals(epTime) ? 1 : 0); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																                } 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                // 患者标签 
															 | 
															
															 | 
															
																                // 患者标签 
															 | 
														
													
												
													
														
															| 
															 | 
															
																                //json.put("labels", labels == null ? "" : labels); 
															 | 
															
															 | 
															
																                //json.put("labels", labels == null ? "" : labels); 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 |