22 lines
943 B
XML
22 lines
943 B
XML
<?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.adc.da.report.dao.mysql.TreeLabelDao">
|
|
|
|
<resultMap id="BaseResultMap" type="com.adc.da.report.eo.TreeLabelEntity">
|
|
<id property="id" column="id" jdbcType="VARCHAR"/>
|
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
|
<result property="parentid" column="parentId" jdbcType="VARCHAR"/>
|
|
<result property="createdate" column="createDate" jdbcType="TIMESTAMP"/>
|
|
<result property="ordernum" column="orderNum" jdbcType="INTEGER"/>
|
|
<result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
|
|
</resultMap>
|
|
|
|
<select id="getMaxNum" parameterType="string" resultType="int">
|
|
select max(t.orderNum)
|
|
from TS_TREE_LABEL t
|
|
where parentid = #{parentId}
|
|
</select>
|
|
</mapper>
|