mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
add 新增站点桩列表页导出流量卡接口
This commit is contained in:
@@ -19,6 +19,7 @@ import com.jsowell.pile.service.IThirdpartySnRelationService;
|
||||
import com.jsowell.pile.service.PileBasicInfoService;
|
||||
import com.jsowell.pile.service.PileMemberRelationService;
|
||||
import com.jsowell.pile.service.PileMsgRecordService;
|
||||
import com.jsowell.pile.vo.web.PileDeviceSimCardExportVO;
|
||||
import com.jsowell.pile.vo.web.PileDetailVO;
|
||||
import com.jsowell.pile.vo.web.ThirdPartySnRelationVO;
|
||||
import com.jsowell.service.PileService;
|
||||
@@ -28,6 +29,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
* 设备管理Controller
|
||||
@@ -76,6 +78,30 @@ public class PileBasicInfoController extends BaseController {
|
||||
util.exportExcel(response, list, "设备管理数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出设备流量卡列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('pile:basic:export')")
|
||||
@Log(title = "设备流量卡", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/exportDeviceSimCard")
|
||||
public void exportDeviceSimCard(HttpServletResponse response, QueryPileDTO dto) {
|
||||
List<PileDeviceSimCardExportVO> list = pileBasicInfoService.queryPileInfoListNoPage(dto).stream()
|
||||
.map(item -> {
|
||||
PileDeviceSimCardExportVO vo = new PileDeviceSimCardExportVO();
|
||||
vo.setPileSn(item.getPileSn());
|
||||
vo.setIccId(item.getICCID());
|
||||
vo.setModelName(item.getModelName());
|
||||
vo.setMerchantName(item.getMerchantName());
|
||||
vo.setStationName(item.getStationName());
|
||||
vo.setSimSupplier(item.getSimSupplier());
|
||||
vo.setRegistrationTime(item.getRegistrationTime());
|
||||
return vo;
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
ExcelUtil<PileDeviceSimCardExportVO> util = new ExcelUtil<>(PileDeviceSimCardExportVO.class);
|
||||
util.exportExcel(response, list, "设备流量卡数据");
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取设备管理详细信息
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.jsowell.pile.vo.web;
|
||||
|
||||
import com.jsowell.common.annotation.Excel;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 站点设备流量卡导出对象
|
||||
*/
|
||||
@Data
|
||||
public class PileDeviceSimCardExportVO {
|
||||
|
||||
@Excel(name = "桩号")
|
||||
private String pileSn;
|
||||
|
||||
@Excel(name = "ICCID")
|
||||
private String iccId;
|
||||
|
||||
@Excel(name = "型号名称")
|
||||
private String modelName;
|
||||
|
||||
@Excel(name = "运营商")
|
||||
private String merchantName;
|
||||
|
||||
@Excel(name = "充电站")
|
||||
private String stationName;
|
||||
|
||||
@Excel(name = "SIM卡商", dictType = "sim_supplier")
|
||||
private String simSupplier;
|
||||
|
||||
@Excel(name = "注册时间")
|
||||
private String registrationTime;
|
||||
}
|
||||
Reference in New Issue
Block a user