...
|
...
|
@@ -32,7 +32,7 @@ func (l *SearchTableByModuleLogic) SearchTableByModule(req *types.SearchTableByM |
|
|
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
Token: req.Token,
|
|
|
TableTypes: []string{bytelib.MainTable, bytelib.SubTable, bytelib.SideTable},
|
|
|
Module: bytelib.ModuleDigitalCenter,
|
|
|
Module: bytelib.ModuleDigitalCenter | bytelib.ModuleChartTemplate, // TODO:字库更新完改为只查 bytelib.ModuleChartTemplate
|
|
|
})
|
|
|
if err != nil {
|
|
|
batchError.Add(err)
|
...
|
...
|
@@ -52,7 +52,7 @@ func (l *SearchTableByModuleLogic) SearchTableByModule(req *types.SearchTableByM |
|
|
}, func() {
|
|
|
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
Token: req.Token,
|
|
|
TableTypes: []string{bytelib.CalculateItem, bytelib.CalculateSet},
|
|
|
TableTypes: []string{bytelib.CalculateItem},
|
|
|
Module: bytelib.ModuleCalculateCenter,
|
|
|
ReturnGroupItem: true,
|
|
|
ExcludeTables: []int{0},
|
...
|
...
|
@@ -60,7 +60,19 @@ func (l *SearchTableByModuleLogic) SearchTableByModule(req *types.SearchTableByM |
|
|
if err != nil {
|
|
|
batchError.Add(err)
|
|
|
}
|
|
|
result["计算模块"] = newList(list)
|
|
|
result["计算项"] = newList(list)
|
|
|
}, func() {
|
|
|
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
|
|
|
Token: req.Token,
|
|
|
TableTypes: []string{bytelib.CalculateSet},
|
|
|
Module: bytelib.ModuleCalculateCenter,
|
|
|
ReturnGroupItem: true,
|
|
|
ExcludeTables: []int{0},
|
|
|
})
|
|
|
if err != nil {
|
|
|
batchError.Add(err)
|
|
|
}
|
|
|
result["计算集"] = newList(list)
|
|
|
})
|
|
|
if err = batchError.Err(); err != nil {
|
|
|
logx.Error(err)
|
...
|
...
|
|