SysParentCodeMapper.xml 691 B

1234567891011121314151617
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.tofly.feesapi.bmgl.mapper.SysParentCodeMapper">
  4. <select id="selectMaxId" resultType="decimal">
  5. SELECT NVL(MAX(to_number(PCID)),0) FROM SYS_PARENT_CODE
  6. </select>
  7. <select id="selectCount" resultType="int">
  8. SELECT COUNT(0) SL FROM sys_child_code WHERE PCID=#{PcId}
  9. </select>
  10. <resultMap id="sysParentCodeMap" type="com.tofly.feesapi.bmgl.entity.SysParentCode">
  11. <id property="pcid" column="PCID"/>
  12. <result property="pcname" column="PCNAME"/>
  13. </resultMap>
  14. </mapper>