44 lines
1.7 KiB
XML
44 lines
1.7 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.ExecuteVarValueVoDao">
|
||
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
||
|
|
<resultMap id="basekhtxVar" type="com.hx.slj.modules.reportCustomer.entity.ExecuteVarValueVo">
|
||
|
|
<id column="id" property="id"/>
|
||
|
|
<result column="standard_subtask_id" property="standardSubtaskId"/>
|
||
|
|
<result column="khtx_var_id" property="khtxVarId"/>
|
||
|
|
<result column="var_value" property="varValue"/>
|
||
|
|
<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="findListByTixiExecuteVarValueVo" resultMap="basekhtxVar">
|
||
|
|
SELECT t1.* FROM execute_var_value 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="insertExecuteVarValueVo">
|
||
|
|
INSERT INTO execute_var_value(`id`, `standard_subtask_id`, `khtx_var_id`, `var_value`, `del_flag`,
|
||
|
|
`create_by`, `create_date`, `update_by`, `update_date`, `remarks`)
|
||
|
|
VALUES (
|
||
|
|
#{id},
|
||
|
|
#{standardSubtaskId},
|
||
|
|
#{khtxVarId},
|
||
|
|
#{varValue},
|
||
|
|
#{delFlag},
|
||
|
|
#{createBy},
|
||
|
|
#{createDate},
|
||
|
|
#{updateBy},
|
||
|
|
#{updateDate},
|
||
|
|
#{remarks}
|
||
|
|
)
|
||
|
|
</insert>
|
||
|
|
|
||
|
|
</mapper>
|