lanjianrong 4 년 전
부모
커밋
613ab92464
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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, 以及创建时间
 			// 改变审批流程中的整改人id, 以及创建时间
 			create_time := time.Now().Format(conf.SysTimeform)
 			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 {
 			if err != nil {
 				session.Rollback()
 				session.Rollback()
 				return err
 				return err
@@ -629,7 +629,7 @@ func (d *ApproverDao) PassHandler(auditType string, id int, uid int, auditId int
 			}
 			}
 			// 改变审批流程中的整改人id
 			// 改变审批流程中的整改人id
 			create_time := time.Now().Format(conf.SysTimeform)
 			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 {
 			if err != nil {
 				session.Rollback()
 				session.Rollback()
 				return err
 				return err