大屏项目初始化

This commit is contained in:
2026-03-10 23:35:01 +08:00
parent 66ba1f496e
commit 518b227823
2 changed files with 20 additions and 2 deletions

View File

@@ -1,11 +1,19 @@
package com.mini.mybigscreen.biz.controller;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mini.mybigscreen.Model.Result;
import com.mini.mybigscreen.biz.domain.ChartInfo;
import com.mini.mybigscreen.biz.domain.ErpTransactionFlow;
import com.mini.mybigscreen.biz.service.ChartInfoService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
* <p>
* 前端控制器
* 前端控制器
* </p>
*
* @author gaoxq
@@ -15,4 +23,14 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/biz/chartInfo")
public class ChartInfoController {
@Resource
private ChartInfoService chartInfoService;
@GetMapping("listAll")
public Result<?> getListAll(String chartCode) {
LambdaQueryWrapper<ChartInfo> query = new LambdaQueryWrapper<ChartInfo>()
.eq(StrUtil.isNotBlank(chartCode), ChartInfo::getChartCode, chartCode)
.orderByAsc(ChartInfo::getSort);
return Result.success(chartInfoService.list(query));
}
}

View File

@@ -29,7 +29,7 @@ public class demo {
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
})
.strategyConfig(builder -> {
builder.addInclude("biz_website_storage")
builder.addInclude("biz_chart_info")
.addTablePrefix("biz_")
.entityBuilder()
.enableLombok()