From e3c0bc3c5c6f0c6a3fc1abbe62a45744764bacfd Mon Sep 17 00:00:00 2001 From: "28353131@qq.com" <28353131@qq.com> Date: Sat, 28 Nov 2020 12:53:37 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AE=8C=E5=96=84=E6=AF=8F=E5=91=A8?= =?UTF-8?q?=E8=8F=9C=E8=B0=B1=E5=8A=9F=E8=83=BD=EF=BC=8C=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=E6=B7=BB=E5=8A=A0=E5=92=8C=E5=88=A0=E9=99=A4?= =?UTF-8?q?=202=E3=80=81=E5=88=97=E8=A1=A8=E4=B8=AD=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=88=97=E6=98=BE=E7=A4=BA=E6=95=88=E6=9E=9C?= =?UTF-8?q?=203=E3=80=81=E5=A2=9E=E5=8A=A0=E8=8F=9C=E5=93=81=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/FtWeekMenuDaoController.java | 23 +- .../system/fantang/domain/FtWeekMenuDao.java | 2 +- ruoyi-ui/src/views/fantang/weekMenu/index.vue | 462 ++++++++++-------- 3 files changed, 253 insertions(+), 234 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtWeekMenuDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtWeekMenuDaoController.java index 47af103a2..bf43cbc72 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtWeekMenuDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtWeekMenuDaoController.java @@ -7,6 +7,7 @@ import com.ruoyi.common.core.controller.BaseController; import com.ruoyi.common.core.domain.AjaxResult; import com.ruoyi.common.core.page.TableDataInfo; import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.common.utils.StringUtils; import com.ruoyi.common.utils.poi.ExcelUtil; import com.ruoyi.system.fantang.domain.FtWeekMenuDao; import com.ruoyi.system.fantang.service.IFtWeekMenuDaoService; @@ -38,31 +39,21 @@ public class FtWeekMenuDaoController extends BaseController { @GetMapping("/list") public TableDataInfo list(FtWeekMenuDao ftWeekMenuDao) { startPage(); - LambdaQueryWrapper lqw = Wrappers.lambdaQuery(ftWeekMenuDao); - if (ftWeekMenuDao.getDinnerType() != null) { - lqw.eq(FtWeekMenuDao::getDinnerType, ftWeekMenuDao.getDinnerType()); - } - if (ftWeekMenuDao.getWeekday() != null) { - lqw.eq(FtWeekMenuDao::getWeekday, ftWeekMenuDao.getWeekday()); - } - if (ftWeekMenuDao.getFlag() != null) { - lqw.eq(FtWeekMenuDao::getFlag, ftWeekMenuDao.getFlag()); - } - List list = iFtWeekMenuDaoService.list(lqw); + List list = iFtWeekMenuDaoService.list(null); return getDataTable(list); } /** * 导出每周菜单列表 */ - @PreAuthorize("@ss.hasPermi('fantang:weekMenu:export')") - @Log(title = "每周菜单", businessType = BusinessType.EXPORT) - @GetMapping("/export") + @PreAuthorize("@ss.hasPermi('fantang:weekMenu:export')" ) + @Log(title = "每周菜单" , businessType = BusinessType.EXPORT) + @GetMapping("/export" ) public AjaxResult export(FtWeekMenuDao ftWeekMenuDao) { LambdaQueryWrapper lqw = new LambdaQueryWrapper(ftWeekMenuDao); List list = iFtWeekMenuDaoService.list(lqw); - ExcelUtil util = new ExcelUtil(FtWeekMenuDao.class); - return util.exportExcel(list, "weekMenu"); + ExcelUtil util = new ExcelUtil(FtWeekMenuDao. class); + return util.exportExcel(list, "weekMenu" ); } /** diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/domain/FtWeekMenuDao.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/domain/FtWeekMenuDao.java index cafc25d88..ac85487c6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/domain/FtWeekMenuDao.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/domain/FtWeekMenuDao.java @@ -54,5 +54,5 @@ private static final long serialVersionUID=1L; /** 启用标志 */ @Excel(name = "启用标志") - private Integer flag; + private Boolean flag; } diff --git a/ruoyi-ui/src/views/fantang/weekMenu/index.vue b/ruoyi-ui/src/views/fantang/weekMenu/index.vue index 624624bba..83f760cb9 100644 --- a/ruoyi-ui/src/views/fantang/weekMenu/index.vue +++ b/ruoyi-ui/src/views/fantang/weekMenu/index.vue @@ -1,40 +1,7 @@