|
|
|
@ -20,6 +20,7 @@ import lombok.AllArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
import org.springblade.core.log.exception.ServiceException; |
|
|
|
|
import org.springblade.core.log.logger.BladeLogger; |
|
|
|
|
import org.springblade.core.secure.utils.AuthUtil; |
|
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
|
import org.springblade.core.tool.utils.Func; |
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
@ -51,13 +52,16 @@ public class FdpQuestionServiceImpl implements IFdpQuestionService {
|
|
|
|
|
R<StationEntity> stationResult = stationClient.getStationByCode(stationCode); |
|
|
|
|
if(stationResult.isSuccess()) { |
|
|
|
|
StationEntity stationEntity = stationResult.getData(); |
|
|
|
|
log.info("请求体为:{}",AuthUtil.getTenantId()); |
|
|
|
|
StationInfoReq infoReq = StationInfoReq.builder() |
|
|
|
|
.stationId(stationCode) |
|
|
|
|
.stationName(stationEntity.getName()) |
|
|
|
|
.type(this.getStationType(stationEntity.getType())) |
|
|
|
|
.stationDesc(Optional.ofNullable(stationDesc).orElse("")) |
|
|
|
|
.tenantId("200000") |
|
|
|
|
.build(); |
|
|
|
|
if(Func.isNotEmpty(infoReq.getType())) { |
|
|
|
|
log.info("请求体为:{}",JSON.toJSONString(infoReq)); |
|
|
|
|
HttpResponse httpResponse = HttpRequest.post(fdpUrlConfiguration.getSubmitStationInfo()) |
|
|
|
|
.body(JSON.toJSONString(infoReq)) |
|
|
|
|
.execute(); |
|
|
|
|