Bladeren bron

调整boolean参数

chenendian 2 weken geleden
bovenliggende
commit
8cae182c0f

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

@@ -18,7 +18,7 @@ public class ProjectFilterVo {
      */
     private Integer projectType;
 
-    private Integer hasOnchain;
+    private Boolean isOnchain;
 
     // 分页参数
     private Integer pageNum = 1; // 当前页码

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

@@ -47,7 +47,7 @@
             <if test="projectType != null and projectType != 0">
                 AND project_type = #{projectType}
             </if>
-            <if test="hasOnchain != null and hasOnchain == 1">
+            <if test="isOnchain != null and isOnchain==true">
                 AND on_chain_num > 0
             </if>