|
|
|
@ -6,15 +6,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectBoxNameByCode" resultType="string">
|
|
|
|
|
select MATERIAL_NAME from AUCMA_MES.BASE_MATERIALINFO where MATERIAL_CODE = #{boxCode}
|
|
|
|
|
select MATERIAL_NAME from BASE_MATERIALINFO where MATERIAL_CODE = #{boxCode}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertBindingInfo">
|
|
|
|
|
INSERT INTO AUCMA_SCADA.CODE_BINDING(OBJ_ID, BOX_CODE, BOX_NAME, LINER_CODE, BINDING_RESULT, RECORD_TIME1)
|
|
|
|
|
VALUES (AUCMA_SCADA.SEQ_CODE_BINDING.nextval, #{boxCode}, #{boxName}, #{innerCode}, '成功', SYSDATE)
|
|
|
|
|
INSERT INTO CODE_BINDING(OBJ_ID, BOX_CODE, BOX_NAME, LINER_CODE, BINDING_RESULT, RECORD_TIME1)
|
|
|
|
|
VALUES (SEQ_CODE_BINDING.nextval, #{boxCode}, #{boxName}, #{innerCode}, '成功', SYSDATE)
|
|
|
|
|
</insert>
|
|
|
|
|
<update id="updateCodeBinding">
|
|
|
|
|
UPDATE AUCMA_SCADA.CODE_BINDING
|
|
|
|
|
UPDATE CODE_BINDING
|
|
|
|
|
SET PRODUCT_CODE = #{innerCode}, BINDING_RESULT = '成功',RECORD_TIME2 = SYSDATE,IS_PASS= 1
|
|
|
|
|
where BOX_CODE = #{boxCode}
|
|
|
|
|
</update>
|
|
|
|
@ -22,11 +22,11 @@
|
|
|
|
|
|
|
|
|
|
<select id="countQualityRecordByCode" resultType="int">
|
|
|
|
|
select count(OBJ_ID)
|
|
|
|
|
from AUCMA_MES.REPORT_QUALITY_INSPECTION
|
|
|
|
|
from REPORT_QUALITY_INSPECTION
|
|
|
|
|
where BAR_CODE = #{code} and IS_FLAG !=1
|
|
|
|
|
</select>
|
|
|
|
|
<update id="submitRepair" parameterType="com.aucma.api.domain.dto.RepairSubmitInfoDto">
|
|
|
|
|
UPDATE AUCMA_MES.REPORT_QUALITY_INSPECTION
|
|
|
|
|
UPDATE REPORT_QUALITY_INSPECTION
|
|
|
|
|
SET PROCESS_RESULT = #{info.repairName},
|
|
|
|
|
REWORK_NUMBER = 1,
|
|
|
|
|
FINISH_TIME = sysdate,
|
|
|
|
@ -44,7 +44,7 @@
|
|
|
|
|
MATERIAL_NAME,
|
|
|
|
|
QUALITY_DEFECT_CODE,
|
|
|
|
|
QUALITY_DEFECT_NAME
|
|
|
|
|
from AUCMA_MES.REPORT_QUALITY_INSPECTION
|
|
|
|
|
from REPORT_QUALITY_INSPECTION
|
|
|
|
|
where BAR_CODE = #{code}
|
|
|
|
|
and IS_FLAG is null
|
|
|
|
|
</select>
|
|
|
|
@ -54,7 +54,7 @@
|
|
|
|
|
TEST_ITEM_CODE as STATION_CODE,
|
|
|
|
|
QUALITY_DEFECT_CODE,
|
|
|
|
|
QUALITY_DEFECT_NAME
|
|
|
|
|
from AUCMA_MES.REPORT_QUALITY_INSPECTION
|
|
|
|
|
from REPORT_QUALITY_INSPECTION
|
|
|
|
|
where BAR_CODE = #{code}
|
|
|
|
|
and IS_FLAG = 1 and IS_FLAG=1
|
|
|
|
|
</select>
|
|
|
|
|