update wf_scrap_details set SCRAP_PERSON = #{scrapPerson}, SCRAP_CHECKER = #{scrapPerson}
where ID = #{id}
update wf_scrap_details set
IS_SURE = #{isSure},
SCRAP_TIME = #{scrapTime},
ALSCRAP_NUM = #{alScrapNum}
where ID = #{id}
update wf_scrap_details set is_active = 0
where ID = #{id}
update wf_info_record set RM_STATUS = #{rmStatus}
where ID = #{infoId}
insert wf_scrap_details
TASK_ID,
MODEL_ID,
SCRAP_TIME,
SCRAP_NUM,
SCRAP_CHECKER,
SCRAP_PERSON,
OPERATION_TIME,
CHECK_ID,
IS_SURE,
IS_ACTIVE,
#{taskId},
#{modelId},
#{scrapTime},
#{scrapNum},
#{scrapChecker},
#{scrapPerson},
#{operationTime},
#{checkId},
#{isSure},
1,
update wf_scrap_details set SCRAP_NUM = #{scrapNum}
where CHECK_ID = #{checkId} and MODEL_ID = #{modelId}
update wf_info_record set
RM_STATUS = #{rmStatus}
where ID = #{id}
update mm_machines set
batch_status = #{batchStatus}
where type = #{modelId} and DEVICE_CODE = #{deviceCode}
update wf_scrap_details set
is_sure = #{isSure},
ALSCRAP_NUM = (ifnull(ALSCRAP_NUM,0) + #{thisScrapNum}),
SCRAP_TIME = #{scrapTime}
where id =#{id}
insert wf_info_record
SUP_ID,
MODEL_ID,
CODE,
TIME,
NUM,
TYPE,
RM_STATUS,
SCRAP_REASON,
SCRAP_URL,
#{taskId},
#{modelId},
#{deviceCode},
#{scrapTime},
#{thisScrapNum},
#{infoType},
#{rmStatus},
#{scrapPart},
#{scrapUrl},