...
|
...
|
@@ -20,10 +20,7 @@ import com.yohoufo.dal.order.BuyerOrderGoodsMapper; |
|
|
import com.yohoufo.dal.order.BuyerOrderMapper;
|
|
|
import com.yohoufo.dal.order.QualityCheckMapper;
|
|
|
import com.yohoufo.dal.order.SellerOrderGoodsMapper;
|
|
|
import com.yohoufo.dal.order.model.BuyOrderNums;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrder;
|
|
|
import com.yohoufo.dal.order.model.BuyerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.SellerOrderGoods;
|
|
|
import com.yohoufo.dal.order.model.*;
|
|
|
import com.yohoufo.order.common.ActionStatusHold;
|
|
|
import com.yohoufo.order.common.DelStatus;
|
|
|
import com.yohoufo.order.common.Payment;
|
...
|
...
|
@@ -32,6 +29,7 @@ import com.yohoufo.order.model.PayQueryBo; |
|
|
import com.yohoufo.order.model.dto.BuyerPenaltyCalResult;
|
|
|
import com.yohoufo.order.model.request.OrderListRequest;
|
|
|
import com.yohoufo.order.model.request.OrderRequest;
|
|
|
import com.yohoufo.order.model.request.SaveQualityCheckInfoRequest;
|
|
|
import com.yohoufo.order.model.response.OrderDetailInfo;
|
|
|
import com.yohoufo.order.model.response.OrderSummaryResp;
|
|
|
import com.yohoufo.order.service.IBuyerOrderMetaService;
|
...
|
...
|
@@ -778,8 +776,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
|
|
|
// 瑕疵创建
|
|
|
@Override
|
|
|
public void miniFaultCreate(long orderCode){
|
|
|
logger.info("in miniFaultCreate, orderCode {}", orderCode);
|
|
|
public void miniFaultCreate(SaveQualityCheckInfoRequest request){
|
|
|
logger.info("in miniFaultCreate, orderCode {}", request);
|
|
|
long orderCode = request.getOrderCode();
|
|
|
QualityCheck qualityCheck = request.getQualityCheck();
|
|
|
OrderStatus expectStatus = OrderStatus.PLATFORM_RECEIVE;
|
|
|
OrderStatus targetStatus = OrderStatus.MINI_FAULT_WAITING;
|
|
|
BuyerOrder buyerOrder = buyerOrderMapper.selectByOrderCode(orderCode);
|
...
|
...
|
@@ -793,6 +793,13 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService { |
|
|
int uid = buyerOrder.getUid();
|
|
|
int sellerUid = buyerOrder.getSellerUid();
|
|
|
|
|
|
//保存质检有问题的图片信息
|
|
|
if(qualityCheck==null){
|
|
|
logger.warn("in miniFaultCreate qualityCheck is null, orderCode {},uid {} ,sellerUid {}", orderCode,uid,sellerUid);
|
|
|
throw new ServiceException(400,"瑕疵信息为空");
|
|
|
}
|
|
|
qualityCheckMapper.insert(qualityCheck);
|
|
|
|
|
|
if (1 == buyerOrderMapper.updateStatusByOrderCode(orderCode, uid,
|
|
|
expectStatus.getCode(),
|
|
|
targetStatus.getCode(),
|
...
|
...
|
|