56 lines
1.8 KiB
XML
56 lines
1.8 KiB
XML
|
|
<?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.ReportCustomDetailVoDao">
|
||
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
||
|
|
<resultMap id="baseReportCustomDetail" type="com.hx.slj.modules.reportCustomer.entity.ReportCustomDetailVo" >
|
||
|
|
<id column="id" property="id"/>
|
||
|
|
<result column="report_custom_index_id" property="reportCustomIndexId"/>
|
||
|
|
<result column="khtx_var_id" property="khtxVarId"/>
|
||
|
|
<result column="name" property="name"/>
|
||
|
|
<result column="status" property="status"/>
|
||
|
|
<result column="sort" property="sort"/>
|
||
|
|
<result column="del_flag" property="delFlag"/>
|
||
|
|
<result column="create_by" property="createBy"/>
|
||
|
|
<result column="create_date" property="createDate"/>
|
||
|
|
<result column="update_by" property="updateBy"/>
|
||
|
|
<result column="update_date" property="updateDate"/>
|
||
|
|
<result column="remarks" property="remarks"/>
|
||
|
|
<result column="khtx_target_id" property="khtxTargetId"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<select id="findJoinAssessmentSystemBySystemId" resultMap="baseReportCustomDetail">
|
||
|
|
SELECT r.* FROM report_custom_detail as r LEFT JOIN assessment_index as a ON r.khtx_target_id =a.ID
|
||
|
|
WHERE a.system_ID=#{assessmentSystemId}
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
<insert id = "insertReportCustomDetailVoList" parameterType="java.util.List">
|
||
|
|
INSERT INTO report_custom_detail(`id`, `report_custom_index_id`, `khtx_var_id`,
|
||
|
|
`name`, `status`, `sort`, `del_flag`, `create_by`, `create_date`, `update_by`,
|
||
|
|
`update_date`, `remarks`, `khtx_target_id`) VALUES (
|
||
|
|
|
||
|
|
#{id},
|
||
|
|
#{reportCustomIndexId},
|
||
|
|
#{khtxVarId},
|
||
|
|
#{name},
|
||
|
|
#{status},
|
||
|
|
#{sort},
|
||
|
|
#{delFlag},
|
||
|
|
#{createBy},
|
||
|
|
#{createDate},
|
||
|
|
#{updateBy},
|
||
|
|
#{updateDate},
|
||
|
|
#{remarks},
|
||
|
|
#{khtxTargetId}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
</mapper>
|