anderx před 3 roky
rodič
revize
2d70371b6b

+ 5 - 0
src/main/java/com/goafanti/RD/service/impl/RDServiceImpl.java

@@ -87,6 +87,11 @@ public class RDServiceImpl extends BaseMybatisDao<RdDetailsMapper> implements RD
         param.put("RdStart", in.getRdStart());
         param.put("RdEnd", in.getRdStart());
         param.put("RdName", in.getRdName());
+        if (TokenManager.hasRole(AFTConstants.SUPERADMIN)||TokenManager.hasRole(AFTConstants.APPROVAL_DECISION_AUDITOR)||TokenManager.hasRole(AFTConstants.CED)){
+
+        }else {
+            param.put("aid", TokenManager.getAdminId());
+        }
         return param;
     }
 

+ 6 - 0
src/main/java/com/goafanti/common/mapper/RdDetailsMapper.xml

@@ -307,6 +307,9 @@
     <if test="RdName !=null ">
       and a.rd_name =#{RdName}
     </if>
+    <if test="aid !=null ">
+      and a.aid =#{aid}
+    </if>
     <if test="page_sql !=null ">
         ${page_sql}
     </if>
@@ -322,6 +325,9 @@
     <if test="RdName !=null ">
       and a.rd_name =#{RdName}
     </if>
+    <if test="aid !=null ">
+      and a.aid =#{aid}
+    </if>
   </select>
   <insert id="insertBatch">
     insert into rd_details (user_name, rd_no, ip_no,