微修格式
This commit is contained in:
parent
7c4b695b73
commit
03c48269ff
@ -1040,9 +1040,6 @@ namespace FrontendWebApi.ApiControllers
|
|||||||
return apiResult;
|
return apiResult;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (ofl.serial_number != null)
|
if (ofl.serial_number != null)
|
||||||
{
|
{
|
||||||
sWhere += $@" and opr.formId like '%{ofl.serial_number}%'";
|
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
|
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;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
orl = await backendRepository.GetAllAsync<Operation_Record>(sqlString);
|
orl = await backendRepository.GetAllAsync<Operation_Record>(sqlString);
|
||||||
int Finished = orl.Where(x => x.status_name == "完成").Count();
|
int Finished = orl.Where(x => x.status_name == "完成").Count();
|
||||||
int NotFinished = orl.Where(x => x.status_name == "未完成").Count();
|
int NotFinished = orl.Where(x => x.status_name == "未完成").Count();
|
||||||
|
|
||||||
object Status = new {finish= Finished, notfinish= NotFinished };
|
object Status = new {finish= Finished, notfinish= NotFinished };
|
||||||
|
|
||||||
apiResult.Code = "0000";
|
apiResult.Code = "0000";
|
||||||
apiResult.Data = Status;
|
apiResult.Data = Status;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user