|
@@ -21,6 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="sendStatus" column="send_status"/>
|
|
|
<result property="receiptStatus" column="receipt_status"/>
|
|
|
<result property="realName" column="realname"/>
|
|
|
+ <result property="idCard" column="id_card"/>
|
|
|
<result property="telPhone" column="telphone"/>
|
|
|
</resultMap>
|
|
|
|
|
@@ -40,5 +41,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="informId != null and informId != ''">
|
|
|
and iu.inform_id = #{informId}
|
|
|
</if>
|
|
|
+ <if test="sendStatus != null and sendStatus != ''">
|
|
|
+ and iu.send_status = #{sendStatus}
|
|
|
+ </if>
|
|
|
+ <if test="receiptName != null and receiptName != ''">
|
|
|
+ and (SELECT u.id_card FROM `user` u where iu.user_id=u.user_id) like concat('%', #{receiptName}, '%') or
|
|
|
+ (SELECT u.id_card FROM `user` u where iu.user_id=u.user_id)like concat('%', #{receiptName}, '%') or
|
|
|
+ (SELECT count(cg.class_name) FROM class_grade_user cgu LEFT JOIN class_grade cg on cgu.grade_id = cg.grade_id where cgu.user_id=iu.user_id and cgu.`status`=1 and cg.`status`=1 and cg.class_name like concat('%', #{receiptName}, '%')) > 0
|
|
|
+ </if>
|
|
|
</select>
|
|
|
</mapper>
|