优化
This commit is contained in:
@ -262,7 +262,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
LEFT JOIN bgt_project_recruit as b on(b.id = a.recruit_id)
|
||||
WHERE
|
||||
a.user_id = #{userId}
|
||||
and (a.status = "3" or a.status = "5" or a.status = "6")
|
||||
<if test="type!=null and type!='1'">
|
||||
and a.status in ("3","5","6")
|
||||
</if>
|
||||
<if test="type!=null and type!='2'">
|
||||
and a.status in ("1","3","5","6")
|
||||
</if>
|
||||
and a.del_flag = "0"
|
||||
GROUP BY a.recruit_id
|
||||
</select>
|
||||
|
@ -85,7 +85,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
a.user_id,
|
||||
a.status,
|
||||
b.username,
|
||||
b.avatar_name,
|
||||
b.avatar_name as avatarName,
|
||||
b.score
|
||||
FROM
|
||||
bgt_project_recruit_apply as a
|
||||
|
@ -125,10 +125,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
a.recipient_type = "1" AND
|
||||
a.recipient_id = #{req.recipientId} AND
|
||||
<if test="req.largeType !=null and req.largeType!='2'">
|
||||
<if test="req.largeType !=null and req.largeType==2">
|
||||
a.message_large_type = '2' AND
|
||||
</if>
|
||||
<if test="req.largeType !=null and req.largeType!='3'">
|
||||
<if test="req.largeType !=null and req.largeType==3">
|
||||
a.is_operation = '1' AND
|
||||
</if>
|
||||
<if test="req.rq!=null">
|
||||
|
Reference in New Issue
Block a user