[後台] 修改判斷是否有3d

This commit is contained in:
dev02 2022-10-26 09:59:36 +08:00
parent e6843ee6f7
commit d9d0b520fc

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