Explorar o código

[26110601] 设备导出编译错误修复: 序号index由int改long, int无法自动装箱为VO构造入参Long导致Unresolved compilation problem(export报500)

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
taosj hai 14 horas
pai
achega
b8134414bd

+ 1 - 1
forecast-backend-server/src/main/java/com/ufo/project/config/controller/ConfigDeviceController.java

@@ -66,7 +66,7 @@ public class ConfigDeviceController extends BaseController
         List<ConfigDevice> list = configDeviceService.selectConfigDeviceList(configDevice);
         fillNames(list);
         List<ConfigDeviceExportVo> exportList = new ArrayList<>();
-        int index = 1;
+        long index = 1;
         for (ConfigDevice device : list)
         {
             exportList.add(new ConfigDeviceExportVo(index++, device.getName(), device.getChannelName(), device.getStationName(), tpLabel(device.getTp()), device.getBrand(), device.getModel(), device.getSerialNumber(), statusLabel(device.getStatus()), formatDate(device.getInstallDate())));