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:
@@ -8,6 +8,7 @@ import com.jsowell.pile.dto.business.QueryConnectorInfoDTO;
|
||||
import com.jsowell.pile.service.PileConnectorInfoService;
|
||||
import com.jsowell.pile.vo.uniapp.business.BusinessConnectorInfoVO;
|
||||
import com.jsowell.pile.vo.uniapp.business.StationStatisticsInfosVO;
|
||||
import com.jsowell.pile.vo.web.PileConnectorInfoVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -39,7 +40,7 @@ public class BusinessConnectorInfoController extends BaseController {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
BusinessConnectorInfoVO connectorInfoVO = pileConnectorInfoService.getConnectorListByStationAndStatus(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("ConnectorInfoVO", connectorInfoVO));
|
||||
response = new RestApiResponse<>(ImmutableMap.of("BusinessConnectorInfoVO", connectorInfoVO));
|
||||
} catch (Exception e) {
|
||||
logger.error("获取枪口信息列表 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
@@ -47,4 +48,23 @@ public class BusinessConnectorInfoController extends BaseController {
|
||||
logger.info("获取枪口信息列表 params:{}, result:{}", JSONObject.toJSONString(dto), response);
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 搜索枪口信息接口
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/searchConnectorInfo")
|
||||
public RestApiResponse<?> BusinessSearchConnectorInfo(@RequestBody QueryConnectorInfoDTO dto) {
|
||||
RestApiResponse<?> response = null;
|
||||
try {
|
||||
PileConnectorInfoVO pileConnectorInfoVO = pileConnectorInfoService.BusinessSearchConnectorInfo(dto);
|
||||
response = new RestApiResponse<>(ImmutableMap.of("pileConnectorInfoVO", pileConnectorInfoVO));
|
||||
} catch (Exception e) {
|
||||
logger.error("搜索枪口信息接口 error", e);
|
||||
response = new RestApiResponse<>(e);
|
||||
}
|
||||
logger.info("搜索枪口信息接口 params:{}, result:{}", JSONObject.toJSONString(dto), response);
|
||||
return response;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user