Prechádzať zdrojové kódy

feat: 任务列表查询增加任务名称字段

chenjianhua 6 mesiacov pred
rodič
commit
3106e1d84d

+ 13 - 0
service-base/src/main/java/com/simuwang/base/pojo/dto/query/TaskPageQuery.java

@@ -11,6 +11,11 @@ import com.simuwang.base.common.support.query.PageQuery;
 public class TaskPageQuery extends PageQuery {
 
     /**
+     * 任务名称
+     */
+    private String taskName;
+
+    /**
      * 邮箱地址
      */
     private String email;
@@ -58,4 +63,12 @@ public class TaskPageQuery extends PageQuery {
     public void setTaskType(Integer taskType) {
         this.taskType = taskType;
     }
+
+    public String getTaskName() {
+        return taskName;
+    }
+
+    public void setTaskName(String taskName) {
+        this.taskName = taskName;
+    }
 }

+ 6 - 0
service-base/src/main/resources/mapper/EmailTaskInfoMapper.xml

@@ -45,6 +45,9 @@
         <if test="email != null and email !=''">
             and email like concat('%',#{email},'%')
         </if>
+        <if test="taskName != null and taskName !=''">
+            and task_name like concat('%',#{taskName},'%')
+        </if>
         <if test="startDate != null and startDate !=''">
             and updatetime >= #{startDate}
         </if>
@@ -65,6 +68,9 @@
         <if test="email != null and email !=''">
             and email like concat('%',#{email},'%')
         </if>
+        <if test="taskName != null and taskName !=''">
+            and task_name like concat('%',#{taskName},'%')
+        </if>
         <if test="startDate != null and startDate !=''">
             and updatetime >= #{startDate}
         </if>