|
|
@@ -1117,8 +1117,13 @@ public class PurchaseServiceImpl extends CommonBaseServiceImpl<PurchaseMapper, P
|
|
|
*/
|
|
|
@Override
|
|
|
public IPage<DeviceDTO> getDevice(DeviceReqDTO deviceReqDTO) {
|
|
|
- SearchComponentResp searchComponentResp = searchApi.getInquiry(deviceReqDTO.getKeyword(),deviceReqDTO.getCount(),deviceReqDTO.getSorting(),
|
|
|
- deviceReqDTO.getType(),deviceReqDTO.getPage(),deviceReqDTO.getFilter());
|
|
|
+ SearchComponentResp searchComponentResp = null;
|
|
|
+ try {
|
|
|
+ searchComponentResp = searchApi.getInquiry(deviceReqDTO.getKeyword(), deviceReqDTO.getCount(), deviceReqDTO.getSorting(),
|
|
|
+ deviceReqDTO.getType(), deviceReqDTO.getPage(), deviceReqDTO.getFilter());
|
|
|
+ }catch (Exception e){
|
|
|
+ throw new BizException(78001, "系统错误");
|
|
|
+ }
|
|
|
List<ProductEntity> productEntities = searchComponentResp.getFutures().getContent();
|
|
|
if (CollectionUtils.isEmpty(productEntities)){
|
|
|
return null;
|