大屏项目初始化
This commit is contained in:
@@ -1,11 +1,19 @@
|
|||||||
package com.mini.mybigscreen.biz.controller;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
* 前端控制器
|
* 前端控制器
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author gaoxq
|
* @author gaoxq
|
||||||
@@ -15,4 +23,14 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RequestMapping("/biz/chartInfo")
|
@RequestMapping("/biz/chartInfo")
|
||||||
public class ChartInfoController {
|
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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ public class demo {
|
|||||||
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
.pathInfo(Collections.singletonMap(OutputFile.xml, System.getProperty("user.dir") + "/src/main/resources/mapper"));
|
||||||
})
|
})
|
||||||
.strategyConfig(builder -> {
|
.strategyConfig(builder -> {
|
||||||
builder.addInclude("biz_website_storage")
|
builder.addInclude("biz_chart_info")
|
||||||
.addTablePrefix("biz_")
|
.addTablePrefix("biz_")
|
||||||
.entityBuilder()
|
.entityBuilder()
|
||||||
.enableLombok()
|
.enableLombok()
|
||||||
|
|||||||
Reference in New Issue
Block a user