微修格式
This commit is contained in:
parent
03c48269ff
commit
6bc6493cd9
@ -1020,9 +1020,8 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 維修/保養
|
#region 維修/保養
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 維修/保養 列表(work_type)
|
/// 首頁 取得 已完成1 未完成0 總工單數
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="ofl"></param>
|
/// <param name="ofl"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
@ -1047,9 +1046,9 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
var sqlString = $@"select distinct(error_code) ,opr.status, concat(d.device_floor_tag, ' ', d.full_name) as device_name, ui.full_name as user_full_name
|
var sqlString = $@"select distinct(error_code) ,opr.status, concat(d.device_floor_tag, ' ', d.full_name) as device_name, ui.full_name as user_full_name
|
||||||
from operation_record opr
|
from operation_record opr
|
||||||
left join device d on opr.fix_do_code = d.device_number and d.deleted = 0 and d.device_area_tag = SUBSTRING_INDEX(opr.fix_do_code, '_', 1)
|
left join device d on opr.fix_do_code = d.device_number and d.deleted = 0 and d.device_area_tag = SUBSTRING_INDEX(opr.fix_do_code, '_', 1)
|
||||||
and d.device_building_tag = SUBSTRING_INDEX(SUBSTRING_INDEX(fix_do_code, '_', 2), '_', -1)
|
and d.device_building_tag = SUBSTRING_INDEX(SUBSTRING_INDEX(fix_do_code, '_', 2), '_', -1)
|
||||||
and d.device_floor_tag = SUBSTRING_INDEX(SUBSTRING_INDEX(fix_do_code, '_', 5), '_', -1)
|
and d.device_floor_tag = SUBSTRING_INDEX(SUBSTRING_INDEX(fix_do_code, '_', 5), '_', -1)
|
||||||
and d.device_system_tag = opr.device_system_category_layer2 and d.device_name_tag = opr.device_system_category_layer3
|
and d.device_system_tag = opr.device_system_category_layer2 and d.device_name_tag = opr.device_system_category_layer3
|
||||||
left join userinfo ui on opr.work_person_id = ui.userinfo_guid and ui.deleted = 0
|
left join userinfo ui on opr.work_person_id = ui.userinfo_guid and ui.deleted = 0
|
||||||
where opr.deleted = 0 and opr.work_type = 2" + sWhere;
|
where opr.deleted = 0 and opr.work_type = 2" + sWhere;
|
||||||
|
|
||||||
@ -1072,10 +1071,6 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
|
|
||||||
return apiResult;
|
return apiResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 維修/保養 列表(work_type)
|
/// 維修/保養 列表(work_type)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user