|
|
@ -25,13 +25,16 @@
|
|
|
|
<result property="defectLevel" column="defect_level"/>
|
|
|
|
<result property="defectLevel" column="defect_level"/>
|
|
|
|
<result property="projectType" column="project_type"/>
|
|
|
|
<result property="projectType" column="project_type"/>
|
|
|
|
<result property="sort" column="sort" />
|
|
|
|
<result property="sort" column="sort" />
|
|
|
|
|
|
|
|
<result property="itemType" column="item_type" />
|
|
|
|
|
|
|
|
<result property="judgeRate" column="judge_rate" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectQcCheckProjectVo">
|
|
|
|
<sql id="selectQcCheckProjectVo">
|
|
|
|
select id, order_num, rule_name, property_code, check_mode, check_tool, unit_code, check_standard,
|
|
|
|
select id, order_num, rule_name, property_code, check_mode, check_tool, unit_code, check_standard,
|
|
|
|
attr1, create_by, create_time, update_by, update_time, factory_code, del_flag,sample_plan,
|
|
|
|
attr1, create_by, create_time, update_by, update_time, factory_code, del_flag,sample_plan,
|
|
|
|
judge,defect_level,project_type,sort
|
|
|
|
judge,defect_level,project_type,sort,item_type,judge_rate
|
|
|
|
from qc_check_project
|
|
|
|
|
|
|
|
|
|
|
|
from qc_check_project
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectQcCheckProjectList" parameterType="QcCheckProject" resultMap="QcCheckProjectResult">
|
|
|
|
<select id="selectQcCheckProjectList" parameterType="QcCheckProject" resultMap="QcCheckProjectResult">
|
|
|
@ -81,6 +84,8 @@
|
|
|
|
<if test="defectLevel != null">defect_level,</if>
|
|
|
|
<if test="defectLevel != null">defect_level,</if>
|
|
|
|
<if test="projectType != null">project_type,</if>
|
|
|
|
<if test="projectType != null">project_type,</if>
|
|
|
|
<if test="sort != null">sort,</if>
|
|
|
|
<if test="sort != null">sort,</if>
|
|
|
|
|
|
|
|
<if test="itemType != null">item_type,</if>
|
|
|
|
|
|
|
|
<if test="judgeRate != null">judge_rate,</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
|
<if test="id != null">#{id},</if>
|
|
|
@ -103,6 +108,8 @@
|
|
|
|
<if test="defectLevel != null">#{defectLevel},</if>
|
|
|
|
<if test="defectLevel != null">#{defectLevel},</if>
|
|
|
|
<if test="projectType != null">#{projectType},</if>
|
|
|
|
<if test="projectType != null">#{projectType},</if>
|
|
|
|
<if test="sort != null">#{sort},</if>
|
|
|
|
<if test="sort != null">#{sort},</if>
|
|
|
|
|
|
|
|
<if test="itemType != null">#{itemType},</if>
|
|
|
|
|
|
|
|
<if test="judgeRate != null">#{judgeRate},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
</insert>
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
@ -128,6 +135,8 @@
|
|
|
|
<if test="defectLevel != null">defect_level = #{defectLevel},</if>
|
|
|
|
<if test="defectLevel != null">defect_level = #{defectLevel},</if>
|
|
|
|
<if test="projectType != null">project_type = #{projectType},</if>
|
|
|
|
<if test="projectType != null">project_type = #{projectType},</if>
|
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
|
<if test="sort != null">sort = #{sort},</if>
|
|
|
|
|
|
|
|
<if test="itemType != null">item_type = #{itemType},</if>
|
|
|
|
|
|
|
|
<if test="judgeRate != null">judge_rate = #{judgeRate},</if>
|
|
|
|
</trim>
|
|
|
|
</trim>
|
|
|
|
where id = #{id}
|
|
|
|
where id = #{id}
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
@ -151,7 +160,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCheckProjectByRuleName" resultMap="QcCheckProjectResult">
|
|
|
|
<select id="selectCheckProjectByRuleName" resultMap="QcCheckProjectResult">
|
|
|
|
<include refid="selectQcCheckProjectVo"/>
|
|
|
|
<include refid="selectQcCheckProjectVo"/>
|
|
|
|
where rule_name = #{ruleName} and project_type = #{projectType}
|
|
|
|
where rule_name = #{ruleName} and project_type = #{projectType} and sort = #{sort}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
</mapper>
|
|
|
|