新增查询订单详情接口

This commit is contained in:
2025-08-02 13:51:37 +08:00
parent 2f744252cc
commit aec8d821b0
4 changed files with 21 additions and 14 deletions

View File

@ -21,6 +21,4 @@ public interface CarFacade {
@PostMapping("/car/getCarByCarCondition") @PostMapping("/car/getCarByCarCondition")
Result<CarDTO> getCarByCarCondition(@RequestBody CarQueryConditionReq req); Result<CarDTO> getCarByCarCondition(@RequestBody CarQueryConditionReq req);
@GetMapping("/sys/getDictDataByDicTypeAndValue")
Result<SysDictDataDTO> getDictDataByDicTypeAndValue(@RequestParam(name = "dicType") String dicType, @RequestParam(name = "dicValue") String dicValue);
} }

View File

@ -2,7 +2,9 @@ package com.sczx.order.thirdpart.facade;
import com.sczx.order.common.Result; import com.sczx.order.common.Result;
import com.sczx.order.thirdpart.dto.CompanyStoreDTO; import com.sczx.order.thirdpart.dto.CompanyStoreDTO;
import com.sczx.order.thirdpart.dto.SysDictDataDTO;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@ -11,4 +13,8 @@ public interface StoreFacade {
@RequestMapping("/pub/getStoreById") @RequestMapping("/pub/getStoreById")
Result<CompanyStoreDTO> getStoreById(@RequestParam(name = "storeId") Integer storeId); Result<CompanyStoreDTO> getStoreById(@RequestParam(name = "storeId") Integer storeId);
@GetMapping("/sys/getDictDataByDicTypeAndValue")
Result<SysDictDataDTO> getDictDataByDicTypeAndValue(@RequestParam(name = "dicType") String dicType, @RequestParam(name = "dicValue") String dicValue);
} }

View File

@ -69,17 +69,6 @@ public class CarInteg {
return null; return null;
} }
public SysDictDataDTO getDictDataByDicTypeAndValue(String dicType, String dicValue){
try{
Result<SysDictDataDTO> result = carFacade.getDictDataByDicTypeAndValue(dicType, dicValue);
if(result.isSuccess()){
return result.getData();
}
} catch (Exception e){
log.error("根据字典类型和字典值获取字典数据失败",e);
throw new InnerException("根据字典类型和字典值获取字典数据失败");
}
return null;
}
} }

View File

@ -3,6 +3,7 @@ package com.sczx.order.thirdpart.integration;
import com.sczx.order.common.Result; import com.sczx.order.common.Result;
import com.sczx.order.exception.InnerException; import com.sczx.order.exception.InnerException;
import com.sczx.order.thirdpart.dto.CompanyStoreDTO; import com.sczx.order.thirdpart.dto.CompanyStoreDTO;
import com.sczx.order.thirdpart.dto.SysDictDataDTO;
import com.sczx.order.thirdpart.facade.StoreFacade; import com.sczx.order.thirdpart.facade.StoreFacade;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -27,4 +28,17 @@ public class StoreInteg {
} }
return null; return null;
} }
public SysDictDataDTO getDictDataByDicTypeAndValue(String dicType, String dicValue){
try{
Result<SysDictDataDTO> result = storeFacade.getDictDataByDicTypeAndValue(dicType, dicValue);
if(result.isSuccess()){
return result.getData();
}
} catch (Exception e){
log.error("根据字典类型和字典值获取字典数据失败",e);
throw new InnerException("根据字典类型和字典值获取字典数据失败");
}
return null;
}
} }