...
|
...
|
@@ -70,7 +70,7 @@ public class BuyerOrderController { |
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("确认收货成功").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"确认收货失败":result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -79,10 +79,10 @@ public class BuyerOrderController { |
|
|
public ApiResponse qualityCheckPass(BuyerOrderReq req) {
|
|
|
LOGGER.info("qualityCheckPass in. req is {}", req);
|
|
|
JSONObject result = buyerOrderService.qualityCheckPass(req);
|
|
|
if(result.getIntValue("code") == 200) {
|
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("质检通过成功").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -91,10 +91,10 @@ public class BuyerOrderController { |
|
|
public ApiResponse qualityCheckNotPass(BuyerOrderReq req) {
|
|
|
LOGGER.info("qualityCheckNotPass in. req is {}", req);
|
|
|
JSONObject result = buyerOrderService.qualityCheckNotPass(req);
|
|
|
if(result.getIntValue("code") == 200) {
|
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("质检不通过成功").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -103,10 +103,10 @@ public class BuyerOrderController { |
|
|
public ApiResponse miniFaultConfirm(BuyerOrderReq req) {
|
|
|
LOGGER.info("miniFaultConfirm in. req is {}", req);
|
|
|
JSONObject result = buyerOrderService.miniFaultCreate(req);
|
|
|
if(result.getIntValue("code") == 200) {
|
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("瑕疵确认成功").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -127,10 +127,10 @@ public class BuyerOrderController { |
|
|
public ApiResponse judgeCenterPass(String orderCode) {
|
|
|
LOGGER.info("judgeCenterPass in. req is {}", orderCode);
|
|
|
JSONObject result = buyerOrderService.judgeCenterPass(orderCode);
|
|
|
if(result.getIntValue("code") == 200) {
|
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("鉴定通过完成").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -139,10 +139,10 @@ public class BuyerOrderController { |
|
|
public ApiResponse judgeCenterNotPass(String orderCode) {
|
|
|
LOGGER.info("judgeCenterNotPass in. req is {}", orderCode);
|
|
|
JSONObject result = buyerOrderService.judgeCenterNotPass(orderCode);
|
|
|
if(result.getIntValue("code") == 200) {
|
|
|
if(result!=null&&result.getIntValue("code") == 200) {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).message("鉴定不通过完成").build();
|
|
|
}else {
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result.getString("message")).build();
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message(result==null?"操作失败":result.getString("message")).build();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|