33 lines
1.5 KiB
XML
33 lines
1.5 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.KhtxFileListDao">
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
|
<resultMap id="basekhtxVar" type="com.hx.slj.modules.reportCustomer.entity.KhtxFileList">
|
|
<id column="id" property="id"/>
|
|
<result column="khtx_target_id" property="khtxTargetId"/>
|
|
<result column="file_title" property="fileTitle"/>
|
|
<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"/>
|
|
</resultMap>
|
|
|
|
|
|
<select id="findListByTixi" resultMap="basekhtxVar">
|
|
SELECT k.* FROM khtx_file_list as k LEFT JOIN assessment_index as a
|
|
ON k.khtx_target_id=a.ID WHERE a.system_ID= #{systemId}
|
|
</select>
|
|
|
|
|
|
<insert id="insertKhtxFileList">
|
|
INSERT INTO khtx_file_list(`id`, `khtx_target_id`, `file_title`, `del_flag`,
|
|
`create_by`, `create_date`, `update_by`, `update_date`, `remarks`)
|
|
VALUES (#{id}, #{khtxTargetId},
|
|
#{fileTitle}, #{delFlag}, #{createBy},#{createDate}, #{updateBy}, #{updateDate}, #{remarks})
|
|
</insert>
|
|
|
|
</mapper> |