退款接口
This commit is contained in:
@@ -25,7 +25,7 @@ public class ReturnOrderDTO {
|
|||||||
private String shopId;
|
private String shopId;
|
||||||
@NotEmpty
|
@NotEmpty
|
||||||
private String note;
|
private String note;
|
||||||
@NotEmpty
|
// @NotEmpty
|
||||||
private String pwd;
|
private String pwd;
|
||||||
@Valid
|
@Valid
|
||||||
private List<OrderDetail> orderDetails;
|
private List<OrderDetail> orderDetails;
|
||||||
|
|||||||
@@ -230,8 +230,13 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
|
|
||||||
TbOrderInfo orderInfo = null;
|
TbOrderInfo orderInfo = null;
|
||||||
if (StrUtil.isNotBlank(date.getQrcode())) {
|
if (StrUtil.isNotBlank(date.getQrcode())) {
|
||||||
|
try {
|
||||||
|
|
||||||
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(criteria.getShopId(), date.getQrcode());
|
ShopEatTypeInfoDTO shopEatTypeInfoDTO = checkEatModel(criteria.getShopId(), date.getQrcode());
|
||||||
orderInfo = getCurrentOrder(shopEatTypeInfoDTO);
|
orderInfo = getCurrentOrder(shopEatTypeInfoDTO);
|
||||||
|
}catch (Exception e) {
|
||||||
|
log.info(e.getMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
itemMap.put("orderId", orderInfo == null ? null : orderInfo.getId());
|
itemMap.put("orderId", orderInfo == null ? null : orderInfo.getId());
|
||||||
@@ -2014,7 +2019,6 @@ public class TbShopTableServiceImpl implements TbShopTableService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Object returnOrder(ReturnOrderDTO returnOrderDTO) {
|
public Object returnOrder(ReturnOrderDTO returnOrderDTO) {
|
||||||
|
|
||||||
TbOrderInfo orderInfo = orderInfoMapper.selectOne(new LambdaQueryWrapper<TbOrderInfo>()
|
TbOrderInfo orderInfo = orderInfoMapper.selectOne(new LambdaQueryWrapper<TbOrderInfo>()
|
||||||
.eq(TbOrderInfo::getId, returnOrderDTO.getOrderId())
|
.eq(TbOrderInfo::getId, returnOrderDTO.getOrderId())
|
||||||
.eq(TbOrderInfo::getStatus, "closed"));
|
.eq(TbOrderInfo::getStatus, "closed"));
|
||||||
|
|||||||
Reference in New Issue
Block a user