<?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.feesapi.bmgl.mapper.SysParentCodeMapper">
    <select id="selectMaxId" resultType="decimal">
        SELECT NVL(MAX(to_number(PCID)),0) FROM SYS_PARENT_CODE
    </select>
    <select id="selectCount" resultType="int">
        SELECT COUNT(0) SL FROM sys_child_code WHERE   PCID=#{PcId}
    </select>
    <resultMap id="sysParentCodeMap" type="com.tofly.feesapi.bmgl.entity.SysParentCode">
        <id property="pcid" column="PCID"/>
        <result property="pcname" column="PCNAME"/>
    </resultMap>


</mapper>
