zhuzeyu 11 mesi fa
parent
commit
7afaae5334

+ 9 - 0
src/main/java/cn/ezhizao/project/business/product/controller/BizProductController.java

@@ -88,6 +88,15 @@ public class BizProductController extends BaseController {
         util.exportExcel(response, list, "产品管理数据");
     }
 
+
+    @GetMapping("/getTotal")
+    public AjaxResult getTotal()
+    {
+        BizProduct item = new BizProduct();
+        List<BizProduct> list = bizProductService.query().eq("deleted",0).list();
+        int size = list.size();
+        return success(size);
+    }
     @GetMapping(value = "/getById/{id}")
     public AjaxResult getById(@PathVariable("id") Long id) {
         return success(bizProductService.getById(id));