From bbfd68648872621be182fd51f3a56a09cd21e09e Mon Sep 17 00:00:00 2001 From: zhuguifei <zhuguifei@zhuguifeideiMac.local> Date: 星期一, 26 五月 2025 09:50:36 +0800 Subject: [PATCH] 添加首页数据接口 --- eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsFixtureVo.java | 162 ++++++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 120 insertions(+), 42 deletions(-) diff --git a/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsFixtureVo.java b/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsFixtureVo.java index be56412..352a83d 100644 --- a/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsFixtureVo.java +++ b/eims/ruoyi-modules/lb-eims/src/main/java/org/dromara/eims/domain/vo/EimsFixtureVo.java @@ -1,7 +1,11 @@ package org.dromara.eims.domain.vo; +import java.math.BigDecimal; import java.util.Date; + +import com.alibaba.excel.annotation.write.style.ColumnWidth; import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.poi.hpsf.Decimal; import org.dromara.common.mybatis.core.domain.BaseEntity; import org.dromara.common.translation.annotation.Translation; import org.dromara.common.translation.constant.TransConstant; @@ -36,20 +40,124 @@ /** * */ - @ExcelProperty(value = "") private Long id; - /** - * 娌诲叿缂栫爜 - */ - @ExcelProperty(value = "娌诲叿缂栫爜") - private String fixtureCode; + /** * 娌诲叿鍚嶇О */ - @ExcelProperty(value = "娌诲叿鍚嶇О") + @ExcelProperty(value = "宸ュ叿鍚嶇О") + @ColumnWidth(30) private String fixtureName; + + /** + * 鍨嬪彿 + */ + @ExcelProperty(value = "鍨嬪彿") + @ColumnWidth(15) + private String modelNo; + + /** + * 鍝佺墝 + */ + @ExcelProperty(value = "鍝佺墝") + @ColumnWidth(20) + private String brand; + + /** + * 鏁伴噺 + */ + @ExcelProperty(value = "鏁伴噺") + @ColumnWidth(10) + private Integer amount; + + + /** + * 鍗曚綅 + */ + @ExcelProperty(value = "鍗曚綅", converter = ExcelDictConvert.class) + @ExcelDictFormat(dictType = "eims_fixture_unit") + @ColumnWidth(10) + private String unit; + + /** + * 璧勪骇缂栧彿 + */ + @ExcelProperty(value = "璧勪骇缂栧彿") + @ColumnWidth(20) + private String assetNo; + + + /** + * 浣跨敤閮ㄩ棬 + */ + @ExcelProperty(value = "浣跨敤閮ㄩ棬") + @ColumnWidth(20) + private Long useDept; + + /** + * 绠$悊浜� + */ + @ExcelProperty(value = "绠$悊浜�") + @ColumnWidth(12) + private Long manageUser; + + /** + * 閲囪喘鏃ユ湡 + */ + @ExcelProperty(value = "閲囪喘鏃ユ湡") + @ColumnWidth(24) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date purchaseDate; + + /** + * 浣跨敤鏃ユ湡 + */ + @ExcelProperty(value = "浣跨敤鏃ユ湡") + @ColumnWidth(24) + @JsonFormat(pattern = "yyyy-MM-dd") + private Date deployDate; + + + /** + * 绠℃帶闇�姹� + */ + @ExcelProperty(value = "绠℃帶闇�姹�", converter = ExcelDictConvert.class) + @ColumnWidth(10) + @ExcelDictFormat(dictType = "eims_fixture_manage") + private String isManage; + + /** + * 鐘舵�侊紙瀛楀吀锛� + */ + @ExcelProperty(value = "鐘舵��", converter = ExcelDictConvert.class) + @ColumnWidth(10) + @ExcelDictFormat(dictType = "eims_fixture_status") + private String status; + + + + + /** + * 鍗曚环 + */ + @ExcelProperty(value = "鍗曚环") + @ColumnWidth(10) + private BigDecimal unitPrice; + + /** + * 鍔熺巼 + */ + @ExcelProperty(value = "鍔熺巼") + @ColumnWidth(15) + private String power; + + + /** + * 娌诲叿缂栫爜 + */ + private String fixtureCode; /** @@ -60,14 +168,12 @@ /** * 娌诲叿锛堝伐鍏凤級绫诲瀷 */ - @ExcelProperty(value = "娌诲叿绫诲瀷") @Translation(type = TransConstant.FIXTURE_TYPE_ID_TO_NAME, mapper = "fixtureType") private String fixtureTypeName; /** * 娌诲叿鎻忚堪 */ - @ExcelProperty(value = "娌诲叿鎻忚堪") private String fixtureDesc; /** @@ -88,8 +194,8 @@ /** * 鍊熺敤鐘舵�� */ - @ExcelProperty(value = "鍊熺敤鐘舵��", converter = ExcelDictConvert.class) - @ExcelDictFormat(dictType = "fixture_borrow_status") +// @ExcelProperty(value = "鍊熺敤鐘舵��", converter = ExcelDictConvert.class) +// @ExcelDictFormat(dictType = "fixture_borrow_status") private String borrowStatus; /** @@ -98,55 +204,24 @@ @Translation(type = TransConstant.USER_ID_TO_NICKNAME, mapper = "borrowUser") private String borrowUserName; - /** - * 鐘舵�侊紙瀛楀吀锛� - */ - @ExcelProperty(value = "鐘舵��", converter = ExcelDictConvert.class) - @ExcelDictFormat(dictType = "eims_fixture_status") - private String status; - /** - * 璧勪骇缂栧彿 - */ - @ExcelProperty(value = "璧勪骇缂栧彿") - private String assetNo; - /** - * 鍨嬪彿 - */ - @ExcelProperty(value = "鍨嬪彿") - private String modelNo; /** * 瑙勬牸 */ - @ExcelProperty(value = "瑙勬牸") private String specNo; /** * 鍒堕�犲晢 */ - @ExcelProperty(value = "鍒堕�犲晢") private String madeIn; - /** - * 閲囪喘鏃ユ湡 - */ - @ExcelProperty(value = "閲囪喘鏃ユ湡") - @JsonFormat(pattern = "yyyy-MM-dd") - private Date purchaseDate; - /** - * 浣跨敤鏃ユ湡 - */ - @ExcelProperty(value = "浣跨敤鏃ユ湡") - @JsonFormat(pattern = "yyyy-MM-dd") - private Date deployDate; /** * 浣跨敤骞撮檺 */ - @ExcelProperty(value = "浣跨敤骞撮檺") private Long serviceLife; /** @@ -161,4 +236,7 @@ private Long curBorrowId; + + + } -- Gitblit v1.9.3