群聊优惠券活动

This commit is contained in:
2025-12-03 09:19:51 +08:00
parent db43d45f9d
commit 9942a47bd3
3 changed files with 7 additions and 5 deletions

View File

@@ -35,7 +35,7 @@ public class ChatCouponServiceImpl extends ServiceImpl<ChatCouponMapper, ChatCou
@Override
@Transactional
public void createChatCoupon(Long shopId, ChatCouponDTO chatCoupon) {
public ChatCoupon createChatCoupon(Long shopId, ChatCouponDTO chatCoupon) {
ShopCoupon coupon = couponService.getOne(QueryWrapper.create()
.eq(ShopCoupon::getId, chatCoupon.getCouponId())
);
@@ -62,6 +62,7 @@ public class ChatCouponServiceImpl extends ServiceImpl<ChatCouponMapper, ChatCou
MkShopCouponRecord record = recordService.assembleRecord(saveChatCoupon.getId(), coupon);
saveChatCoupon.setCouponJson(JSONObject.toJSONString(record));
updateById(saveChatCoupon);
return saveChatCoupon;
}