Эх сурвалжийг харах

fit 查询班级学员列表新增字段

tanzh 3 жил өмнө
parent
commit
7678d0def4

+ 8 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/grade/bo/ClassGradeUserQueryBo.java

@@ -243,4 +243,12 @@ public class ClassGradeUserQueryBo extends BaseEntity {
 	 */
 	@ApiModelProperty("商品名称")
 	private String goodsName;
+
+	/**
+	 * 有接口标识(0无配置 1有接口 2无接口)
+	 */
+	@ApiModelProperty("有接口标识")
+	private Long hasInterface;
+
+
 }

+ 5 - 2
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -428,10 +428,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="majorId != null and majorId != ''">
             AND m.id = #{majorId}
         </if>
-        <if test="interfaceAccountId != null and interfaceAccountId != ''">
+        <if test="hasInterface != null and noInterfaceAccountId == 0">
+            AND cg.interface_account_id is null AND cg.no_interface_account_id is null
+        </if>
+        <if test="hasInterface != null and noInterfaceAccountId == 1">
             AND cg.interface_account_id is not null
         </if>
-        <if test="noInterfaceAccountId != null and noInterfaceAccountId != ''">
+        <if test="hasInterface != null and noInterfaceAccountId == 2">
             AND cg.no_interface_account_id is not null
         </if>
         order by user_info_status desc ,user_status desc ,cgu.id desc