zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >  
 
<mapper namespace="cn.autoform.web.mapper.IpAndPort.IpAndPortMapper">
    
    <!-- myCat策略条件 -->
    <sql id="myCat">
        /*!mycat:sql= select tenantid from FORMDATAMANAGER WHERE TENANTID = '${tenantID}' AND FORMID = '${formID}' */        
    </sql>
    
    <!-- 查询IP、端口号 -->
    <select id="queryIpAndPortByServiceName"   resultType="cn.autoform.db.entity.IpAndPortEntity">
        select
            ip.id,
            ip.ip,
            ip.PORT
        FROM
            ipandport ip
        WHERE
            ip.serviceName = #{serviceName}
    </select>
 
</mapper>