大屏项目初始化

This commit is contained in:
2026-03-12 22:44:55 +08:00
parent a930c3e17c
commit 6990ae425b
5 changed files with 39 additions and 15 deletions

View File

@@ -20,8 +20,9 @@
:header-row-style="{ background: 'transparent' }"
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
>
<el-table-column prop="xaxis" label="账户名称" width="120" show-overflow-tooltip />
<el-table-column prop="xaxis" label="账户名称" width="120" fixed="left" show-overflow-tooltip />
<el-table-column v-for="m in 12" :key="`in-${m}`" :prop="`index${String(m).padStart(2, '0')}`" :label="`${m}月`" />
<el-table-column prop="indexSum" label="合计" width="120" fixed="right" />
</el-table>
</div>
</div>
@@ -46,8 +47,9 @@
:header-row-style="{ background: 'transparent' }"
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
>
<el-table-column prop="xaxis" label="账户名称" width="120" show-overflow-tooltip />
<el-table-column prop="xaxis" label="账户名称" width="120" fixed="left" show-overflow-tooltip />
<el-table-column v-for="m in 12" :key="`ex-${m}`" :prop="`index${String(m).padStart(2, '0')}`" :label="`${m}月`" />
<el-table-column prop="indexSum" label="合计" width="120" fixed="right" />
</el-table>
</div>
</div>

View File

@@ -20,8 +20,9 @@
:header-row-style="{ background: 'transparent' }"
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
>
<el-table-column prop="xaxis" label="分类名称" width="120" show-overflow-tooltip />
<el-table-column prop="xaxis" label="分类名称" width="120" fixed="left" show-overflow-tooltip />
<el-table-column v-for="m in 12" :key="`in-${m}`" :prop="`index${String(m).padStart(2, '0')}`" :label="`${m}月`" />
<el-table-column prop="indexSum" label="合计" width="120" fixed="right" />
</el-table>
</div>
</div>
@@ -46,8 +47,9 @@
:header-row-style="{ background: 'transparent' }"
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
>
<el-table-column prop="xaxis" label="分类名称" width="120" show-overflow-tooltip />
<el-table-column prop="xaxis" label="分类名称" width="120" fixed="left" show-overflow-tooltip />
<el-table-column v-for="m in 12" :key="`ex-${m}`" :prop="`index${String(m).padStart(2, '0')}`" :label="`${m}月`" />
<el-table-column prop="indexSum" label="合计" width="120" fixed="right" />
</el-table>
</div>
</div>

View File

@@ -4,12 +4,9 @@ import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import com.mini.mybigscreen.Model.BaseEntity;
import lombok.Getter;
import lombok.Setter;
@@ -19,14 +16,13 @@ import lombok.Setter;
* </p>
*
* @author gaoxq
* @since 2026-02-24
* @since 2026-03-12
*/
@Getter
@Setter
@TableName("biz_item_info")
public class ItemInfo extends BaseEntity implements Serializable {
public class ItemInfo implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
/**
@@ -190,4 +186,28 @@ public class ItemInfo extends BaseEntity implements Serializable {
*/
@TableField("is_deleted")
private String isDeleted;
/**
* 指标求和
*/
@TableField("index_sum")
private BigDecimal indexSum;
/**
* 指标平均
*/
@TableField("index_avg")
private BigDecimal indexAvg;
/**
* 指标最大
*/
@TableField("index_max")
private BigDecimal indexMax;
/**
* 指标最小
*/
@TableField("index_min")
private BigDecimal indexMin;
}

View File

@@ -1,7 +1,7 @@
package com.mini.mybigscreen.biz.mapper;
import com.github.yulichang.base.MPJBaseMapper;
import com.mini.mybigscreen.biz.domain.ItemInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
/**
* <p>
@@ -9,8 +9,8 @@ import com.mini.mybigscreen.biz.domain.ItemInfo;
* </p>
*
* @author gaoxq
* @since 2026-02-24
* @since 2026-03-12
*/
public interface ItemInfoMapper extends MPJBaseMapper<ItemInfo> {
public interface ItemInfoMapper extends BaseMapper<ItemInfo> {
}

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_chart_info")
builder.addInclude("biz_item_info")
.addTablePrefix("biz_")
.entityBuilder()
.enableLombok()