<?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.yiboshi.science.dao.ComProjectConclusionMaterialDAO"> <sql id="allColumns"> id, projId, typeId, materialValue, created, updated </sql> <select id="getConclusionMaterialList" resultType="com.yiboshi.science.param.dto.ComProjectConclusionMaterialDTO"> select a.id, a.proj_id as projId, a.type_id as typeId, a.material_value as materialValue, a.show_index as showIndex, a.created, a.updated, b.name as materialName from com_project_conclusion_material a left join system_parameter b on a.type_id = b.id where a.proj_id = #{projId} </select> </mapper>