Browse Source

项目列表过滤判断

gushoubang 2 months ago
parent
commit
8118bc19b6

+ 3 - 0
siwei-modules/siwei-apply/src/main/java/com/siwei/apply/domain/vo/ProjectFilterVo.java

@@ -9,6 +9,9 @@ import lombok.Data;
 public class ProjectFilterVo {
     private String name;
     private String code;
+    /**
+     * 项目类型:0-查询全部数据,其他值-按具体类型过滤
+     */
     private Integer projectType;
 
     // 分页参数

+ 2 - 2
siwei-modules/siwei-apply/src/main/resources/mapper/ProjectMapper.xml

@@ -37,7 +37,7 @@
             <if test="code != null and code != ''">
                 AND code LIKE CONCAT('%', #{code}, '%')
             </if>
-            <if test="projectType != null and projectType != ''">
+            <if test="projectType != null and projectType != 0">
                 AND project_type = #{projectType}
             </if>
         </where>
@@ -54,7 +54,7 @@
             <if test="code != null and code != ''">
                 AND code LIKE CONCAT('%', #{code}, '%')
             </if>
-            <if test="projectType != null and projectType != ''">
+            <if test="projectType != null and projectType != 0">
                 AND project_type = #{projectType}
             </if>
         </where>