LHB 2 долоо хоног өмнө
parent
commit
c0a5ffcd93

+ 6 - 6
blade-service/blade-business/src/main/java/org/springblade/business/mapper/ArchiveFileMapper.xml

@@ -134,12 +134,12 @@
         <if test="vo.authCode !=null and vo.authCode !=''">
             <choose>
                 <when test="vo.extType != null">
-                    AND (t.tree_code = #{authCode} or t.tree_code = #{contractId} or t.parent_id = 0
-                        or m.tree_code = #{authCode} or m.tree_code = #{contractId} or m.parent_id = 0
+                    AND (t.tree_code = #{vo.authCode} or t.tree_code = #{vo.contractId} or t.parent_id = 0
+                        or m.tree_code = #{vo.authCode} or m.tree_code = #{vo.contractId} or m.parent_id = 0
                     )
                 </when>
                 <otherwise>
-                    AND (t.tree_code = #{authCode} or t.tree_code = #{contractId} or t.parent_id = 0)
+                    AND (t.tree_code = #{vo.authCode} or t.tree_code = #{vo.contractId} or t.parent_id = 0)
                 </otherwise>
             </choose>
         </if>
@@ -219,12 +219,12 @@
         <if test="vo.authCode !=null and vo.authCode !=''">
             <choose>
                 <when test="vo.extType != null">
-                    AND (t.tree_code = #{authCode} or t.tree_code = #{contractId} or t.parent_id = 0
-                    or m.tree_code = #{authCode} or m.tree_code = #{contractId} or m.parent_id = 0
+                    AND (t.tree_code = #{vo.authCode} or t.tree_code = #{vo.contractId} or t.parent_id = 0
+                    or m.tree_code = #{vo.authCode} or m.tree_code = #{vo.contractId} or m.parent_id = 0
                     )
                 </when>
                 <otherwise>
-                    AND (t.tree_code = #{authCode} or t.tree_code = #{contractId} or t.parent_id = 0)
+                    AND (t.tree_code = #{vo.authCode} or t.tree_code = #{vo.contractId} or t.parent_id = 0)
                 </otherwise>
             </choose>
         </if>