select id, user_id, nick_name, tool_id, apply_type, proc_title, proc_inst_id, end_time, dept_id, record_status, dept_name, reason, create_by, create_time, update_by, update_time from t_tool_apply insert into t_tool_apply id, user_id, tool_id, proc_title, apply_type, nick_name, dept_id, dept_name, reason, create_by, create_time, update_by, update_time, proc_inst_id, end_time, record_status, #{id}, #{userId}, #{toolId}, #{procTitle}, #{applyType}, #{nickName}, #{deptId}, #{deptName}, #{reason}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{endTime}, #{procInstId}, #{recordStatus}, update t_tool_apply user_id = #{userId}, nick_name = #{nickName}, tool_id = #{toolId}, proc_title = #{procTitle}, apply_type = #{applyType}, dept_id = #{deptId}, dept_name = #{deptName}, reason = #{reason}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, end_time = #{endTime}, record_status = #{recordStatus}, where id = #{id} delete from t_tool_apply where id = #{id} delete from t_tool_apply where id in #{id}