mirror of
https://gitee.com/dromara/mayfly-go
synced 2026-02-04 11:55:48 +08:00
refactor: base.repo与app重构优化
This commit is contained in:
@@ -19,5 +19,5 @@ func (p *procdefImpl) GetPageList(condition *entity.Procdef, pageParam *model.Pa
|
||||
qd := model.NewCond().
|
||||
Like("name", condition.Name).
|
||||
Like("def_key", condition.DefKey)
|
||||
return p.PageByCond(qd, pageParam, toEntity)
|
||||
return p.PageByCondToAny(qd, pageParam, toEntity)
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ func newProcinstRepo() repository.Procinst {
|
||||
|
||||
func (p *procinstImpl) GetPageList(condition *entity.ProcinstQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error) {
|
||||
qd := model.NewModelCond(condition)
|
||||
return p.PageByCond(qd, pageParam, toEntity)
|
||||
return p.PageByCondToAny(qd, pageParam, toEntity)
|
||||
}
|
||||
|
||||
//-----------procinst task--------------
|
||||
@@ -32,5 +32,5 @@ func newProcinstTaskRepo() repository.ProcinstTask {
|
||||
|
||||
func (p *procinstTaskImpl) GetPageList(condition *entity.ProcinstTaskQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error) {
|
||||
qd := model.NewModelCond(condition)
|
||||
return p.PageByCond(qd, pageParam, toEntity)
|
||||
return p.PageByCondToAny(qd, pageParam, toEntity)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user