diff --git a/src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml b/src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml index 19b899a..520b6f0 100644 --- a/src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml +++ b/src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml @@ -3,7 +3,7 @@ @@ -11,11 +11,11 @@ select DefectCode,DefectDesc from InspectionDefectCode where DefectCode=#{defectCode} and Site=#{site} - INSERT INTO InspectionDefectCode (InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site) - values (#{inspectionTypeDb},#{defectCode},#{inspectionType},#{defectDesc},#{active},#{site}) + INSERT INTO InspectionDefectCode (InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site,workCenter_no) + values (#{inspectionTypeDb},#{defectCode},#{inspectionType},#{defectDesc},#{active},#{site},#{workCenterNo}) - UPDATE InspectionDefectCode SET Active=#{active},DefectDesc=#{defectDesc},InspectionType_DB=#{inspectionTypeDb},InspectionType=#{inspectionType} + UPDATE InspectionDefectCode SET Active=#{active},DefectDesc=#{defectDesc},InspectionType_DB=#{inspectionTypeDb},InspectionType=#{inspectionType},workCenter_no=#{workCenterNo} where DefectCode=#{defectCode} and Site=#{site}