86 lines
3.3 KiB
XML
86 lines
3.3 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.KhtxSpotCheckerVoDao">
|
|
<!-- parameterType:参数类型,填写实体类的完整名字 -->
|
|
<resultMap id="basekhtxVar" type="com.hx.slj.modules.reportCustomer.entity.KhtxSpotCheckerVo">
|
|
<id column="ID" property="id"/>
|
|
<result column="target_id" property="targetId"/>
|
|
<result column="question_id" property="questionId"/>
|
|
<result column="subtask_id" property="subtaskId"/>
|
|
<result column="plan_id" property="planId"/>
|
|
<result column="office_id" property="officeId"/>
|
|
<result column="gender" property="gender"/>
|
|
<result column="name" property="name"/>
|
|
<result column="age" property="age"/>
|
|
<result column="type" property="type"/>
|
|
<result column="lost" property="lost"/>
|
|
<result column="identityNumber" property="identityNumber"/>
|
|
<result column="nationality" property="nationality"/>
|
|
<result column="nirthplace" property="nirthplace"/>
|
|
<result column="phone" property="phone"/>
|
|
<result column="marriage" property="marriage"/>
|
|
<result column="BORN_DATE" property="bornDate"/>
|
|
<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="DEL_FLAG" property="delFlag"/>
|
|
<result column="status" property="status"/>
|
|
<result column="answerId" property="answerId"/>
|
|
<result column="answer_id" property="answerid"/>
|
|
<result column="identity_number" property="identitynumber"/>
|
|
<result column="sparePhone" property="sparePhone"/>
|
|
<result column="historyDisease" property="historyDisease"/>
|
|
</resultMap>
|
|
|
|
|
|
<select id="findListByTixiKhtxSpotCheckerVo" resultMap="basekhtxVar">
|
|
SELECT t1.* FROM khtx_spot_checker as t1 LEFT JOIN assessment_index as t2 ON t1.target_id=t2.ID
|
|
WHERE t2.system_ID=#{systemId} AND t1.DEL_FLAG="0"
|
|
</select>
|
|
|
|
|
|
<insert id="insertKhtxSpotCheckerVo">
|
|
|
|
|
|
INSERT INTO khtx_spot_checker(`ID`, `target_id`, `question_id`,
|
|
`subtask_id`, `plan_id`, `office_id`, `gender`, `name`, `age`, `type`, `lost`, `identityNumber`, `nationality`,
|
|
`nirthplace`, `phone`, `marriage`, `BORN_DATE`, `CREATE_BY`, `CREATE_DATE`, `UPDATE_BY`, `UPDATE_DATE`, `REMARKS`,
|
|
`DEL_FLAG`, `status`, `answerId`, `answer_id`, `identity_number`, `sparePhone`, `historyDisease`)
|
|
VALUES (
|
|
#{id},
|
|
#{targetId},
|
|
#{questionId},
|
|
#{subtaskId},
|
|
#{planId},
|
|
#{officeId},
|
|
#{gender},
|
|
#{name},
|
|
#{age},
|
|
#{type},
|
|
#{lost},
|
|
#{identityNumber},
|
|
#{nationality},
|
|
#{nirthplace},
|
|
#{phone},
|
|
#{marriage},
|
|
#{bornDate},
|
|
#{createBy},
|
|
#{createDate},
|
|
#{updateBy},
|
|
#{updateDate},
|
|
#{remarks},
|
|
#{delFlag},
|
|
#{status},
|
|
#{answerId},
|
|
#{answerid},
|
|
#{identitynumber},
|
|
#{sparePhone},
|
|
#{historyDisease}
|
|
)
|
|
</insert>
|
|
|
|
</mapper> |