Authored by mali

更新鉴定室

... ... @@ -552,4 +552,11 @@ public class BuyerOrderController {
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
}
@RequestMapping(value = "/queryIdentifyCenter")
public ApiResponse queryIdentifyCenter() {
LOGGER.info("method queryIdentifyCenter in");
List<IdentifyCenterResp> result = buyerOrderService.queryIdentifyCenter();
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
}
}
... ...
... ... @@ -121,4 +121,7 @@ public interface IBuyerOrderService {
PageResponseBO<String> queryAbnormalPackage(BuyerOrderReq req);
boolean queryIsExistCsCancleOrder(String sellerWaybillCode);
// 查询鉴定室列表
List<IdentifyCenterResp> queryIdentifyCenter();
}
... ...
... ... @@ -3084,4 +3084,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
public void setApplicationContext(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
// 查询鉴定室列表
public List<IdentifyCenterResp> queryIdentifyCenter() {
IdentifyCenterEnum[] values = IdentifyCenterEnum.values();
List<IdentifyCenterResp> resps = Lists.newArrayList();
for (IdentifyCenterEnum item : values) {
resps.add(new IdentifyCenterResp(item.getCode(), item.getName(), item.getDesc(), item.getText()));
}
return resps;
}
}
... ...