fix:修复bug

This commit is contained in:
henry
2021-11-25 13:53:18 +08:00
parent c6b37755b9
commit a90a7880de
4 changed files with 47 additions and 21 deletions

View File

@ -510,6 +510,10 @@ func (c *Instance) Examine(id uint64, status int, remark string, isAssist int, p
if mWorkProgress.Remark == "" {
mWorkProgress.Remark = "审批通过"
if _status == model2.WorkProgressStatusForRefuse {
mWorkProgress.Remark = "审批拒绝"
}
}
if err = model2.Create(mWorkProgress.WorkProgress, tx); err != nil {
return err