|
|
@@ -28,13 +28,10 @@ id, uid, aid, content, create_time
|
|
|
a.id, a.uid, a.aid, a.content, a.create_time as createTime,b.name adminName
|
|
|
from user_super_evaluate a left join admin b on a.aid=b.id
|
|
|
where 1=1
|
|
|
- <if test="id != null">
|
|
|
- and a.id = #{id}
|
|
|
- </if>
|
|
|
<if test="uid != null and uid != ''">
|
|
|
and a.uid = #{uid}
|
|
|
</if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
+ <if test="in.aid != null and in.aid != ''">
|
|
|
and a.aid = #{aid}
|
|
|
</if>
|
|
|
order by a.create_time desc
|
|
|
@@ -48,15 +45,12 @@ id, uid, aid, content, create_time
|
|
|
select count(1)
|
|
|
from user_super_evaluate
|
|
|
where 1=1
|
|
|
- <if test="id != null">
|
|
|
- and a.id = #{id}
|
|
|
- </if>
|
|
|
- <if test="uid != null and uid != ''">
|
|
|
- and a.uid = #{uid}
|
|
|
- </if>
|
|
|
- <if test="aid != null and aid != ''">
|
|
|
- and a.aid = #{aid}
|
|
|
- </if>
|
|
|
+ <if test="uid != null and uid != ''">
|
|
|
+ and a.uid = #{uid}
|
|
|
+ </if>
|
|
|
+ <if test="aid != null and aid != ''">
|
|
|
+ and a.aid = #{aid}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<!--新增所有列-->
|