|
@ -749,7 +749,6 @@ public class YkyyInternetService extends BaseJpaService<InternetUpErrorLogDO, In
|
|
"JOIN topics t ON t.id = b.consult\n" +
|
|
"JOIN topics t ON t.id = b.consult\n" +
|
|
"WHERE\n" +
|
|
"WHERE\n" +
|
|
"\ta.id = b.consult\n" +
|
|
"\ta.id = b.consult\n" +
|
|
"AND a.symptoms <> ''\n" +
|
|
|
|
"AND a.symptoms IS NOT NULL AND b.status=1";
|
|
"AND a.symptoms IS NOT NULL AND b.status=1";
|
|
|
|
|
|
if(StringUtils.isNotBlank(startDate)){
|
|
if(StringUtils.isNotBlank(startDate)){
|
|
@ -767,8 +766,8 @@ public class YkyyInternetService extends BaseJpaService<InternetUpErrorLogDO, In
|
|
total = list.size();
|
|
total = list.size();
|
|
for(int i=0; i<total; i++) {
|
|
for(int i=0; i<total; i++) {
|
|
LinkedCaseInsensitiveMap info = (LinkedCaseInsensitiveMap) list.get(i);
|
|
LinkedCaseInsensitiveMap info = (LinkedCaseInsensitiveMap) list.get(i);
|
|
String sqlMessage = "SELECT m.sender_name AS \"sender_name\", m.`timestamp` AS \"timestamp\", m.content AS \"content\", t.id AS \"id\" FROM im_internet_hospital.topics t " +
|
|
|
|
"JOIN im_internet_hospital.muc_messages m ON m.session_id = t.session_id AND m.`timestamp` >= t.create_time AND m.`timestamp` <= t.end_time " +
|
|
|
|
|
|
String sqlMessage = "SELECT m.sender_name AS \"sender_name\", m.`timestamp` AS \"timestamp\", m.content AS \"content\", t.id AS \"id\" FROM topics t " +
|
|
|
|
"JOIN muc_messages m ON m.session_id = t.session_id AND m.`timestamp` >= t.create_time AND m.`timestamp` <= t.end_time " +
|
|
"AND t.id = '"+info.get("consult").toString()+"' ORDER BY m.`timestamp` ASC";
|
|
"AND t.id = '"+info.get("consult").toString()+"' ORDER BY m.`timestamp` ASC";
|
|
List<Map<String,Object>> list1 = jdbcTemplate.queryForList(sqlMessage);
|
|
List<Map<String,Object>> list1 = jdbcTemplate.queryForList(sqlMessage);
|
|
String content="";
|
|
String content="";
|