|
|
@@ -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);
|