skyline há 7 meses atrás
pai
commit
ab4c0899de

+ 1 - 0
car-wash-service/src/main/java/com/kym/service/impl/WashDeviceServiceImpl.java

@@ -155,6 +155,7 @@ public class WashDeviceServiceImpl extends MyBaseServiceImpl<WashDeviceMapper, W
         CommUtil.assertsNonNulls(List.of(device.getDeviceName(), device.getStationId(), device.getProductKey()), "参数异常");
         Long count = lambdaQuery()
                 .eq(WashDevice::getStationId, device.getStationId())
+                .eq(WashDevice::getDeviceName, device.getDeviceName())
                 .eq(WashDevice::getProductKey, device.getProductKey()).count();
         CommUtil.asserts(count == 0, "设备已存在");
         save(device);