mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
后管站点管理页面新增查询地锁列表二维码
This commit is contained in:
@@ -9,6 +9,8 @@ import com.jsowell.common.exception.BusinessException;
|
||||
import com.jsowell.common.response.RestApiResponse;
|
||||
import com.jsowell.common.util.file.AliyunOssUploadUtils;
|
||||
import com.jsowell.common.util.file.FileUtils;
|
||||
import com.jsowell.pile.service.IPileBasicInfoService;
|
||||
import com.jsowell.pile.vo.uniapp.GroundLockInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.PileConnectorVO;
|
||||
import com.jsowell.service.PileService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@@ -16,6 +18,7 @@ import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@Anonymous
|
||||
@@ -26,6 +29,9 @@ public class JumpController extends BaseController {
|
||||
@Autowired
|
||||
private PileService pileService;
|
||||
|
||||
@Autowired
|
||||
private IPileBasicInfoService pileBasicInfoService;
|
||||
|
||||
/**
|
||||
* 查询充电桩详情
|
||||
* http://localhost:8080/app-xcx-h5/pile/pileDetail/{pileSn}
|
||||
@@ -94,4 +100,24 @@ public class JumpController extends BaseController {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地锁列表信息
|
||||
* http://localhost:8080/app-xcx-h5/getGroundLockInfo/{stationId}
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getGroundLockInfo/{stationId}")
|
||||
public RestApiResponse<?> getGroundLockInfo(@PathVariable("stationId") String stationId) {
|
||||
logger.info("获取地锁列表信息 params:{}", stationId);
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
List<GroundLockInfoVO> list = pileBasicInfoService.getGroundLockInfo(stationId);
|
||||
response = new RestApiResponse<>(list);
|
||||
} catch (Exception e) {
|
||||
logger.error("获取地锁列表信息 error, ", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("获取地锁列表信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -38,9 +38,6 @@ public class PileController extends BaseController {
|
||||
@Autowired
|
||||
private IPileConnectorInfoService pileConnectorInfoService;
|
||||
|
||||
@Autowired
|
||||
private IPileBasicInfoService pileBasicInfoService;
|
||||
|
||||
@Autowired
|
||||
private IPileBillingTemplateService pileBillingTemplateService;
|
||||
|
||||
@@ -152,24 +149,4 @@ public class PileController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取地锁列表信息
|
||||
* @param stationId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/getGroundLockInfo/{stationId}")
|
||||
public RestApiResponse<?> getGroundLockInfo(@PathVariable("stationId") String stationId) {
|
||||
logger.info("获取地锁列表信息 params:{}", stationId);
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
List<GroundLockInfoVO> list = pileBasicInfoService.getGroundLockInfo(stationId);
|
||||
response = new RestApiResponse<>(list);
|
||||
} catch (Exception e) {
|
||||
logger.error("获取地锁列表信息 error, ", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("获取地锁列表信息 result:{}", response);
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user