IPQC的保存

This commit is contained in:
JinLu.Yin
2022-08-29 22:34:04 +08:00
parent 2d48e5c7ea
commit 1c3347c112
6 changed files with 89 additions and 17 deletions

View File

@@ -45,6 +45,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where template_code = #{templateCode}
</select>
<select id="selectQcTemplateByProductAndQcType" parameterType="QcTemplate" resultMap="QcTemplateResult">
select template_id, template_code, template_name, qc_types, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time
from qc_template t
left join qc_template_product tl on t.template_id = tl.template_id
where t.qc_type = #{qcType} and tl.item_id = #{itemId}
limit 1;
</select>
<insert id="insertQcTemplate" parameterType="QcTemplate" useGeneratedKeys="true" keyProperty="templateId">
insert into qc_template
<trim prefix="(" suffix=")" suffixOverrides=",">