<?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.tofly.gpsboot.mapper.plan.PlanchildtypeMapper">

    <resultMap id="planchildtypeMap" type="com.tofly.pojo.plan.Planchildtype">
        <id property="id" column="ID"/>
        <result property="planChildId" column="PLAN_Child_ID"/>
        <result property="typeId" column="TYPE_ID"/>
        <result property="completionRate" column="COMPLETION_RATE"/>
        <result property="percent" column="PERCENT"/>
        <result property="overCount" column="OVER_COUNT"/>
        <result property="totalCount" column="TOTAL_COUNT"/>
        <result property="userId" column="USER_ID"/>
        <result property="overLength" column="OVER_LENGTH"/>
        <result property="totalLength" column="TOTAL_LENGTH"/>
        <association property="typeName" column="TYPE_ID" select="com.tofly.gpsboot.mapper.plan.PlantypeMapper.getTypeName"/>
        <association property="userIdName" column="USER_ID"
                     select="com.tofly.gpsboot.mapper.plan.HydrantrecordMapper.getRealName"/>
    </resultMap>


</mapper>
