lanjianrong 4 tahun lalu
induk
melakukan
47cd9ba9e4
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      dao/approver_dao.go

+ 2 - 1
dao/approver_dao.go

@@ -487,7 +487,8 @@ func (d *ApproverDao) PassHandler(auditType string, id int, uid int, auditId int
 				return err
 			}
 			// 改变审批流程中的整改人id, 以及创建时间
-			_, 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, time.Now())
+			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)
 			if err != nil {
 				session.Rollback()
 				return err