From 50e5cdbaceee71f000341a434620d10a87b582f5 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期六, 15 八月 2026 17:12:59 +0800
Subject: [PATCH] 修改 用户属性表中userId从number到string
---
src/modules/market/service/coupon/user.ts | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/modules/market/service/coupon/user.ts b/src/modules/market/service/coupon/user.ts
index 566a4da..f8aad00 100644
--- a/src/modules/market/service/coupon/user.ts
+++ b/src/modules/market/service/coupon/user.ts
@@ -23,7 +23,7 @@
* @param idcouponId
* @param userId
*/
- async save(couponId: number, userId: number) {
+ async save(couponId: number, userId: string) {
const couponUser = new MarketCouponUserEntity();
couponUser.userId = userId;
couponUser.couponId = couponId;
@@ -35,7 +35,7 @@
* @param couponId
* @param userId
*/
- async check(couponId: number, userId: number) {
+ async check(couponId: number, userId: string) {
const info = await this.marketCouponUserEntity.findOneBy({
couponId: Equal(couponId),
userId: Equal(userId),
@@ -52,7 +52,7 @@
* @param couponId
* @param userId
*/
- async checkExist(couponId: number, userId: number) {
+ async checkExist(couponId: number, userId: string) {
const info = await this.marketCouponUserEntity.findOneBy({
couponId: Equal(couponId),
userId: Equal(userId),
@@ -65,7 +65,7 @@
* @param couponId
* @param userId
*/
- async use(couponId: number, userId: number) {
+ async use(couponId: number, userId: string) {
await this.marketCouponUserEntity.update(
{ couponId: Equal(couponId), userId: Equal(userId) },
{ status: 1, useTime: new Date() }
--
Gitblit v1.9.1