潘志宝
2024-12-12 3374d19db03cce97572c3a294f137d1ea70b307f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?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.iailab.module.model.mpk.dao.ProjectDao">
 
    <resultMap id="projectModel" type="com.iailab.module.model.mpk.dto.ProjectDTO">
        <id property="id" column="id"/>
        <result property="projectName" column="project_name"/>
        <result property="projectCode" column="project_code"/>
        <result property="createTime" column="create_time"/>
        <collection property="models" ofType="com.iailab.module.model.mpk.dto.MpkFileDTO">
            <id property="id" column="model_id"/>
            <result property="pyName" column="py_name"/>
        </collection>
    </resultMap>
</mapper>