Selaa lähdekoodia

fix 添加搜索条件

tanzh 3 vuotta sitten
vanhempi
commit
c6734e2898

+ 6 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/bo/ClassGradeQueryBo.java

@@ -128,4 +128,10 @@ public class ClassGradeQueryBo extends BaseEntity {
 	/** 查找key */
 	@ApiModelProperty("searchKey")
 	private String searchKey;
+
+	/**
+	 * 有接口标识(0无配置 1有接口 2无接口)
+	 */
+	@ApiModelProperty("有接口标识")
+	private Integer hasInterface;
 }

+ 9 - 0
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -290,6 +290,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             AND s.goods_id =#{goodsId}
             ) >0
         </if>
+        <if test="hasInterface != null and hasInterface == 0">
+            AND g.interface_account_id is null AND g.no_interface_account_id is null
+        </if>
+        <if test="hasInterface != null and hasInterface == 1">
+            AND g.interface_account_id is not null
+        </if>
+        <if test="hasInterface != null and hasInterface == 2">
+            AND g.no_interface_account_id is not null
+        </if>
         order by g.create_time desc
     </select>