|
@@ -27,6 +27,7 @@ import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
@@ -235,13 +236,19 @@ public class TfBaseTypePController extends BaseController {
|
|
|
List<String> orgCodes = new ArrayList<>();
|
|
|
|
|
|
final Long tenantId = SecurityUtils.getTenantId();
|
|
|
- orgCodes.add(String.valueOf(tenantId));
|
|
|
- if(1569602913205559298l ==tenantId || 1578996650805321730l==tenantId ){
|
|
|
+ final String[] split = datatypes.split(",");
|
|
|
+ if( Arrays.asList(split).contains(String.valueOf(1570692286170427394l))){
|
|
|
+ if(1569602913205559298l ==tenantId || 1578996650805321730l==tenantId ){
|
|
|
+
|
|
|
+ }else{
|
|
|
+
|
|
|
+ orgCodes.add("global00");
|
|
|
+ }
|
|
|
|
|
|
- }else{
|
|
|
- orgCodes.add("global00");
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
Object obj = tfBaseTypePService.getTypeTree(datatypes,id,type,orgCodes);
|
|
|
|
|
|
if(obj instanceof String){
|