|
|
@ -6,6 +6,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
|
|
|
|
<resultMap type="QualityManufacturingMaterialProcess" id="QualityManufacturingMaterialProcessResult"> |
|
|
|
<result property="manufacturingMaterialProcessId" column="manufacturing_material_process_id" /> |
|
|
|
<result property="manufacturingCheckoutCode" column="manufacturing_checkout_code" /> |
|
|
|
<result property="materialNo" column="material_no" /> |
|
|
|
<result property="materialName" column="material_name" /> |
|
|
|
<result property="manufacturingProcessCode" column="manufacturing_process_code" /> |
|
|
@ -22,10 +23,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<result property="createTime" column="create_time" /> |
|
|
|
<result property="updateBy" column="update_by" /> |
|
|
|
<result property="updateTime" column="update_time" /> |
|
|
|
<result property="okAcceptedPhotourl" column="ok_accepted_photourl" /> |
|
|
|
<result property="specialConcessionsPhotourl" column="special_concessions_photourl" /> |
|
|
|
<result property="processInspectionItem" column="process_inspection_item" /> |
|
|
|
|
|
|
|
</resultMap> |
|
|
|
|
|
|
|
<sql id="selectQualityManufacturingMaterialProcessVo"> |
|
|
|
select manufacturing_material_process_id, material_no, material_name, manufacturing_process_code, manufacturing_process_name, device_name, device_model_code, process_sequence, workshop_name, mod_name, ok_accepted_num, special_concessions_num, remark, create_by, create_time, update_by, update_time from quality_manufacturing_material_process |
|
|
|
select manufacturing_material_process_id, manufacturing_checkout_code, material_no, material_name, manufacturing_process_code, manufacturing_process_name, device_name, device_model_code, process_sequence, workshop_name, mod_name, ok_accepted_num, special_concessions_num, remark, create_by, create_time, update_by, update_time, ok_accepted_photourl, special_concessions_photourl, process_inspection_item from quality_manufacturing_material_process |
|
|
|
</sql> |
|
|
|
|
|
|
|
<select id="selectQualityManufacturingMaterialProcessList" parameterType="QualityManufacturingMaterialProcess" resultMap="QualityManufacturingMaterialProcessResult"> |
|
|
@ -42,6 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<insert id="insertQualityManufacturingMaterialProcess" parameterType="QualityManufacturingMaterialProcess" useGeneratedKeys="true" keyProperty="manufacturingMaterialProcessId"> |
|
|
|
insert into quality_manufacturing_material_process |
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code,</if> |
|
|
|
<if test="materialNo != null">material_no,</if> |
|
|
|
<if test="materialName != null">material_name,</if> |
|
|
|
<if test="manufacturingProcessCode != null">manufacturing_process_code,</if> |
|
|
@ -58,8 +64,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="createTime != null">create_time,</if> |
|
|
|
<if test="updateBy != null">update_by,</if> |
|
|
|
<if test="updateTime != null">update_time,</if> |
|
|
|
<if test="okAcceptedPhotourl != null">ok_accepted_photourl,</if> |
|
|
|
<if test="specialConcessionsPhotourl != null">special_concessions_photourl,</if> |
|
|
|
<if test="processInspectionItem != null">process_inspection_item,</if> |
|
|
|
</trim> |
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">#{manufacturingCheckoutCode},</if> |
|
|
|
<if test="materialNo != null">#{materialNo},</if> |
|
|
|
<if test="materialName != null">#{materialName},</if> |
|
|
|
<if test="manufacturingProcessCode != null">#{manufacturingProcessCode},</if> |
|
|
@ -76,12 +86,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="createTime != null">#{createTime},</if> |
|
|
|
<if test="updateBy != null">#{updateBy},</if> |
|
|
|
<if test="updateTime != null">#{updateTime},</if> |
|
|
|
<if test="okAcceptedPhotourl != null">#{okAcceptedPhotourl},</if> |
|
|
|
<if test="specialConcessionsPhotourl != null">#{specialConcessionsPhotourl},</if> |
|
|
|
<if test="processInspectionItem != null">#{processInspectionItem},</if> |
|
|
|
</trim> |
|
|
|
</insert> |
|
|
|
|
|
|
|
<update id="updateQualityManufacturingMaterialProcess" parameterType="QualityManufacturingMaterialProcess"> |
|
|
|
update quality_manufacturing_material_process |
|
|
|
<trim prefix="SET" suffixOverrides=","> |
|
|
|
<if test="manufacturingCheckoutCode != null">manufacturing_checkout_code = #{manufacturingCheckoutCode},</if> |
|
|
|
<if test="materialNo != null">material_no = #{materialNo},</if> |
|
|
|
<if test="materialName != null">material_name = #{materialName},</if> |
|
|
|
<if test="manufacturingProcessCode != null">manufacturing_process_code = #{manufacturingProcessCode},</if> |
|
|
@ -98,6 +112,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
|
<if test="createTime != null">create_time = #{createTime},</if> |
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if> |
|
|
|
<if test="updateTime != null">update_time = #{updateTime},</if> |
|
|
|
<if test="okAcceptedPhotourl != null">ok_accepted_photourl = #{okAcceptedPhotourl},</if> |
|
|
|
<if test="specialConcessionsPhotourl != null">special_concessions_photourl = #{specialConcessionsPhotourl},</if> |
|
|
|
<if test="processInspectionItem != null">process_inspection_item = #{processInspectionItem},</if> |
|
|
|
</trim> |
|
|
|
where manufacturing_material_process_id = #{manufacturingMaterialProcessId} |
|
|
|
</update> |
|
|
|