update sim卡导出功能

This commit is contained in:
Lemon
2023-06-01 11:30:53 +08:00
parent 6672cb3659
commit 61643e4b78
3 changed files with 17 additions and 3 deletions

View File

@@ -63,15 +63,16 @@ public class PileSimInfoController extends BaseController {
List<SimCardInfoVO> simInfoList = pileSimInfoService.getSimInfoList(dto);
return getDataTable(simInfoList);
}
/**
* 导出充电桩SIM卡信息列表
*/
@PreAuthorize("@ss.hasPermi('pile:sim:export')")
@Log(title = "充电桩SIM卡信息", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, PileSimInfo pileSimInfo) {
List<PileSimInfo> list = pileSimInfoService.selectPileSimInfoList(pileSimInfo);
ExcelUtil<PileSimInfo> util = new ExcelUtil<PileSimInfo>(PileSimInfo.class);
public void export(HttpServletResponse response, QuerySimInfoDTO dto) {
List<SimCardInfoVO> list = pileSimInfoService.getSimInfoList(dto);
ExcelUtil<SimCardInfoVO> util = new ExcelUtil<>(SimCardInfoVO.class);
util.exportExcel(response, list, "充电桩SIM卡信息数据");
}

View File

@@ -1,5 +1,6 @@
package com.jsowell.pile.vo.web;
import com.jsowell.common.annotation.Excel;
import lombok.Data;
/**
@@ -18,46 +19,55 @@ public class SimCardInfoVO {
/**
* 套餐名称
*/
@Excel(name = "套餐名称")
private String name;
/**
* 桩编码
*/
@Excel(name = "桩编码")
private String pileSn;
/**
* ICCID
*/
@Excel(name = "ICCID")
private String iccId;
/**
* sim卡状态 0-沉默1-正在使用2-正常使用)
*/
@Excel(name = "sim卡状态", dictType = "sim_status")
private String simCardStatus;
/**
* 总计流量
*/
@Excel(name = "总计流量")
private String totalData;
/**
* 剩余流量
*/
@Excel(name = "剩余流量")
private String surplusData;
/**
* 到期时间
*/
@Excel(name = "到期时间")
private String expireTime;
/**
* 运营商
*/
@Excel(name = "运营商", dictType = "sim_operator")
private String operator;
/**
* Sim卡供应商
*/
@Excel(name = "Sim卡供应商", dictType = "sim_supplier")
private String simSupplier;
/**
@@ -68,11 +78,13 @@ public class SimCardInfoVO {
/**
* 站点名称
*/
@Excel(name = "站点名称")
private String stationName;
/**
* 剩余天数
*/
@Excel(name = "剩余天数")
private String remainingDays;
}

View File

@@ -316,6 +316,7 @@ export default {
operator: null,
pileSn: null,
simSupplier : null,
stationId: null,
},
value: '',
// 表单参数