From 9f394d71a1ccbcfbb2f4f3696855cdc5a2b506fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E4=B9=85=E5=93=A5?= <787952492@qq.com> Date: Fri, 27 May 2022 17:27:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9C=E5=9C=BA=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../module/farm/controller/admin/task/vo/TaskBaseVO.java | 4 ++++ .../module/farm/controller/admin/task/vo/TaskExcelVO.java | 7 +++++++ .../farm/controller/admin/task/vo/TaskExportReqVO.java | 4 ++++ .../farm/controller/admin/task/vo/TaskPageReqVO.java | 4 ++++ .../farm/controller/admin/task/vo/TaskPageSearchReqVO.java | 4 ++++ .../yudao/module/farm/dal/dataobject/task/TaskDO.java | 5 +++++ .../yudao/module/farm/dal/mysql/task/TaskMapper.java | 6 ++++++ 7 files changed, 34 insertions(+) diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java index 80af1c79..12e0e090 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java @@ -15,6 +15,10 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ @Data public class TaskBaseVO { + private Integer projectId; + private Integer cropId; + private Integer cropNum; + @ApiModelProperty(value = "") private String name; diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java index 50734495..6ee06dc6 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java @@ -17,6 +17,13 @@ public class TaskExcelVO { @ExcelProperty("") private Long id; + @ExcelProperty("") + private Integer projectId; + @ExcelProperty("") + private Integer cropId; + @ExcelProperty("") + private Integer cropNum; + @ExcelProperty("") private String name; diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java index 14ce5ac0..6c72327c 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java @@ -12,6 +12,10 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ @Data public class TaskExportReqVO { + private Integer projectId; + private Integer cropId; + private Integer cropNum; + @ApiModelProperty(value = "") private String name; diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java index 8ae41928..7a4eeb4d 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java @@ -14,6 +14,10 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ @ToString(callSuper = true) public class TaskPageReqVO extends PageParam { + private Integer projectId; + private Integer cropId; + private Integer cropNum; + @ApiModelProperty(value = "") private String name; diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java index d21b6b9d..0132b9b9 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java @@ -19,6 +19,10 @@ import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_ @ToString(callSuper = true) public class TaskPageSearchReqVO extends PageParam { + private Integer projectId; + private Integer cropId; + private Integer cropNum; + @ApiModelProperty(value = "") private String name; diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java index 01575926..d3cce2fa 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java @@ -24,6 +24,11 @@ public class TaskDO extends BaseDO { */ @TableId private Long id; + + private Integer projectId; + private Integer cropId; + private Integer cropNum; + /** * */ diff --git a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java index f65f266e..90e7ce4a 100644 --- a/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java +++ b/zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java @@ -19,6 +19,9 @@ public interface TaskMapper extends BaseMapperX { default PageResult selectPage(TaskPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() + .eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) + .eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) + .eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) .likeIfPresent(TaskDO::getName, reqVO.getName()) .eqIfPresent(TaskDO::getContent, reqVO.getContent()) .eqIfPresent(TaskDO::getResources, reqVO.getResources()) @@ -32,6 +35,9 @@ public interface TaskMapper extends BaseMapperX { default List selectList(TaskExportReqVO reqVO) { return selectList(new LambdaQueryWrapperX() + .eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) + .eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) + .eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) .likeIfPresent(TaskDO::getName, reqVO.getName()) .eqIfPresent(TaskDO::getContent, reqVO.getContent()) .eqIfPresent(TaskDO::getResources, reqVO.getResources())