SopDataSourceMapper.xml
1.1 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="cn.com.glsx.process.modules.mapper.SopDataSourceMapper">
<resultMap id="BaseResultMap" type="cn.com.glsx.process.modules.entity.SopDataSource">
<!--
WARNING - @mbg.generated
-->
<result column="id" jdbcType="INTEGER" property="id" />
<result column="db_type" jdbcType="VARCHAR" property="dbType" />
<result column="db_server" jdbcType="VARCHAR" property="dbServer" />
<result column="db_port" jdbcType="VARCHAR" property="dbPort" />
<result column="db_user_name" jdbcType="VARCHAR" property="dbUserName" />
<result column="db_pwd" jdbcType="VARCHAR" property="dbPwd" />
<result column="name" jdbcType="VARCHAR" property="name" />
<result column="db_name" jdbcType="VARCHAR" property="dbName" />
</resultMap>
<select id="findByName" resultMap="BaseResultMap"
parameterType="java.lang.String">
select *
from sop_data_source
where name = #{name}
</select>
</mapper>