RouteDao.xml 916 Bytes
<?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="com.diligrp.xtrade.gateway.repository.dao.RouteDao">
    <resultMap id="Base_Result_Map" type="com.diligrp.xtrade.gateway.repository.entity.GatewayConfig">
        <id property="id" column="id"/>
        <result property="url" column="url"/>
        <result property="serviceId" column="service_id"/>
        <result property="createdTime" column="created_time"/>
        <result property="modifiedTime" column="modified_time"/>
        <result property="description" column="description"/>
        <result property="isDel" column="is_del"/>
    </resultMap>

    <select id="findAllForLoad" resultMap="Base_Result_Map">
        SELECT
         url,service_id
        FROM
          t_route
        WHERE
          is_del=0
    </select>
</mapper>