This commit is contained in:
Guoqs
2024-09-03 09:36:32 +08:00
8 changed files with 127 additions and 17 deletions

View File

@@ -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;
}
}