liuyao 1 год назад
Родитель
Сommit
215eea2d4d

+ 13 - 0
src/main/java/com/dk/oauth/controller/integral/CouponUseController.java

@@ -67,5 +67,18 @@ public class CouponUseController{
         return couponUseService.update(couponUseVO);
     }
 
+    /**
+     * @desc   : 获取优惠劵条数
+     * @date   : 2024/7/29 16:28
+     * @author : 刘尧
+     */
+    @ApiOperation(
+            value = "获取优惠劵条数",
+            notes = "获取优惠劵条数"
+    )
+    @PostMapping({"count_by"})
+    public Long countByCond(@RequestBody CouponUseQuery couponUseQuery){
+        return couponUseService.countByCond(couponUseQuery);
+    }
 
 }

+ 9 - 1
src/main/java/com/dk/oauth/service/integral/CouponUseService.java

@@ -56,7 +56,15 @@ public class CouponUseService extends BaseService<CouponUse> {
         return super.mergeListWithCount(couponReceiveQuery, couponUseMapper.selectByCond(couponReceiveQuery),
                 couponUseMapper.countByCond(couponReceiveQuery));
     }
-
+    /**
+     * @desc : 条件查询
+     * @date : 2024/7/26 11:07
+     * @author : 寇珊珊
+     */
+    @Pagination
+    public Long countByCond(CouponUseQuery couponReceiveQuery) {
+        return couponUseMapper.countByCond(couponReceiveQuery);
+    }
     /**
      * @desc : 更新
      * @date : 2024/7/26 16:50