ZhiYeJianKang/职业健康平台后端/bin/mappings/modules/reportCustomer/KhtxFormulaDaoMapper.xml
2025-02-20 15:25:59 +08:00

55 lines
2.0 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.KhtxFormulaDao">
<!-- parameterType:参数类型,填写实体类的完整名字 -->
<resultMap id="basekhtxVar" type="com.hx.slj.modules.reportCustomer.entity.KhtxFormula">
<id column="id" property="id"/>
<result column="khtx_target_id" property="khtxTargetId"/>
<result column="formula_kind" property="formulaKind"/>
<result column="formula_type" property="formulaType"/>
<result column="formula_left" property="formulaLeft"/>
<result column="formula_right" property="formulaRight"/>
<result column="formula_center" property="formulaCenter"/>
<result column="execution_order" property="executionOrder"/>
<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_formula as k left join assessment_index as a
on k.khtx_target_id=a.ID WHERE a.system_ID= #{systemId}
</select>
<insert id="insertKhtxFormula">
INSERT INTO khtx_formula(`id`, `khtx_target_id`, `formula_kind`, `formula_type`, `formula_left`,
`formula_right`, `formula_center`, `execution_order`, `del_flag`, `create_by`, `create_date`,
`update_by`, `update_date`, `remarks`) VALUES (
#{id},
#{khtxTargetId},
#{formulaKind},
#{formulaType},
#{formulaLeft},
#{formulaRight},
#{formulaCenter},
#{executionOrder},
#{delFlag},
#{createBy},
#{createDate},
#{updateBy},
#{updateDate},
#{remarks}
)
</insert>
</mapper>