Authored by mali

更新鉴定室

@@ -552,4 +552,11 @@ public class BuyerOrderController { @@ -552,4 +552,11 @@ public class BuyerOrderController {
552 return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build(); 552 return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
553 } 553 }
554 554
  555 + @RequestMapping(value = "/queryIdentifyCenter")
  556 + public ApiResponse queryIdentifyCenter() {
  557 + LOGGER.info("method queryIdentifyCenter in");
  558 + List<IdentifyCenterResp> result = buyerOrderService.queryIdentifyCenter();
  559 + return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
  560 + }
  561 +
555 } 562 }
@@ -121,4 +121,7 @@ public interface IBuyerOrderService { @@ -121,4 +121,7 @@ public interface IBuyerOrderService {
121 PageResponseBO<String> queryAbnormalPackage(BuyerOrderReq req); 121 PageResponseBO<String> queryAbnormalPackage(BuyerOrderReq req);
122 122
123 boolean queryIsExistCsCancleOrder(String sellerWaybillCode); 123 boolean queryIsExistCsCancleOrder(String sellerWaybillCode);
  124 +
  125 + // 查询鉴定室列表
  126 + List<IdentifyCenterResp> queryIdentifyCenter();
124 } 127 }
@@ -3084,4 +3084,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon @@ -3084,4 +3084,14 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService, ApplicationCon
3084 public void setApplicationContext(ApplicationContext applicationContext) { 3084 public void setApplicationContext(ApplicationContext applicationContext) {
3085 this.applicationContext = applicationContext; 3085 this.applicationContext = applicationContext;
3086 } 3086 }
  3087 +
  3088 + // 查询鉴定室列表
  3089 + public List<IdentifyCenterResp> queryIdentifyCenter() {
  3090 + IdentifyCenterEnum[] values = IdentifyCenterEnum.values();
  3091 + List<IdentifyCenterResp> resps = Lists.newArrayList();
  3092 + for (IdentifyCenterEnum item : values) {
  3093 + resps.add(new IdentifyCenterResp(item.getCode(), item.getName(), item.getDesc(), item.getText()));
  3094 + }
  3095 + return resps;
  3096 + }
3087 } 3097 }