...
|
...
|
@@ -2,6 +2,7 @@ package com.yoho.ufo.order.controller; |
|
|
|
|
|
import static java.util.stream.Collectors.toList;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
...
|
...
|
@@ -15,10 +16,13 @@ import org.springframework.web.bind.annotation.RequestParam; |
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.google.common.collect.Lists;
|
|
|
import com.yoho.order.model.BuyerOrderReq;
|
|
|
import com.yoho.order.model.ExpressCompany;
|
|
|
import com.yoho.order.model.QualityCheckResp;
|
|
|
import com.yoho.order.model.SignForPackageRsp;
|
|
|
import com.yoho.ufo.model.brand.Brand;
|
|
|
import com.yoho.ufo.order.constant.OrderAbnormalTypeEnum;
|
|
|
import com.yoho.ufo.order.service.IBuyerOrderService;
|
|
|
import com.yoho.ufo.service.model.ApiResponse;
|
|
|
import com.yoho.ufo.service.model.PageResponseBO;
|
...
|
...
|
@@ -683,4 +687,18 @@ public class BuyerOrderController { |
|
|
int result = buyerOrderService.updateAbnormalOrder(req);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("操作成功").data(result).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/queryOrderAbnormalType")
|
|
|
public ApiResponse queryOrderAbnormalType() {
|
|
|
LOGGER.info("queryOrderAbnormalType in");
|
|
|
List<JSONObject> result = new ArrayList<>();
|
|
|
for(OrderAbnormalTypeEnum orderAbnormalType : OrderAbnormalTypeEnum.values()){
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("id", orderAbnormalType.getByteVal());
|
|
|
jsonObject.put("text", orderAbnormalType.getAbnormalTypeStr());
|
|
|
result.add(jsonObject);
|
|
|
}
|
|
|
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("查询成功").data(result).build();
|
|
|
}
|
|
|
} |
...
|
...
|
|