feat: 工单流程新增ai任务,支持退回、数据导出支持excel、其他优化等

This commit is contained in:
meilin.huang
2025-12-08 20:50:16 +08:00
parent 3017460cc7
commit 5598ddf93c
69 changed files with 3376 additions and 226 deletions

View File

@@ -96,7 +96,11 @@ func (p *ProcinstTask) RejectTask(rc *req.Ctx) {
func (p *ProcinstTask) BackTask(rc *req.Ctx) {
auditForm := req.BindJson[*form.ProcinstTaskAudit](rc)
rc.ReqParam = auditForm
biz.ErrIsNil(p.procinstTaskApp.BackTask(rc.MetaCtx, dto.UserTaskOp{TaskId: auditForm.Id, Remark: auditForm.Remark}))
la := rc.GetLoginAccount()
op := dto.UserTaskOp{TaskId: auditForm.Id, Remark: auditForm.Remark, Handler: la.Username}
op.Candidate = p.GetLaCandidates(la)
biz.ErrIsNil(p.procinstTaskApp.BackTask(rc.MetaCtx, op))
}
func (p *ProcinstTask) GetLaCandidates(la *model.LoginAccount) []string {