大屏项目初始化
This commit is contained in:
@@ -20,8 +20,9 @@
|
|||||||
:header-row-style="{ background: 'transparent' }"
|
:header-row-style="{ background: 'transparent' }"
|
||||||
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
|
: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 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>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,8 +47,9 @@
|
|||||||
:header-row-style="{ background: 'transparent' }"
|
:header-row-style="{ background: 'transparent' }"
|
||||||
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
|
: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 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>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -20,8 +20,9 @@
|
|||||||
:header-row-style="{ background: 'transparent' }"
|
:header-row-style="{ background: 'transparent' }"
|
||||||
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
|
: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 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>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -46,8 +47,9 @@
|
|||||||
:header-row-style="{ background: 'transparent' }"
|
:header-row-style="{ background: 'transparent' }"
|
||||||
:header-cell-style="{ borderBottom: '1px solid rgba(26, 80, 139, 0.3)' }"
|
: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 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>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -4,12 +4,9 @@ import com.baomidou.mybatisplus.annotation.IdType;
|
|||||||
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
import java.io.Serial;
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
import com.mini.mybigscreen.Model.BaseEntity;
|
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
@@ -19,14 +16,13 @@ import lombok.Setter;
|
|||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author gaoxq
|
* @author gaoxq
|
||||||
* @since 2026-02-24
|
* @since 2026-03-12
|
||||||
*/
|
*/
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
@TableName("biz_item_info")
|
@TableName("biz_item_info")
|
||||||
public class ItemInfo extends BaseEntity implements Serializable {
|
public class ItemInfo implements Serializable {
|
||||||
|
|
||||||
@Serial
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -190,4 +186,28 @@ public class ItemInfo extends BaseEntity implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@TableField("is_deleted")
|
@TableField("is_deleted")
|
||||||
private String isDeleted;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package com.mini.mybigscreen.biz.mapper;
|
package com.mini.mybigscreen.biz.mapper;
|
||||||
|
|
||||||
import com.github.yulichang.base.MPJBaseMapper;
|
|
||||||
import com.mini.mybigscreen.biz.domain.ItemInfo;
|
import com.mini.mybigscreen.biz.domain.ItemInfo;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -9,8 +9,8 @@ import com.mini.mybigscreen.biz.domain.ItemInfo;
|
|||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* @author gaoxq
|
* @author gaoxq
|
||||||
* @since 2026-02-24
|
* @since 2026-03-12
|
||||||
*/
|
*/
|
||||||
public interface ItemInfoMapper extends MPJBaseMapper<ItemInfo> {
|
public interface ItemInfoMapper extends BaseMapper<ItemInfo> {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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_chart_info")
|
builder.addInclude("biz_item_info")
|
||||||
.addTablePrefix("biz_")
|
.addTablePrefix("biz_")
|
||||||
.entityBuilder()
|
.entityBuilder()
|
||||||
.enableLombok()
|
.enableLombok()
|
||||||
|
|||||||
Reference in New Issue
Block a user