质量计划

This commit is contained in:
2022-09-30 08:54:33 +08:00
parent 7abcafb93d
commit a3cc4df25c
33 changed files with 249 additions and 25 deletions

View File

@@ -21,7 +21,32 @@
<select id="list" resultType="com.cnbm.qualityPlanning.dto.InterpretationSchemeDTO">
select * from interpretation_scheme
order by id asc
order by rule_num asc
</select>
</mapper>
<select id="listByMyInterpretationSchemeId" resultType="com.cnbm.qualityPlanning.dto.InterpretationSchemeDTO">
select * from interpretation_scheme
<where>
valid = 1
<if test="myInterpretationSchemeId != null">
and my_interpretation_scheme_id=#{myInterpretationSchemeId}
</if>
</where>
order by rule_num asc
</select>
<insert id="batchInsert">
insert into interpretation_scheme(code,rule_num,rule_key,rule_value1,rule_value2,my_interpretation_scheme_id) values
(1,1,'规则一:有1点落在三倍标准差以外',null,null,#{myInterpretationSchemeId}),
(2,2,'规则二:连续x点落在管制中心线同一侧',6,null,#{myInterpretationSchemeId}),
(3,3,'规则三:连续x点持续上升或下降',6,null,#{myInterpretationSchemeId}),
(4,4,'规则四:连续x点交替上下跳动',14,null,#{myInterpretationSchemeId}),
(5,5,'规则五:连续x点中有x点落在中心线同侧两倍标准差以外',3,2,#{myInterpretationSchemeId}),
(6,6,'规则六:连续x点中有x点落在中心线同侧一倍标准差以外',5,4,#{myInterpretationSchemeId}),
(7,7,'规则七:连续x点落在中心线两侧的一倍标准差以内',15,null,#{myInterpretationSchemeId}),
(8,8,'规则八:连续x点落在中心线两侧但未在一倍标准差以内',8,null,#{myInterpretationSchemeId}),
(9,9,'规则九:落在规格线以外',null,null,#{myInterpretationSchemeId}),
(10,10,'规则十:CPK小于目标值',null,null,#{myInterpretationSchemeId})
</insert>
</mapper>