mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-14 23:08:35 +08:00
update
This commit is contained in:
@@ -17,6 +17,7 @@ import com.jsowell.common.util.SecurityUtils;
|
|||||||
import com.jsowell.common.util.StringUtils;
|
import com.jsowell.common.util.StringUtils;
|
||||||
import com.jsowell.pile.domain.PileBasicInfo;
|
import com.jsowell.pile.domain.PileBasicInfo;
|
||||||
import com.jsowell.pile.domain.PileConnectorInfo;
|
import com.jsowell.pile.domain.PileConnectorInfo;
|
||||||
|
import com.jsowell.pile.domain.PileModelInfo;
|
||||||
import com.jsowell.pile.domain.PileSimInfo;
|
import com.jsowell.pile.domain.PileSimInfo;
|
||||||
import com.jsowell.pile.dto.IndexQueryDTO;
|
import com.jsowell.pile.dto.IndexQueryDTO;
|
||||||
import com.jsowell.pile.dto.QueryPileDTO;
|
import com.jsowell.pile.dto.QueryPileDTO;
|
||||||
@@ -321,11 +322,13 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
|
|||||||
// 获取桩状态
|
// 获取桩状态
|
||||||
Map<String, String> pileStatusMap = pileConnectorInfoService.getPileStatus(Lists.newArrayList(pileInfoVO.getPileSn()));
|
Map<String, String> pileStatusMap = pileConnectorInfoService.getPileStatus(Lists.newArrayList(pileInfoVO.getPileSn()));
|
||||||
pileInfoVO.setStatus(pileStatusMap.get(pileInfoVO.getPileSn()));
|
pileInfoVO.setStatus(pileStatusMap.get(pileInfoVO.getPileSn()));
|
||||||
// String url = "http://localhost:8080/uniapp/pile/pileDetail/";
|
|
||||||
String pileQrCodeUrl = getPileQrCodeUrl(pileInfoVO.getPileSn());
|
String pileQrCodeUrl = getPileQrCodeUrl(pileInfoVO.getPileSn());
|
||||||
pileInfoVO.setQrCodeURL(pileQrCodeUrl);
|
pileInfoVO.setQrCodeURL(pileQrCodeUrl);
|
||||||
// 额定功率 瓦改为千瓦(2023.2.8发现数据库中型号表已经存的单位是 kw,因此注释掉)
|
// 设备型号
|
||||||
// pileInfoVO.setRatedPower(pileInfoVO.getRatedPower() / 1000);
|
PileModelInfo pileModelInfo = pileModelInfoService.selectPileModelInfoById(Long.parseLong(pileInfoVO.getModelId()));
|
||||||
|
if (pileModelInfo != null) {
|
||||||
|
pileInfoVO.setModelName(pileModelInfo.getModelName());
|
||||||
|
}
|
||||||
return pileInfoVO;
|
return pileInfoVO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -112,4 +112,14 @@ public class PileDetailVO {
|
|||||||
* 个人桩密钥
|
* 个人桩密钥
|
||||||
*/
|
*/
|
||||||
private String secretKey;
|
private String secretKey;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 型号id
|
||||||
|
*/
|
||||||
|
private String modelId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 型号名称
|
||||||
|
*/
|
||||||
|
private String modelName;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
<!-- <el-descriptions-item label="使用车辆类型">{{
|
<!-- <el-descriptions-item label="使用车辆类型">{{
|
||||||
pileDetail.matchCars
|
pileDetail.matchCars
|
||||||
}}</el-descriptions-item>-->
|
}}</el-descriptions-item>-->
|
||||||
|
<el-descriptions-item label="设备型号">{{pileDetail.modelName}}</el-descriptions-item>
|
||||||
<el-descriptions-item label="额定功率(kW)">{{
|
<el-descriptions-item label="额定功率(kW)">{{
|
||||||
pileDetail.ratedPower
|
pileDetail.ratedPower
|
||||||
}}</el-descriptions-item>
|
}}</el-descriptions-item>
|
||||||
|
|||||||
Reference in New Issue
Block a user