|
@@ -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));
|