李林
2023-10-07 658d4927d468c47208fd012d9128b09249c07eff
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
 
 
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 
<mapper namespace="com.chinaztt.mes.technology.mapper.DocumentStandardParamMapper">
    <resultMap id="documentStandardParamMap" type="com.chinaztt.mes.technology.entity.DocumentStandardParam">
        <id property="id" column="id"/>
        <result property="code" column="code"/>
        <result property="parameterItem" column="parameter_item"/>
        <result property="type" column="type"/>
        <result property="unit" column="unit"/>
        <result property="referenceValue" column="reference_value"/>
        <result property="index" column="index"/>
        <result property="paramType" column="param_type"/>
        <result property="judgeFormula" column="judge_formula"/>
        <result property="valueFormula" column="value_formula"/>
        <result property="parameterFormat" column="parameter_format"/>
        <result property="isReference" column="is_reference"/>
        <result property="aisle" column="aisle"/>
        <result property="position" column="position"/>
        <result property="wireCore" column="wire_core"/>
        <result property="defaultValue" column="default_value"/>
        <result property="isCheck" column="is_check"/>
    </resultMap>
 
    <delete id="delDocStandardParamByStandardId">
        DELETE FROM technology_document_standard_param WHERE test_standard_id = #{standardId}
    </delete>
 
    <select id="getDocumentStandardParamListByStandardId" resultMap="documentStandardParamMap">
        SELECT * FROM quality_test_standard_param WHERE test_standard_id = #{standardId} AND active = 't'
    </select>
 
</mapper>