Prechádzať zdrojové kódy

fix:
修改了一些bug

18339543638 1 rok pred
rodič
commit
553a17d3a3

+ 1 - 1
nb-service-api/web-service-api/src/main/java/com/nb/web/api/enums/DeviceAlarmEnum.java

@@ -30,7 +30,7 @@ public enum DeviceAlarmEnum  implements IEnum<Integer> {
     Limit(5,"极限报警"),
     Finished(6,"输液结束"),
     LowBattery(7,"电量耗尽报警"),
-//    OutOfControl(8,"电机失控报警"),
+    OutOfControl(8,"电机失控报警"),
     Machine(9,"机械故障"),;
 
 

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

@@ -594,7 +594,10 @@
             <if test="query.warnAnalgesicPoor == true">and warn_analgesic_poor=1 </if>
             <if test="query.warnLowBattery == true"> and warn_low_battery=1 </if>
             <if test="query.warnFlow !=null">
-                and warn_flow= #{query.warnFlow}
+                and warn_flow in
+                <foreach item="warn" index="index" collection="query.warnFlow" open="(" separator="," close=")">
+                    #{warn, jdbcType=VARCHAR}
+                </foreach>
             </if>
             <if test="query.deviceRunState != null">
                 and run_state = #{query.deviceRunState}