Browse Source

2026-06-26

优化
master
fengyuan_yang 1 month ago
parent
commit
1de0da1c3c
  1. 8
      src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml

8
src/main/resources/mapper/qualityAssurance/QualityAssuranceMapper.xml

@ -3,7 +3,7 @@
<mapper namespace="com.gaotao.modules.qualityAssurance.dao.QualityAssuranceMapper">
<!--=============检验不合格原因===================-->
<select id="getUnqualifiedInspectionReasonsData" resultType="com.gaotao.modules.qualityAssurance.entity.InspectionDefectCodeData">
Select InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site
Select InspectionType_DB,DefectCode,InspectionType,DefectDesc,Active,Site,workCenter_no as workCenterNo
from InspectionDefectCode as T
where T.Site in (Select Site from AccessSite where upper(UserID)=#{user})
</select>
@ -11,11 +11,11 @@
select DefectCode,DefectDesc from InspectionDefectCode where DefectCode=#{defectCode} and Site=#{site}
</select>
<insert id="saveUnqualifiedInspectionReasonsData" parameterType="com.gaotao.modules.qualityAssurance.entity.InspectionDefectCodeData">
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})
</insert>
<update id="editUnqualifiedInspectionReasonsData" parameterType="com.gaotao.modules.qualityAssurance.entity.InspectionDefectCodeData">
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}
</update>

Loading…
Cancel
Save