...
|
...
|
@@ -99,6 +99,9 @@ class CouponModel extends global.yoho.BaseModel { |
|
|
);
|
|
|
}
|
|
|
|
|
|
couponNoCid(couponId) {
|
|
|
return mysqlCli.query(`select count(1) as count from ${TABLE_COUPON_NO} where coupon_id = :couponId `, {couponId});
|
|
|
}
|
|
|
|
|
|
couponNoListJoinUser(couponId) {
|
|
|
return mysqlCli.query(
|
...
|
...
|
@@ -121,7 +124,6 @@ class CouponModel extends global.yoho.BaseModel { |
|
|
deleteCouponById(id) {
|
|
|
return mysqlCli.query(`DELETE FROM ${TABLE_COUPON} WHERE id = :id `, {id});
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
module.exports = CouponModel; |
...
|
...
|
|