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