ZhiYeJianKang/职业健康平台后端/bin/mappings/modules/reportCustomer/sysOfficeDaoMapper.xml

22 lines
785 B
XML
Raw Normal View History

2025-02-20 15:25:59 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN"
"http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd">
<mapper namespace="com.hx.slj.modules.reportCustomer.dao.SysOfficeDao">
<!-- parameterType:参数类型,填写实体类的完整名字 -->
<resultMap id="baseOffice" type="com.hx.slj.modules.reportCustomer.entity.SysOffice" >
<id column="ID" property="id"/>
<result column="PARENT_ID" property="parentId"/>
<result column="PARENT_IDS" property="parentIds"/>
<result column="NAME" property="name"/>
</resultMap>
<select id="findByParentId" parameterType="java.lang.String" resultMap="baseOffice">
select * from sys_office where PARENT_ID = #{id}
</select>
</mapper>