| 
															
																@ -1770,11 +1770,21 @@ public class ImService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -1831,11 +1841,20 @@ public class ImService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			/*sql +=" and a.czrq >= '"+start_time+"'";*/ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		//咨询状态 
															 | 
															
															 | 
															
																		//咨询状态 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2130,11 +2149,20 @@ public class ImService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
											
												
													
														
															 | 
															
																@ -2195,11 +2223,19 @@ public class ImService { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(start_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= to_date('"+start_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq >= '"+start_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
															
															 | 
															
																		if(!StringUtils.isEmpty(end_time)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																			sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
															
															 | 
															
																 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			if("xm_ykyy_wx".equals(wxId)){ 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= to_date('"+end_time+"','YYYY-MM-DD HH24:MI:SS')"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			}else { 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																				sql +=" and a.czrq <= '"+end_time+"'"; 
															 | 
														
													
												
													
														
															| 
															 | 
															
																 
															 | 
															
															 | 
															
																			} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		} 
															 | 
															
															 | 
															
																		} 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		 
															 | 
															
															 | 
															
																		 
															 | 
														
													
												
													
														
															| 
															 | 
															
																		//咨询状态 
															 | 
															
															 | 
															
																		//咨询状态 
															 |