作者 yangfu

fix bug name duplicate

... ... @@ -5,7 +5,7 @@ Verbose: true
HostName: http://sumifcc-bchart-dev.sumifcc.com
Log:
Mode: file
#Mode: file
Encoding: plain
Level: debug # info
MaxSize: 1 # 2MB
... ...
... ... @@ -39,28 +39,28 @@ func (l *SearchTableByModuleLogic) SearchTableByModule(req *types.SearchTableByM
}
result["导入模块"] = newList(list)
}, func() {
//list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
// Token: req.Token,
// TableTypes: []string{bytelib.SchemaTable},
// Module: bytelib.ModuleQuerySetCenter,
// ReturnGroupItem: true,
//})
//if err != nil {
// batchError.Add(err)
//}
//result["拆解模块"] = newList(list)
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
Token: req.Token,
TableTypes: []string{bytelib.SchemaTable},
Module: bytelib.ModuleQuerySetCenter,
ReturnGroupItem: true,
})
if err != nil {
batchError.Add(err)
}
result["拆解模块"] = newList(list)
}, func() {
//list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
// Token: req.Token,
// TableTypes: []string{bytelib.CalculateItem, bytelib.CalculateSet},
// Module: bytelib.ModuleCalculateCenter,
// ReturnGroupItem: true,
// ExcludeTables: []int{0},
//})
//if err != nil {
// batchError.Add(err)
//}
//result["计算模块"] = newList(list)
list, err := l.svcCtx.ByteMetadataService.ObjectTableSearch(l.ctx, bytelib.ObjectTableSearchRequest{
Token: req.Token,
TableTypes: []string{bytelib.CalculateItem, 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)
... ...