Procházet zdrojové kódy

拓元算法设备列表

谭斌 před 1 rokem
rodič
revize
3b49f7e9fa

+ 2 - 2
device-api-service/src/main/java/com/xy/service/DeviceInfoServiceImpl.java

@@ -218,11 +218,11 @@ public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceI
         Integer thirdStatus = dto.getThirdStatus();
         List<String> statusList = new ArrayList<>();
         //1待审核,2已审核
-        if (thirdStatus != null && thirdStatus == 1) {
+        if (thirdStatus != null && thirdStatus.intValue() == 1) {
             statusList = CollUtil.newArrayList("1000", "2000", "3000", "5000");
         }
         // 2已审核  4000: 设备登记成功
-        if (thirdStatus != null && thirdStatus == 2) {
+        if (thirdStatus != null && thirdStatus.intValue() == 2) {
             statusList.add("4000");
         }
         LambdaQueryWrapper<DeviceInfo> lqw = new MybatisPlusQuery().eqWrapper(dto, DeviceInfo.class)