|
|
@ -74,6 +74,15 @@
|
|
|
|
where PARENT_ID = 0
|
|
|
|
where PARENT_ID = 0
|
|
|
|
order by quality_defect_code
|
|
|
|
order by quality_defect_code
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getQualityDefects" parameterType="String" resultMap="BaseQualityInspectionItemResult">
|
|
|
|
|
|
|
|
select bq2.obj_id,
|
|
|
|
|
|
|
|
bq2.quality_defect_code,
|
|
|
|
|
|
|
|
bq2.quality_defect_name,
|
|
|
|
|
|
|
|
bq1.station_code
|
|
|
|
|
|
|
|
from base_quality_inspection_item bq1
|
|
|
|
|
|
|
|
left join base_quality_inspection_item bq2 on bq2.PARENT_ID = bq1.quality_defect_code
|
|
|
|
|
|
|
|
where bq1.station_code = '1003'
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertBaseQualityInspectionItem" parameterType="BaseQualityInspectionItem">
|
|
|
|
<insert id="insertBaseQualityInspectionItem" parameterType="BaseQualityInspectionItem">
|
|
|
|
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
|
|
|
<selectKey keyProperty="objId" resultType="long" order="BEFORE">
|
|
|
|