...
|
...
|
@@ -849,7 +849,8 @@ public class AppraiseService { |
|
|
Long orderCode = appraiseExpressInfoBo.getOrderCode();
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
if (serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
|
|
|
serviceOrderProcessor.findGoodsServiceInstance(orderCode).appraiseFake(orderCode);
|
|
|
apiResponse.setCode(200);
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -1095,12 +1096,16 @@ public class AppraiseService { |
|
|
*/
|
|
|
public ApiResponse judgeCenterNotPass(Long orderCode) {
|
|
|
LOGGER.info("judgeCenterNotPass enter , orderCode {} ", orderCode);
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
if(serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
serviceOrderProcessor.findGoodsServiceInstance(orderCode).appraiseFake(orderCode);
|
|
|
apiResponse.setCode(200);
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
|
|
OrderStatus expectStatus = OrderStatus.PLATFORM_RECEIVE;
|
|
|
OrderStatus targetStatus = OrderStatus.CHECKING_FAKE;
|
|
|
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
|
|
if (buyerOrder == null) {
|
|
|
LOGGER.warn("judgeCenterNotPass getOrderInfo order not exist, orderCode {}", orderCode);
|
|
|
throw new ServiceException(ServiceError.ORDER_NULL);
|
...
|
...
|
@@ -1172,12 +1177,21 @@ public class AppraiseService { |
|
|
*/
|
|
|
public ApiResponse qualityCheckReject(SaveQualityCheckInfoRequest request) {
|
|
|
LOGGER.info("qualityCheckReject enter , appraiseExpressInfoBo {} ", request);
|
|
|
Long orderCode = request.getOrderCode();
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
if (serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
LOGGER.info("qualityCheckReject isGoodsServiceOrder order code {}", orderCode);
|
|
|
serviceOrderProcessor.findGoodsServiceInstance(orderCode).appraiseFake(orderCode);
|
|
|
apiResponse.setCode(200);
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
|
|
OrderStatus expectStatus = OrderStatus.PLATFORM_RECEIVE;
|
|
|
OrderStatus targetStatus = OrderStatus.QUALITY_CHECK_FAKE;
|
|
|
Long orderCode = request.getOrderCode();
|
|
|
|
|
|
QualityCheck qualityCheck = request.getQualityCheck();
|
|
|
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
|
|
if (buyerOrder == null) {
|
...
|
...
|
@@ -1264,6 +1278,13 @@ public class AppraiseService { |
|
|
public ApiResponse judgeCenterPass(Long orderCode) {
|
|
|
LOGGER.info("judgeCenterPass enter orderCode {}", orderCode);
|
|
|
ApiResponse apiResponse = new ApiResponse();
|
|
|
if(serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
LOGGER.info("judgeCenterPass isGoodsServiceOrder orderCode {}", orderCode);
|
|
|
serviceOrderProcessor.findGoodsServiceInstance(orderCode).appraisePass(orderCode);
|
|
|
apiResponse.setCode(200);
|
|
|
return apiResponse;
|
|
|
}
|
|
|
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectOnlyByOrderCode(orderCode);
|
|
|
|
|
|
if (buyerOrder == null) {
|
...
|
...
|
@@ -1514,6 +1535,12 @@ public class AppraiseService { |
|
|
* @param orderCode
|
|
|
*/
|
|
|
public void appraiseUnsure(Integer uid, Long orderCode) {
|
|
|
if (serviceOrderProcessor.isGoodsServiceOrder(orderCode)){
|
|
|
LOGGER.info("in appraiseUnsure isGoodsServiceOrder ordercode {}", orderCode);
|
|
|
serviceOrderProcessor.findGoodsServiceInstance(orderCode).unsure(orderCode);
|
|
|
}
|
|
|
|
|
|
|
|
|
new BuyerOrderCancelHandler(uid, orderCode)
|
|
|
.withBuyerOrderSupplier(buyerOrderMapper, buyerOrderGoodsMapper)
|
|
|
.withSellerOrderSupplier(sellerOrderGoodsMapper, sellerOrderMetaMapper)
|
...
|
...
|
|