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

View File

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

View File

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