55 lines
2.2 KiB
XML
55 lines
2.2 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.ExecuteFileVoDao">
|
||
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
||
|
|
<resultMap id="basekhtxVar" type="com.hx.slj.modules.reportCustomer.entity.ExecuteFileVo">
|
||
|
|
<id column="id" property="id"/>
|
||
|
|
<result column="standard_subtask_id" property="standardSubtaskId"/>
|
||
|
|
<result column="khtx_file_list_id" property="khtxFileListId"/>
|
||
|
|
<result column="file_title" property="fileTitle"/>
|
||
|
|
<result column="file_type" property="fileType"/>
|
||
|
|
<result column="file_size" property="fileSize"/>
|
||
|
|
<result column="file_url" property="fileUrl"/>
|
||
|
|
<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="upload_type" property="uploadType"/>
|
||
|
|
<result column="non_designated_name" property="nonDesignatedName"/>
|
||
|
|
</resultMap>
|
||
|
|
|
||
|
|
|
||
|
|
<select id="findListByTixiExecuteFileVo" resultMap="basekhtxVar">
|
||
|
|
SELECT t1.* FROM execute_file as t1 left JOIN standard_subtask as t2 ON t1.standard_subtask_id=t2.id LEFT JOIN assessment_index as t3 ON t2.khtx_target_id=t3.id
|
||
|
|
WHERE t3.system_ID=#{systemId} and t2.del_flag="0" AND t3.DEL_FLAG="0"
|
||
|
|
</select>
|
||
|
|
|
||
|
|
|
||
|
|
<insert id="insertExecuteFileVo">
|
||
|
|
|
||
|
|
INSERT INTO execute_file(`id`, `standard_subtask_id`, `khtx_file_list_id`,
|
||
|
|
`file_title`, `file_type`, `file_size`, `file_url`, `del_flag`, `create_by`,
|
||
|
|
`create_date`, `update_by`, `update_date`, `remarks`, `upload_type`, `non_designated_name`) VALUES (
|
||
|
|
#{id},
|
||
|
|
#{standardSubtaskId},
|
||
|
|
#{khtxFileListId},
|
||
|
|
#{fileTitle},
|
||
|
|
#{fileType},
|
||
|
|
#{fileSize},
|
||
|
|
#{fileUrl},
|
||
|
|
#{delFlag},
|
||
|
|
#{createBy},
|
||
|
|
#{createDate},
|
||
|
|
#{updateBy},
|
||
|
|
#{updateDate},
|
||
|
|
#{remarks},
|
||
|
|
#{uploadType},
|
||
|
|
#{nonDesignatedName}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
</mapper>
|