ExecutionHistory.go 418 B

12345678910111213141516
  1. package dao
  2. import (
  3. "gorm.io/gorm"
  4. )
  5. // ExecutionHistory ExecutionHistory
  6. // 执行流历史纪录
  7. type ExecutionHistory struct {
  8. Execution
  9. }
  10. // CopyExecutionToHistoryByProcInstIDTx CopyExecutionToHistoryByProcInstIDTx
  11. func CopyExecutionToHistoryByProcInstIDTx(procInstID int, tx *gorm.DB) error {
  12. return tx.Exec("insert into execution_history select * from execution where proc_inst_id=?", procInstID).Error
  13. }