AttrConfigDao.xml 1.15 KB
<?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.AttrConfigDao">
    <resultMap id="Base_Result_Map" type="com.diligrp.xtrade.gateway.repository.entity.GatewayAttrConfig">
        <id property="id" column="id"/>
        <result property="serviceId" column="service_id"/>
        <result property="type" column="type"/>
        <result property="attrName" column="attr_name"/>
        <result property="attrArgs" column="attr_args"/>
        <result property="description" column="description"/>
        <result property="sortOrder" column="sort_order"/>
        <result property="isDel" column="is_del"/>
        <result property="modifiedTime" column="modified_time"/>
        <result property="createdTime" column="created_time"/>
    </resultMap>

    <select id="findAllForLoad" resultMap="Base_Result_Map">
        SELECT service_id,
               type,
               attr_name,
               attr_args,
               sort_order
        FROM t_attr_config
        WHERE is_del = 0
    </select>
</mapper>