Authored by qinchao

fix 查询瑕疵时,如果瑕疵不存在,直接返回null

... ... @@ -1847,6 +1847,10 @@ public class BuyerOrderServiceImpl implements IBuyerOrderService {
Long orderCode = Long.valueOf(buyerOrder.getOrderCode());
QualityCheck qualityCheck = qualityCheckMapper.selectByOrderCode(Long.valueOf(buyerOrder.getOrderCode()));
//如果不存在,直接返回
if(qualityCheck==null){
return null;
}
QualityCheckResp resp = new QualityCheckResp();
resp.setOrderCode(orderCode);
resp.setCheckText(qualityCheck.getCheckText());
... ...