a.id as "id", a.config_name AS "configName", a.config_key AS "configKey", a.config_value AS "configValue", a.config_type AS "configType", a.create_by AS "createBy", a.create_dept AS "createDept", a.create_time AS "createTime", a.update_by AS "updateBy", a.update_time AS "updateTime", a.update_ip AS "updateIp", a.remark AS "remark", a.version AS "version" order by a.create_time desc update sys_config config_name = #{configName}, config_key = #{configKey}, config_value = #{configValue}, config_type = #{configType}, update_by = #{updateBy}, update_time = #{updateTime}, update_ip = #{updateIp}, remark = #{remark}, version = version + 1 where id = #{id} insert into sys_config ( id, config_name, config_key, config_value, config_type, create_by, create_dept, create_time, update_by, update_time, update_ip, remark, del_flag, version )values( #{id}, #{configName}, #{configKey}, #{configValue}, #{configType}, #{createBy}, #{createDept}, #{createTime}, #{updateBy}, #{updateTime}, #{updateIp}, #{remark}, #{DEL_FLAG_NORMAL}, 1 ) UPDATE sys_config SET del_flag = #{DEL_FLAG_DELETE} WHERE id = #{id} UPDATE sys_config SET del_flag = #{DEL_FLAG_DELETE} WHERE id in #{ids}