From 6bc6493cd9e36db1f5c919c79a81005601f22769 Mon Sep 17 00:00:00 2001 From: "mjmUser\\mjmTech" Date: Fri, 24 Feb 2023 14:20:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=AE=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ApiControllers/OperationController.cs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/FrontendWebApi/ApiControllers/OperationController.cs b/FrontendWebApi/ApiControllers/OperationController.cs index 3a805de..85d7b12 100644 --- a/FrontendWebApi/ApiControllers/OperationController.cs +++ b/FrontendWebApi/ApiControllers/OperationController.cs @@ -1020,9 +1020,8 @@ namespace FrontendWebApi.ApiControllers #endregion #region 維修/保養 - /// - /// 維修/保養 列表(work_type) + /// 首頁 取得 已完成1 未完成0 總工單數 /// /// /// @@ -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 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) - 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_system_tag = opr.device_system_category_layer2 and d.device_name_tag = opr.device_system_category_layer3 + 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_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 where opr.deleted = 0 and opr.work_type = 2" + sWhere; @@ -1072,10 +1071,6 @@ namespace FrontendWebApi.ApiControllers return apiResult; } - - - - /// /// 維修/保養 列表(work_type) ///