Files
faw-report-library-boot/adc-da-report/target/classes/mybatis/mapper/mysql/TreeLabelDao.xml
T

27 lines
1.1 KiB
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="parent_id" jdbcType="VARCHAR"/>
<result property="createdate" column="create_date" jdbcType="VARCHAR"/>
<result property="ordernum" column="order_num" jdbcType="DOUBLE"/>
<result property="remark" column="remark" jdbcType="VARCHAR"/>
</resultMap>
<select id="getMaxNum" parameterType="string" resultType="double">
select max(t.order_num)
from ts_tree_label t
where t.parent_id = #{parentId}
</select>
<select id="selectIdByReport" resultType="java.lang.String">
select rl.label_id from
ts_report_label rl
where rl.report_id = #{reportId}
</select>
</mapper>