中扬CRM客户关系管理系统
#
lsh
2024-04-15 13a34d2197b001799ef8f0f09e5b48af2add0926
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.zy.crm.system.mapper.DicMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="com.zy.crm.system.entity.Dic">
        <id column="code" property="code" />
        <result column="name" property="name" />
        <result column="parent" property="parent" />
 
    </resultMap>
 
    <select id="selectByName" resultMap="BaseResultMap">
        select top 1 *
        from sys_dic
        where 1=1
        and name = #{name}
    </select>
 
</mapper>