소스 검색

优化sql语句

18339543638 1 년 전
부모
커밋
56d90412eb

+ 1 - 1
nb-service/web-service/src/main/java/com/nb/web/service/log/config/LogEventListenerConfig.java

@@ -52,7 +52,7 @@ public class LogEventListenerConfig {
         InnerLog4j2 log = logEvent.getLog();
         if(Level.ERROR.levelStr.equals(log.getLevel())){
             String exceptionStack = log.getExceptionStack();
-            if(StrUtil.containsAny(exceptionStack,"NotLoginException","Broken pipe","CustomException: ","HttpMessageNotReadableException")){
+            if(StrUtil.containsAny(exceptionStack,"NotLoginException","Broken pipe","CustomException: ","HttpMessageNotReadableException","Stream is closed")){
                 return;
             }
             SysRunningLog sysLog = BeanUtil.copyProperties(log, SysRunningLog.class);

+ 1 - 1
nb-service/web-service/src/main/resources/mapper/bus/BusInfusionHistoryMapper.xml

@@ -489,7 +489,7 @@
         </where>
         ) as p on p.id = c.patient_id
         join (select * from bus_device_history) as h on h.infusion_id=i.id
-        group by i.id,c.id,DATE_FORMAT(h.upload_time,'%Y-%m-%d')
+        group by i.id,c.id,h.upload_time
     </select>