更新导入电桩接口的地址
This commit is contained in:
parent
74329a4903
commit
df31b8c3de
@ -112,7 +112,7 @@ public class XhpcChargingPileController extends BaseController {
|
||||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
@PostMapping("/import")
|
||||
@PostMapping("/importData")
|
||||
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception {
|
||||
ExcelUtil<XhpcChargingPile> util = new ExcelUtil<XhpcChargingPile>(XhpcChargingPile.class);
|
||||
List<XhpcChargingPile> pileList = util.importExcel(file.getInputStream());
|
||||
|
||||
@ -1144,11 +1144,14 @@ public class XhpcChargingStationServiceImpl implements IXhpcChargingStationServi
|
||||
for (String st:terminal) {
|
||||
Map<String, Object> cacheMap = redisService.getCacheMap("gun:" + st);
|
||||
if(!cacheMap.isEmpty()){
|
||||
if ("离线".equals(cacheMap.get("status").toString())){
|
||||
if (cacheMap.containsKey("status") &&
|
||||
"离线".equals(cacheMap.get("status").toString())){
|
||||
offLine++;
|
||||
}else if("故障".equals(cacheMap.get("status").toString())){
|
||||
}else if(cacheMap.containsKey("status") &&
|
||||
"故障".equals(cacheMap.get("status").toString())){
|
||||
fault++;
|
||||
}else if("空闲".equals(cacheMap.get("status").toString())){
|
||||
}else if(cacheMap.containsKey("status") &&
|
||||
"空闲".equals(cacheMap.get("status").toString())){
|
||||
freeTime++;
|
||||
}else{
|
||||
charge++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user