12345678910111213141516 |
- package dao
- import (
- "gorm.io/gorm"
- )
- // ExecutionHistory ExecutionHistory
- // 执行流历史纪录
- type ExecutionHistory struct {
- Execution
- }
- // CopyExecutionToHistoryByProcInstIDTx CopyExecutionToHistoryByProcInstIDTx
- func CopyExecutionToHistoryByProcInstIDTx(procInstID int, tx *gorm.DB) error {
- return tx.Exec("insert into execution_history select * from execution where proc_inst_id=?", procInstID).Error
- }
|