From 03c48269ff917373be57f033e9e943510db466ef Mon Sep 17 00:00:00 2001 From: "mjmUser\\mjmTech" Date: Fri, 24 Feb 2023 14:18:08 +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 --- FrontendWebApi/ApiControllers/OperationController.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/FrontendWebApi/ApiControllers/OperationController.cs b/FrontendWebApi/ApiControllers/OperationController.cs index 58e07a2..3a805de 100644 --- a/FrontendWebApi/ApiControllers/OperationController.cs +++ b/FrontendWebApi/ApiControllers/OperationController.cs @@ -1040,9 +1040,6 @@ namespace FrontendWebApi.ApiControllers return apiResult; } - - - if (ofl.serial_number != null) { sWhere += $@" and opr.formId like '%{ofl.serial_number}%'"; @@ -1056,13 +1053,11 @@ namespace FrontendWebApi.ApiControllers 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; - - orl = await backendRepository.GetAllAsync(sqlString); int Finished = orl.Where(x => x.status_name == "完成").Count(); int NotFinished = orl.Where(x => x.status_name == "未完成").Count(); - object Status = new {finish= Finished, notfinish= NotFinished }; + apiResult.Code = "0000"; apiResult.Data = Status; }