14 changed files with 264 additions and 36 deletions
@ -0,0 +1,44 @@ |
|||||
|
package net.lab1024.sa.admin.module.service.domain.form; |
||||
|
|
||||
|
import cn.idev.excel.annotation.ExcelProperty; |
||||
|
import com.alibaba.excel.annotation.format.DateTimeFormat; |
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
/** |
||||
|
* 律所统计报表导出表单 |
||||
|
* |
||||
|
* @Author wzh |
||||
|
* @Date 2025-12-22 |
||||
|
* @Copyright 1.0 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class ServiceLawyerImportForm { |
||||
|
private Long userId; |
||||
|
//@ExcelProperty("序号")
|
||||
|
private Integer id; |
||||
|
|
||||
|
@ExcelProperty("执业律师") |
||||
|
private String lawyerName; |
||||
|
|
||||
|
@ExcelProperty("执业证号") |
||||
|
private String certificateNumber; |
||||
|
|
||||
|
@ExcelProperty("季度累计服务时长") |
||||
|
private Double quarterlyServiceDuration = 0.0; |
||||
|
|
||||
|
@ExcelProperty("季度累计服务成本") |
||||
|
private BigDecimal quarterlyServiceCost = BigDecimal.ZERO; |
||||
|
|
||||
|
@ExcelProperty("年度累计服务时长") |
||||
|
private Double annualServiceDuration = 0.0; |
||||
|
|
||||
|
@ExcelProperty("年度累计服务成本") |
||||
|
private BigDecimal annualServiceCost = BigDecimal.ZERO; |
||||
|
|
||||
|
//@ExcelProperty("备注")
|
||||
|
private String mark; |
||||
|
} |
||||
@ -0,0 +1,35 @@ |
|||||
|
package net.lab1024.sa.admin.module.service.domain.form; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import net.lab1024.sa.base.common.domain.PageParam; |
||||
|
|
||||
|
/** |
||||
|
* 律师统计查询表单 |
||||
|
* |
||||
|
* @author wzh |
||||
|
*/ |
||||
|
@Data |
||||
|
@Schema(description = "律师统计查询表单") |
||||
|
public class ServiceLawyerQueryForm { |
||||
|
|
||||
|
@Schema(description = "季度,1,2,3,4") |
||||
|
private Integer quarter; |
||||
|
|
||||
|
@Schema(description = "年度,格式:yyyy") |
||||
|
private Integer year; |
||||
|
|
||||
|
@Schema(description = "律师姓名") |
||||
|
private String lawyerName; |
||||
|
|
||||
|
@Schema(description = "律所名称") |
||||
|
private String firmName; |
||||
|
|
||||
|
@Schema(description = "开始时间") |
||||
|
private String startTime; |
||||
|
|
||||
|
@Schema(description = "结束时间") |
||||
|
private String endTime; |
||||
|
|
||||
|
private Long userId; |
||||
|
} |
||||
@ -0,0 +1,61 @@ |
|||||
|
package net.lab1024.sa.admin.util; |
||||
|
|
||||
|
import org.apache.poi.ss.usermodel.HorizontalAlignment; |
||||
|
import org.apache.poi.ss.usermodel.IndexedColors; |
||||
|
import com.alibaba.excel.write.metadata.style.WriteCellStyle; |
||||
|
import com.alibaba.excel.write.metadata.style.WriteFont; |
||||
|
import com.alibaba.excel.write.style.HorizontalCellStyleStrategy; |
||||
|
/** |
||||
|
* @program: yun-parent |
||||
|
* @description: |
||||
|
* @author: Mr.Wang |
||||
|
* @create: 2025-12-25 15:50 |
||||
|
**/ |
||||
|
public class CellStyleStrategy { |
||||
|
/** |
||||
|
* 设置表头和内容样式 |
||||
|
*/ |
||||
|
|
||||
|
public static HorizontalCellStyleStrategy styleStrategy() { |
||||
|
//表头样式策略
|
||||
|
WriteCellStyle headWriteCellStyle = new WriteCellStyle(); |
||||
|
//设置表头居中对齐
|
||||
|
headWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER); |
||||
|
|
||||
|
headWriteCellStyle.setLeftBorderColor(IndexedColors.GREY_25_PERCENT.index); |
||||
|
headWriteCellStyle.setRightBorderColor(IndexedColors.GREY_25_PERCENT.index); |
||||
|
headWriteCellStyle.setBottomBorderColor(IndexedColors.GREY_25_PERCENT.index); |
||||
|
headWriteCellStyle.setTopBorderColor(IndexedColors.GREY_25_PERCENT.index); |
||||
|
|
||||
|
WriteFont headWriteFont = new WriteFont(); |
||||
|
headWriteFont.setBold(false); |
||||
|
headWriteFont.setFontName("Arial"); |
||||
|
headWriteFont.setFontHeightInPoints((short) 10); |
||||
|
headWriteCellStyle.setWriteFont(headWriteFont); |
||||
|
|
||||
|
//2 内容样式策略
|
||||
|
WriteCellStyle contentWriteCellStyle = new WriteCellStyle(); |
||||
|
WriteFont contentWriteFont = new WriteFont(); |
||||
|
//内容大小
|
||||
|
contentWriteFont.setFontName("Arial"); |
||||
|
contentWriteFont.setFontHeightInPoints((short) 10); |
||||
|
contentWriteCellStyle.setWriteFont(contentWriteFont); |
||||
|
|
||||
|
// //设置自动换行
|
||||
|
// contentWriteCellStyle.setWrapped(true);
|
||||
|
// //设置垂直居中
|
||||
|
// contentWriteCellStyle.setVerticalAlignment(VerticalAlignment.CENTER);
|
||||
|
// //头默认了FillPatternType所以可以不指定
|
||||
|
// contentWriteCellStyle.setFillPatternType(FillPatternType.SOLID_FOREGROUND);
|
||||
|
// //设置水平居中
|
||||
|
// contentWriteCellStyle.setHorizontalAlignment(HorizontalAlignment.CENTER);
|
||||
|
//
|
||||
|
// //设置边框样式
|
||||
|
// contentWriteCellStyle.setBorderLeft(BorderStyle.THIN);
|
||||
|
// contentWriteCellStyle.setBorderTop(BorderStyle.THIN);
|
||||
|
// contentWriteCellStyle.setBorderRight(BorderStyle.THIN);
|
||||
|
// contentWriteCellStyle.setBorderBottom(BorderStyle.THIN);
|
||||
|
|
||||
|
return new HorizontalCellStyleStrategy(headWriteCellStyle,contentWriteCellStyle); |
||||
|
} |
||||
|
} |
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue