fix: 优惠券返回店铺id
This commit is contained in:
@@ -123,6 +123,7 @@ public class TbShopCouponServiceImpl implements TbShopCouponService {
|
|||||||
@Override
|
@Override
|
||||||
public Result find(CouponDto param) {
|
public Result find(CouponDto param) {
|
||||||
if (param.getOrderId() != null) {
|
if (param.getOrderId() != null) {
|
||||||
|
|
||||||
TbShopUser tbShopUser = shopUserMapper.selectByUserIdAndShopId(param.getUserId().toString(), param.getShopId().toString());
|
TbShopUser tbShopUser = shopUserMapper.selectByUserIdAndShopId(param.getUserId().toString(), param.getShopId().toString());
|
||||||
TbOrderInfo tbOrderInfo = orderInfoMapper.selectByPrimaryKey(param.getOrderId());
|
TbOrderInfo tbOrderInfo = orderInfoMapper.selectByPrimaryKey(param.getOrderId());
|
||||||
List<TbOrderDetail> tbOrderDetails = orderDetailMapper.selectAllByOrderId(param.getOrderId());
|
List<TbOrderDetail> tbOrderDetails = orderDetailMapper.selectAllByOrderId(param.getOrderId());
|
||||||
|
|||||||
Reference in New Issue
Block a user