资产展示{KLTV}的代码

master
冷调 2024-08-31 20:52:06 +08:00
parent b2ab146577
commit 2500e74674
2 changed files with 7 additions and 7 deletions

View File

@ -2,21 +2,16 @@ package com.muyu.source.controller;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.dtflys.forest.annotation.NotNull;
import com.muyu.common.core.domain.Result;
import com.muyu.source.domain.Structure;
import com.muyu.source.domain.TableInfo;
import com.muyu.source.domain.model.TableInfoModel;
import com.muyu.source.domain.rep.TableInfoRep;
import com.muyu.source.domain.rep.TableInfoResp;
import com.muyu.source.domain.rep.TableInfoTreeRep;
import com.muyu.source.service.StructureService;
import com.muyu.source.service.TableInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.ArrayList;
import java.util.List;
@ -81,4 +76,10 @@ public class TableInfoController {
return Result.success(list);
}
@PostMapping("/findTableName")
public Result findTableName(@RequestParam("id") Long id) {
TableInfo byId = tableInfoService.getById(id);
return Result.success(byId);
}
}

View File

@ -110,7 +110,6 @@ public class DataValueServiceImpl extends ServiceImpl<DataValueMapper, DataValue
.type(DataType.convertTypeString(columnTypeName))
.build();
list.add(build);
}
}
} catch (SQLException e) {