Просмотр исходного кода

fix(app):修复设备重复校验逻辑- 移除了设备编号的重复校验条件-保留了设备序列号、站点ID和设备类型的校验- 确保设备唯一性判断更加准确

SheepHy 5 дней назад
Родитель
Сommit
282447603b

+ 0 - 1
national-motion-module-system/national-motion-system-biz/src/main/java/org/jeecg/modules/system/app/controller/AppDeviceController.java

@@ -110,7 +110,6 @@ public class AppDeviceController extends JeecgController<AppDevice, IAppDeviceSe
 		appDevice.setOrgCode(appSite.getOrgCode());
 		if (AppDeviceService.getOne(Wrappers.<AppDevice>lambdaQuery()
 				.eq(AppDevice::getDeviceSerial, appDevice.getDeviceSerial())
-				.eq(AppDevice::getDeviceNo, appDevice.getDeviceNo())
 				.eq(AppDevice::getSiteId, appDevice.getSiteId())
 				.eq(AppDevice::getDeviceType, appDevice.getDeviceType())) != null) {
 			return Result.error("设备已存在!");