|
|
@@ -39,8 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
LEFT JOIN `b_busi_wish_universities` us ON SUBSTRING_INDEX(p.`direct_key`, '_', 1) = us.`id`
|
|
|
<where>
|
|
|
<if test="studentId != null "> and ts.`student_id` = #{studentId}</if>
|
|
|
- <if test="status != null and status != 4"> and IF(e.`state` IS NULL, 2, e.`state`) < 4</if>
|
|
|
- <if test="status != null and status == 4"> and e.`state` >= 4</if>
|
|
|
+ <if test="state != null and state != 4"> and IF(e.`state` IS NULL, 2, e.`state`) < 4</if>
|
|
|
+ <if test="state != null and state == 4"> and e.`state` >= 4</if>
|
|
|
</where>
|
|
|
ORDER BY ts.`create_time` DESC
|
|
|
</select>
|