haungxing
1 year ago
84 changed files with 1142 additions and 298 deletions
@ -0,0 +1,39 @@
|
||||
package com.hnac.hzims.vo; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore; |
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author hx |
||||
*/ |
||||
@Data |
||||
@ApiModel("各个票种统计表") |
||||
public class VoteChartVo { |
||||
@ApiModelProperty(value = "站点名称") |
||||
@ExcelProperty(value = "站点名称", index = 0) |
||||
private String name; |
||||
|
||||
@ApiModelProperty(value = "总数量") |
||||
@ExcelProperty(value = "总数量", index = 1) |
||||
private int sumNum; |
||||
@ApiModelProperty(value = "总数量id") |
||||
@ExcelIgnore |
||||
private List<Long> sumIds; |
||||
@ApiModelProperty(value = "未完成数量") |
||||
@ExcelProperty(value = "未完成数量", index = 2) |
||||
private int undoneNum; |
||||
@ApiModelProperty(value = "未完成id") |
||||
@ExcelIgnore |
||||
private List<Long> undoneIds; |
||||
@ApiModelProperty(value = "完成数量") |
||||
@ExcelProperty(value = "完成数量", index = 3) |
||||
private int finishNum; |
||||
@ApiModelProperty(value = "完成id") |
||||
@ExcelIgnore |
||||
private List<Long> finishIds; |
||||
} |
@ -0,0 +1,45 @@
|
||||
package com.hnac.hzims.operational.report.vo; |
||||
|
||||
import com.alibaba.excel.annotation.ExcelIgnore; |
||||
import com.alibaba.excel.annotation.ExcelProperty; |
||||
import io.swagger.annotations.ApiModel; |
||||
import io.swagger.annotations.ApiModelProperty; |
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author hx |
||||
*/ |
||||
@Data |
||||
@ApiModel("缺陷统计表") |
||||
public class CheckVoteChartVo { |
||||
@ApiModelProperty(value = "站点名称") |
||||
@ExcelProperty(value = "站点名称", index = 0) |
||||
private String name; |
||||
|
||||
@ApiModelProperty(value = "现象数量") |
||||
@ExcelProperty(value = "现象数量", index = 1) |
||||
private int phenomenonNum; |
||||
@ApiModelProperty(value = "现象数量id") |
||||
@ExcelIgnore |
||||
private List<String> phenomenonIds; |
||||
@ApiModelProperty(value = "缺陷数量") |
||||
@ExcelProperty(value = "缺陷数量", index = 2) |
||||
private int defectNum; |
||||
@ApiModelProperty(value = "缺陷code") |
||||
@ExcelIgnore |
||||
private List<String> defectIds; |
||||
@ApiModelProperty(value = "处理数量") |
||||
@ExcelProperty(value = "处理数量", index = 3) |
||||
private int handleNum; |
||||
@ApiModelProperty(value = "处理code") |
||||
@ExcelIgnore |
||||
private List<String> handleIds; |
||||
@ApiModelProperty(value = "定论数量") |
||||
@ExcelProperty(value = "定论数量", index = 4) |
||||
private int conclusionNum; |
||||
@ApiModelProperty(value = "定论code") |
||||
@ExcelIgnore |
||||
private List<String> conclusionIds; |
||||
} |
@ -0,0 +1,27 @@
|
||||
package com.hnac.hzims.operational.duty.utils; |
||||
|
||||
import org.apache.poi.ss.SpreadsheetVersion; |
||||
|
||||
import java.lang.reflect.Field; |
||||
|
||||
/** |
||||
* 设置Excel导出的最大字符数 |
||||
* @author tanghaihao |
||||
* @date 2023年08月18日 16:40 |
||||
*/ |
||||
public class ExcelTool { |
||||
|
||||
public static void resetCellMaxTextLength() { |
||||
SpreadsheetVersion excel2007 = SpreadsheetVersion.EXCEL2007; |
||||
if (Integer.MAX_VALUE != excel2007.getMaxTextLength()) { |
||||
Field field; |
||||
try { |
||||
field = excel2007.getClass().getDeclaredField("_maxTextLength"); |
||||
field.setAccessible(true); |
||||
field.set(excel2007, Integer.MAX_VALUE); |
||||
} catch (Exception e) { |
||||
e.printStackTrace(); |
||||
} |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue