IPQC的保存
This commit is contained in:
@@ -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=",">
|
||||
|
||||
Reference in New Issue
Block a user