|
@@ -45,9 +45,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
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
|
|
|
+ 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
|
|
|
+ (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>
|