点巡检报表 设备维修复核
This commit is contained in:
@@ -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("状态错误");
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user