|
@@ -94,7 +94,7 @@ public class EnvDeviceController {
|
|
return new Result(10001,"设备编码已存在!",false);
|
|
return new Result(10001,"设备编码已存在!",false);
|
|
}
|
|
}
|
|
if (deviceType == 1){
|
|
if (deviceType == 1){
|
|
- if (envDeviceService.count(new QueryWrapper<EnvDevice>().eq("unitId",unitId).eq("device_type",1)) != 0){
|
|
|
|
|
|
+ if (envDeviceService.count(new QueryWrapper<EnvDevice>().eq("unit_Id",unitId).eq("device_type",1)) != 0){
|
|
return new Result(10001,"栋舍已存在环控设备!",false);
|
|
return new Result(10001,"栋舍已存在环控设备!",false);
|
|
}
|
|
}
|
|
}
|
|
}
|