This commit is contained in:
dev02 2022-10-17 17:45:27 +08:00
parent 8b547da780
commit c480e9ef3d
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ namespace Backend.Controllers
try
{
var sqlString = @$"select building_guid as Value, full_name as Name from building a where a.deleted = 0 and a.status = 0 ORDER BY A.priority ASC, A.created_at DESC";
var sqlString = @$"select building_guid as Value, full_name as Name from building a where a.deleted = 0 and a.status = 0 ORDER BY a.priority ASC, a.created_at DESC";
KeyValue = await backendRepository.GetAllAsync<KeyValue>(sqlString);
apiResult.Code = "0000";

View File

@ -179,7 +179,7 @@ namespace Backend.Controllers
dk.device_close_flashing,
dk.device_error_flashing,
(SELECT
STRING_AGG( ISNULL(system_key, ' '), ',')
GROUP_CONCAT( IFNULL(system_key, ' '), ',')
FROM device_disaster dd
JOIN variable v ON v.deleted = 0 AND v.system_type = 'disaster' AND v.system_value = dd.device_system_value
WHERE dd.device_guid = d.device_guid