25 lines
1.0 KiB
XML
25 lines
1.0 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="net.shapelight.modules.ten.dao.TenLabelDao">
|
|
|
|
<!-- 可根据自己的需求,是否要使用 -->
|
|
<resultMap type="net.shapelight.modules.ten.entity.TenLabelEntity" id="tenLabelMap">
|
|
<result property="labelId" column="label_id"/>
|
|
<result property="name" column="name"/>
|
|
<result property="type" column="type"/>
|
|
<result property="createTime" column="create_time"/>
|
|
<result property="createBy" column="create_by"/>
|
|
<result property="lastUpdateTime" column="last_update_time"/>
|
|
<result property="lastUpdateBy" column="last_update_by"/>
|
|
<result property="deleteFlag" column="delete_flag"/>
|
|
<result property="tenantId" column="tenant_id"/>
|
|
</resultMap>
|
|
|
|
|
|
<select id="getLabelName" resultType="string">
|
|
select name from ten_label where label_id = #{labelId}
|
|
</select>
|
|
|
|
|
|
</mapper> |