Helius
2021-06-30 02b38bb7c08d68fffc6af25e4ba00a456d96e94e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?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.xzx.gc.order.mapper.HomeServiceInfoMapper">
  <resultMap id="BaseResultMap" type="com.xzx.gc.entity.HomeServiceInfo">
    <!--
      WARNING - @mbg.generated
    -->
    <id column="id" jdbcType="BIGINT" property="id" />
    <result column="name" jdbcType="VARCHAR" property="name" />
    <result column="price" jdbcType="VARCHAR" property="price" />
    <result column="mark" jdbcType="VARCHAR" property="mark" />
    <result column="create_time" jdbcType="VARCHAR" property="createTime" />
    <result column="picture" jdbcType="VARCHAR" property="picture" />
    <result column="parent_id" jdbcType="BIGINT" property="parentId" />
    <result column="sort" jdbcType="SMALLINT" property="sort" />
    <result column="unit" jdbcType="VARCHAR" property="unit" />
    <result column="del_flag" jdbcType="BIT" property="delFlag" />
    <result column="show_flag" jdbcType="SMALLINT" property="showFlag" />
    <result column="level" property="level" />
  </resultMap>
 
 
    <select id="findFather" resultMap="BaseResultMap">
        SELECT a.*,c.name as parentName  from xzx_sys_home_service_info a
        inner join xzx_sys_home_service_info c on a.parent_id=c.id
        WHERE a.id=#{id}
    </select>
</mapper>