src/main/kotlin/com/flightfeather/uav/domain/repository/SourceTraceRep.kt
@@ -27,7 +27,7 @@ fun insert(msgType: MsgType, obj: PollutedClue): Int { val stm = SourceTraceMsg().apply { deviceCode = obj.deviceCode factorName = obj.pollutedData?.factorName factorName = obj.pollutedData?.toFactorNames() exceptionType = obj.pollutedData?.exceptionType startTime = obj.pollutedData?.startTime endTime = obj.pollutedData?.endTime @@ -42,6 +42,14 @@ } } fun insertList(msgType: MsgType, objList: List<PollutedClue>): Int { var res = 0 objList.forEach { res += insert(msgType, it) } return res } /** * 插入线索信息 */