فهرست منبع

运行记录1219-运行记录日报设备查询优化4

yuanchao 1 هفته پیش
والد
کامیت
1d7f9a8d6b

+ 9 - 0
yudao-module-pms/yudao-module-pms-biz/src/main/java/cn/iocoder/yudao/module/pms/controller/admin/iotopeationfill/IotOpeationFillController.java

@@ -599,16 +599,25 @@ public class IotOpeationFillController {
         // 3. 批量执行(MyBatis批量操作)
         if (!insertList.isEmpty()) {
             TenantUtils.execute(1L, () -> {
+                for (IotDeviceRunLogDO logDO:insertList) {
+                    System.out.println(logDO);
+                }
                 iotOpeationFillService.batchInsertLogs(insertList); // 批量插入
             });
         }
         if (!updateList.isEmpty()) {
             TenantUtils.execute(1L, () -> {
+                for (IotDeviceRunLogDO logDO:updateList) {
+                    System.out.println(logDO);
+                }
                 iotOpeationFillService.batchUpdateLogs(updateList); // 批量更新普通日志
             });
         }
         if (!updateSumList.isEmpty()) {
             TenantUtils.execute(1L, () -> {
+                for (IotDeviceRunLogDO logDO:updateSumList) {
+                    System.out.println(logDO);
+                }
                 iotOpeationFillService.batchUpdateSumLogs(updateSumList); // 批量更新累计日志
             });
         }