lanjianrong 4 years ago
parent
commit
613ab92464
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dao/approver_dao.go

+ 2 - 2
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` = ? , `create_time` = ? where `bidsection_id` = ? and `project_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ?limit 1", auditId, create_time, auditor.BidsectionId, auditor.ProjectId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1)
+			_, err = session.Exec("update `cm_approver` set `audit_id` = ? , `create_time` = ? where `bidsection_id` = ? and `project_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ? limit 1", auditId, create_time, auditor.BidsectionId, auditor.ProjectId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1)
 			if err != nil {
 				session.Rollback()
 				return err
@@ -629,7 +629,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` = ?, `create_time` = ? where `bidsection_id` = ? and `project_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ?", auditId, create_time, auditor.BidsectionId, auditor.ProjectId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1)
+			_, err = session.Exec("update `cm_approver` set `audit_id` = ?, `create_time` = ? where `bidsection_id` = ? and `project_id` = ? and `data_type` = ? and `data_id` = ? and `audit_order` = ? limit 1", auditId, create_time, auditor.BidsectionId, auditor.ProjectId, auditor.DataType, auditor.DataId, auditor.AuditOrder+1)
 			if err != nil {
 				session.Rollback()
 				return err