This commit is contained in:
dev01 2022-10-26 10:04:50 +08:00
commit bb309d8613

View File

@ -646,7 +646,7 @@ namespace Backend.Controllers
{ {
var sqlString = @$"select v.id var sqlString = @$"select v.id
from building b from building b
join variable v on v.system_type = @system_type and system_key = N'3D' and v.deleted = 0 join variable v on v.system_type = @system_type and system_key = N'3D' and system_value = 'Y' and v.deleted = 0
where b.building_tag = @building_tag and (b.orgName_3D + b.saveName_3D) is not null;"; where b.building_tag = @building_tag and (b.orgName_3D + b.saveName_3D) is not null;";
KeyValue = await backendRepository.GetAllAsync<KeyValue>(sqlString, new { building_tag = post.building_tag, system_type = system_setting_type }); KeyValue = await backendRepository.GetAllAsync<KeyValue>(sqlString, new { building_tag = post.building_tag, system_type = system_setting_type });