点巡检报表 设备维修复核

This commit is contained in:
2024-08-30 12:01:57 +08:00
parent 02a79e3d59
commit a2514a1354
14 changed files with 163 additions and 23 deletions

View File

@@ -313,8 +313,8 @@ namespace Tnb.EquipMgr
string executeUserId = dic["executeUserId"];
string repeat_user_id = dic["repeat_user_id"];
ToolMoldMaintainRecordH eqpSpotInsRecordH = await _repository.GetSingleAsync(x => x.id == id);
if (eqpSpotInsRecordH.status == "1")
{
// if (eqpSpotInsRecordH.status == "1")
// {
_ = await _repository.UpdateAsync(x => new ToolMoldMaintainRecordH()
{
execute_user_id = executeUserId,
@@ -323,11 +323,11 @@ namespace Tnb.EquipMgr
modify_time = DateTime.Now
}, x => x.id == id);
return "指派成功";
}
else
{
throw Oops.Bah("状态错误");
}
// }
// else
// {
// throw Oops.Bah("状态错误");
// }
}
}