Browse Source

修改學時審核

change 3 years ago
parent
commit
9d647be409

+ 4 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/user/bo/UserQueryBo.java

@@ -102,6 +102,10 @@ public class UserQueryBo extends BaseEntity {
 	@ApiModelProperty("状态 1正常 0关闭")
 	private List<Integer> status;
 
+	/** 用户积分 */
+	@ApiModelProperty("是否分班 1分班 不分班不傳")
+	private Long gradePoint;
+
 
 	/** 學員編碼 */
 	@ApiModelProperty("學員編碼")

+ 6 - 0
zhongzheng-system/src/main/resources/mapper/modules/user/UserMapper.xml

@@ -154,10 +154,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         </if>
         <if test="idCard != null and idCard != ''" >
             AND u.id_card = #{idCard}
+        </if>
+          <if test="realname != null and realname != ''" >
+            AND u.realname like concat('%', #{realname}, '%')
         </if>
         <if test="userId != null and userId != ''" >
             AND u.user_id = #{userId}
         </if>
+        <if test="gradePoint != null and gradePoint != ''" >
+            (SELECT COUNT(u.user_id) FROM class_grade_user u where 1=1 AND u.status in (1) and u.user_id= #{userId}) > 0
+        </if>
     </select>