longhu 5 일 전
부모
커밋
bc065ace6d

+ 2 - 0
src/main/java/com/hr/repository/jpa/IpTokenInterfaceRepository.java

@@ -20,4 +20,6 @@ public interface IpTokenInterfaceRepository extends JpaRepository<IpTokenInterfa
     BasePageResult<IpTokenInterfacePO> queryList(@Param("aid") Long aid, @Param("statusList") List<String> statusList);
 
     List<IpTokenInterfacePO> queryRefList(@Param("accountId") Long accountId, @Param("interfaceId") Long interfaceId);
+
+    IpTokenInterfacePO getByAidAndIid(@Param("accountId") Long accountId, @Param("interfaceId") Long interfaceId);
 }

+ 1 - 1
src/main/java/com/hr/repository/service/impl/IpOrderServiceImpl.java

@@ -97,7 +97,7 @@ public class IpOrderServiceImpl implements IpOrderService {
         IpAccountPO accountPO = ipAccountRepository.findByAccNo(ipOrderPO.getAccNo());
         IpLogPO ipLog = ipLogRepository.findByOid(ipOrderPO.getId());
         IpInterfacePO ipInterfacePO = ipInterfaceRepository.findById(ipOrderPO.getIid()).get();
-        IpTokenInterfacePO ipTokenInterfacePO = ipTokenInterfaceRepository.findByAidAndIid(accountPO.getId(), ipInterfacePO.getId());
+        IpTokenInterfacePO ipTokenInterfacePO = ipTokenInterfaceRepository.getByAidAndIid(accountPO.getId(), ipInterfacePO.getId());
         Long tid = ipTokenInterfacePO.getTid();
         IpTokenPO ipTokenPO = ipTokenRepository.findById(tid).get();
         InterfaceCalledDetail vo = new InterfaceCalledDetail();

+ 3 - 0
src/main/resources/mapper/IpTokenInterfaceMapper.xml

@@ -11,4 +11,7 @@
     <select id="queryRefList" resultType="com.hr.repository.domain.IpTokenInterfacePO">
         select * from ip_token_interface where 1=1 and aid = :accountId and iid = :interfaceId and status != 'delete'
     </select>
+    <select id="getByAidAndIid" resultType="com.hr.repository.domain.IpTokenInterfacePO">
+        select * from ip_token_interface where 1=1 and aid = :accountId and iid = :interfaceId and status != 'delete'
+    </select>
 </mapper>