lanjianrong 4 rokov pred
rodič
commit
09f1e7be67
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      dao/approver_dao.go

+ 1 - 1
dao/approver_dao.go

@@ -488,7 +488,7 @@ func (d *ApproverDao) PassHandler(auditType string, id int, uid int, auditId int
 			}
 			// 改变审批流程中的整改人id, 以及创建时间
 			create_time := time.Now().Format(conf.SysTimeform)
-			_, err = session.Exec("update `cm_approver` set `audit_id` = ? where `bidsection_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ? create_time = ?", auditId, auditor.BidsectionId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1, create_time)
+			_, err = session.Exec("update `cm_approver` set `audit_id` = ? where `bidsection_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ? and create_time = ?", auditId, auditor.BidsectionId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1, create_time)
 			if err != nil {
 				session.Rollback()
 				return err