<?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.ComProjectAuditNoteDAO">
<sql id="allColumns">
t.id as id, t.report_year as reportYear, t.audit_type as auditType, t.audit_object_id as auditObjectId, t.audit_unit_id as auditUnitId, t.audit_content as auditContent, t.audit_result as auditResult, t.audit_date as auditDate,
t.show_index as showIndex, t.unit_level as unitLevel, t.com_person as comPerson, t.created as created
</sql>
<select id="getListByObjectId" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComProjectAuditNoteDTO">
SELECT
a.*,b.unit_name audit_unit_name
FROM com_project_audit_note a
left join com_unit b on a.audit_unit_id=b.id
where audit_object_id=#{objectId} ORDER BY a.show_index ASC
</select>
</mapper>
-
徐俊 authoredd3497d84