Browse Source

优化任务

zyh
小久哥 3 years ago
parent
commit
d434b2084f
  1. 7
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java
  2. 7
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java
  3. 7
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java
  4. 7
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java
  5. 7
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java
  6. 10
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java
  7. 8
      zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java

7
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskBaseVO.java

@ -19,11 +19,8 @@ public class TaskBaseVO {
private Integer cropId; private Integer cropId;
private Integer cropNum; private Integer cropNum;
@ApiModelProperty(value = "") private Integer taskCateId;
private String name; private Integer taskCateName;
@ApiModelProperty(value = "")
private String content;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private Object resources; private Object resources;

7
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExcelVO.java

@ -24,11 +24,8 @@ public class TaskExcelVO {
@ExcelProperty("") @ExcelProperty("")
private Integer cropNum; private Integer cropNum;
@ExcelProperty("") private Integer taskCateId;
private String name; private Integer taskCateName;
@ExcelProperty("")
private String content;
@ExcelProperty("") @ExcelProperty("")
private Object resources; private Object resources;

7
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskExportReqVO.java

@ -16,11 +16,8 @@ public class TaskExportReqVO {
private Integer cropId; private Integer cropId;
private Integer cropNum; private Integer cropNum;
@ApiModelProperty(value = "") private Integer taskCateId;
private String name; private Integer taskCateName;
@ApiModelProperty(value = "")
private String content;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private Object resources; private Object resources;

7
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageReqVO.java

@ -18,11 +18,8 @@ public class TaskPageReqVO extends PageParam {
private Integer cropId; private Integer cropId;
private Integer cropNum; private Integer cropNum;
@ApiModelProperty(value = "") private Integer taskCateId;
private String name; private Integer taskCateName;
@ApiModelProperty(value = "")
private String content;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private Object resources; private Object resources;

7
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/controller/admin/task/vo/TaskPageSearchReqVO.java

@ -23,11 +23,8 @@ public class TaskPageSearchReqVO extends PageParam {
private Integer cropId; private Integer cropId;
private Integer cropNum; private Integer cropNum;
@ApiModelProperty(value = "") private Integer taskCateId;
private String name; private Integer taskCateName;
@ApiModelProperty(value = "")
private String content;
@ApiModelProperty(value = "") @ApiModelProperty(value = "")
private String resources; private String resources;

10
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/dataobject/task/TaskDO.java

@ -33,14 +33,8 @@ public class TaskDO extends BaseDO {
private Object executorPerson; private Object executorPerson;
private Integer workingHours; private Integer workingHours;
/** private Integer taskCateId;
* private Integer taskCateName;
*/
private String name;
/**
*
*/
private String content;
/** /**
* *
*/ */

8
zsw-farm/zsw-farm-impl/src/main/java/cn/iocoder/yudao/module/farm/dal/mysql/task/TaskMapper.java

@ -22,8 +22,8 @@ public interface TaskMapper extends BaseMapperX<TaskDO> {
.eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) .eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId())
.eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) .eqIfPresent(TaskDO::getCropId, reqVO.getCropId())
.eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) .eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum())
.likeIfPresent(TaskDO::getName, reqVO.getName()) .eqIfPresent(TaskDO::getTaskCateId, reqVO.getTaskCateId())
.eqIfPresent(TaskDO::getContent, reqVO.getContent()) .eqIfPresent(TaskDO::getTaskCateName, reqVO.getTaskCateName())
.eqIfPresent(TaskDO::getResources, reqVO.getResources()) .eqIfPresent(TaskDO::getResources, reqVO.getResources())
.eqIfPresent(TaskDO::getImages, reqVO.getImages()) .eqIfPresent(TaskDO::getImages, reqVO.getImages())
.betweenIfPresent(TaskDO::getPlanStartTime, reqVO.getBeginPlanStartTime(), reqVO.getEndPlanStartTime()) .betweenIfPresent(TaskDO::getPlanStartTime, reqVO.getBeginPlanStartTime(), reqVO.getEndPlanStartTime())
@ -38,8 +38,8 @@ public interface TaskMapper extends BaseMapperX<TaskDO> {
.eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId()) .eqIfPresent(TaskDO::getProjectId, reqVO.getProjectId())
.eqIfPresent(TaskDO::getCropId, reqVO.getCropId()) .eqIfPresent(TaskDO::getCropId, reqVO.getCropId())
.eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum()) .eqIfPresent(TaskDO::getCropNum, reqVO.getCropNum())
.likeIfPresent(TaskDO::getName, reqVO.getName()) .eqIfPresent(TaskDO::getTaskCateId, reqVO.getTaskCateId())
.eqIfPresent(TaskDO::getContent, reqVO.getContent()) .eqIfPresent(TaskDO::getTaskCateName, reqVO.getTaskCateName())
.eqIfPresent(TaskDO::getResources, reqVO.getResources()) .eqIfPresent(TaskDO::getResources, reqVO.getResources())
.eqIfPresent(TaskDO::getImages, reqVO.getImages()) .eqIfPresent(TaskDO::getImages, reqVO.getImages())
.betweenIfPresent(TaskDO::getPlanStartTime, reqVO.getBeginPlanStartTime(), reqVO.getEndPlanStartTime()) .betweenIfPresent(TaskDO::getPlanStartTime, reqVO.getBeginPlanStartTime(), reqVO.getEndPlanStartTime())

Loading…
Cancel
Save