update ba_ma_collar set COLLAR_MAN = #{leaseMan}, COLLAR_PHONE = #{phone}, REMARK = #{remark} where ID = #{taskId} delete from ba_ma_collar where ID = #{taskId} update ma_machines set BATCH_STATUS =7 where DEVICE_NUM = #{deviceNum} insert into ba_ma_collar (ID,APPLY_NUMBER,CREATOR,CREATE_TIME,COLLAR_MAN,COLLAR_PHONE,REMARK) values (#{taskId},#{applyNumber},#{applyMan},#{createTime},#{leaseMan},#{phone},#{remark}) UPDATE wf_task_record SET REMARK = #{taskRemark} WHERE ID = #{taskId} UPDATE wf_info_record SET REMARK = #{remarkMachine} where ID = #{id} delete from wf_task_record where ID = #{taskId} update wf_task_record set IS_CONFIRM = 1 where ID = #{taskId}