update wf_return_material_details set SERVICE_ID = #{putPersonId} where ID = #{id} update wf_put_storage_details set CUSTOMER_SERVICE_REP = #{putPersonId} where TASK_ID = #{taskId} and MODEL_ID =#{maModelId} update wf_return_material_details set IS_SURE = '1' where ID = #{id} insert wf_put_storage_details TASK_ID, MODEL_ID, PRE_PUT_NUM, AL_PUT_NUM, PUT_TIME, CUSTOMER_SERVICE_REP, CHECK_ID, IS_ACTIVE, IS_SURE, #{taskId}, #{maModelId}, #{prePutNum}, #{alPutNum}, #{putTime}, #{putPersonId}, #{checkId}, 1, 0, update wf_put_storage_details set IS_EXAMINE = '1' where TASK_ID = #{taskId} and MODEL_ID = #{maModelId} update wf_put_storage_details set PRE_PUT_NUM = #{prePutNum} where TASK_ID = #{taskId} and MODEL_ID = #{maModelId} update wf_task_record set IS_FINISH = '1' where ID = #{taskId} update wf_put_storage_details set PRE_PUT_NUM = #{prePutNum} where CHECK_ID = #{checkId} and MODEL_ID = #{maModelId} delete from wf_put_storage_details where ID = #{id} delete from wf_task_record where ID = #{taskId} update wf_repair_details set REPAIR_NUM = (ifnull(REPAIR_NUM,0)) + #{prePutNum} where ID = #{id} update mm_machines set BATCH_STATUS = 7 where DEVICE_CODE = #{0} AND TYPE = #{1} delete from wf_info_record where ID = #{id} update wf_info_record set RM_STATUS = 2 where id = #{id}