Преглед изворни кода

跟进列表引入查看权限,新增是否是客户归属人判定

anderx пре 1 година
родитељ
комит
0397aee6f5
1 измењених фајлова са 2 додато и 4 уклоњено
  1. 2 4
      src/main/java/com/goafanti/common/mapper/UserSuperEvaluateMapper.xml

+ 2 - 4
src/main/java/com/goafanti/common/mapper/UserSuperEvaluateMapper.xml

@@ -27,7 +27,7 @@ id, uid, aid, content, create_time
         select
         select
           a.id, a.uid, a.aid, a.content, a.create_time as createTime,b.name adminName
           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
         from user_super_evaluate a left join admin b  on a.aid=b.id
-        <where>
+        where 1=1
             <if test="id != null">
             <if test="id != null">
                 and a.id = #{id}
                 and a.id = #{id}
             </if>
             </if>
@@ -38,7 +38,6 @@ id, uid, aid, content, create_time
                 and a.aid = #{aid}
                 and a.aid = #{aid}
             </if>
             </if>
             order by a.create_time desc
             order by a.create_time desc
-        </where>
         <if test="page_sql != null">
         <if test="page_sql != null">
             ${page_sql}
             ${page_sql}
         </if>
         </if>
@@ -48,7 +47,7 @@ id, uid, aid, content, create_time
     <select id="findUserSuperEvaluateCount" resultType="java.lang.Integer">
     <select id="findUserSuperEvaluateCount" resultType="java.lang.Integer">
         select count(1)
         select count(1)
         from user_super_evaluate
         from user_super_evaluate
-        <where>
+        where 1=1
             <if test="id != null">
             <if test="id != null">
                 and a.id = #{id}
                 and a.id = #{id}
             </if>
             </if>
@@ -58,7 +57,6 @@ id, uid, aid, content, create_time
             <if test="aid != null and aid != ''">
             <if test="aid != null and aid != ''">
                 and a.aid = #{aid}
                 and a.aid = #{aid}
             </if>
             </if>
-        </where>
     </select>
     </select>
 
 
     <!--新增所有列-->
     <!--新增所有列-->