insert into hw_global_cfg(global_cfg_name, global_cfg_type, global_cfg_date, is_detail, details) values (#{globalCfgName}, #{globalCfgType}, #{globalCfgDate}, #{isDetail}, #{details}) insert into hw_global_cfg(global_cfg_name, global_cfg_type, global_cfg_date, is_detail, details) values (#{entity.globalCfgName}, #{entity.globalCfgType}, #{entity.globalCfgDate}, #{entity.isDetail}, #{entity.details}) insert into hw_global_cfg(global_cfg_name, global_cfg_type, global_cfg_date, is_detail, details) values (#{entity.globalCfgName}, #{entity.globalCfgType}, #{entity.globalCfgDate}, #{entity.isDetail}, #{entity.details}) on duplicate key update global_cfg_name = values(global_cfg_name), global_cfg_type = values(global_cfg_type), global_cfg_date = values(global_cfg_date), is_detail = values(is_detail), details = values(details) update hw_global_cfg global_cfg_name = #{globalCfgName}, global_cfg_type = #{globalCfgType}, global_cfg_date = #{globalCfgDate}, is_detail = #{isDetail}, details = #{details}, where global_cfg_id = #{globalCfgId} delete from hw_global_cfg where global_cfg_id = #{globalCfgId}