@Insert("INSERT INTO coxisolate.instanceinfo (instance_id, app_name, create_time, update_time, status, readiness_flag, isolate_flag, reason) " +
"VALUES(#{instanceId}, #{appName}, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, #{status}, #{readinessFlag}, #{isolateFlag}, #{reason});")
int insert(IndicatorInfo indicatorInfo);

@Update("UPDATE coxisolate.instanceinfo " +
"app_name=#{appName}, " +
"update_time=CURRENT_TIMESTAMP, " +
"status=#{status}, " +
"readiness_flag=#{readinessFlag}, " +
"isolate_flag=#{isolateFlag}, " +
"reason=#{reason}" +
"WHERE id=#{id};")
int updateById(IndicatorInfo indicatorInfo);

@Delete("DELETE FROM coxisolate.instanceinfo WHERE id=#{id};")
int deleteById(IndicatorInfo indicatorInfo);

@Insert("INSERT INTO coxisolate.indicatorconfig " +
"(app_name, create_time, update_time, update_by, timeout_flag, timeout_threshold, exception_flag, exception_threshold, cpu_flag, cpu_threshold, memory_flag, memory_threshold, gc_flag, gc_threshold) " +
"VALUES(#{appName}, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, #{updateBy}, #{timeoutFlag}, #{timeoutThreshold}, #{exceptionFlag}, #{exceptionThreshold}, #{cpuFlag}, #{cpuThreshold}, #{memoryFlag}, #{memoryThreshold}, #{gcFlag}, #{gcThreshold});")
int insert(IndicatorConfig indicatorConfig);

@Update("UPDATE coxisolate.indicatorconfig " +
"update_time=CURRENT_TIMESTAMP, " +
"update_by=#{updateBy}, " +
"timeout_flag=#{timeoutFlag}, " +
"timeout_threshold=#{timeoutThreshold}, " +
"exception_flag=#{exceptionFlag}, " +
"exception_threshold=#{exceptionThreshold}, " +
"cpu_flag=#{cpuFlag}, " +
"cpu_threshold=#{cpuThreshold}, " +
"memory_flag=#{memoryFlag}, " +
"memory_threshold=#{memoryThreshold}, " +
"gc_flag=#{gcFlag}, " +
"gc_threshold=#{gcThreshold} " +
"WHERE id=#{id};")
int updateById(IndicatorConfig indicatorConfig);

@Delete("DELETE FROM coxisolate.indicatorconfig WHERE id=#{id};")
int deleteById(IndicatorConfig indicatorConfig);

@Insert("INSERT INTO coxisolate.applicationuser " +
"(app_name, user_id, create_time, update_time) " +
"VALUES(#{appName}, #{userId}, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);\n")
int insert(ApplicationUser applicationUser);

@Update("UPDATE coxisolate.applicationuser " +
"SET user_id=#{userId}, " +
"SET update_time=CURRENT_TIMESTAMP, " +
"WHERE id=#{id};")
int updateById(ApplicationUser applicationUser);

@Delete("DELETE FROM coxisolate.applicationuser WHERE id=#{id};")
int deleteById(ApplicationUser applicationUser);


 

随机推荐

  1. dotnet 5 的 bin 文件夹下的 ref 文件夹是做什么用的

    本文来和大家聊聊在 dotnet 5 和 dotnet 6 或更高版本的 dotnet 构建完成,在 bin 文件夹下,输出的 ref 文件夹.在此文件夹里面,将会包含项目程序集同名的 dll 文件, ...

  2. WPF 更改 DrawingVisual 的 RenderOpen 用到的对象的内容将持续影响渲染效果

    在 WPF 里面,可以通过 DrawingVisual 来进行使用底层的绘制方法,此方法需要调用 DrawingVisual 的 RenderOpen 拿到 DrawingContext 类型的对象, ...

  3. 13.prometheus监控tengine(无用)

    一.环境准备 1.1 docker安装tengine带nginx-module-vts模块(二选一) mkdir /data/ -p cd /data/ # 通过git clone下载已经创建好的do ...

  4. 全网最详细SpringCloud-高级篇

    SpringCloud-高级篇 高级篇包含微服务保护(流量控制,系统保护,熔断降级,服务授权).分布式事务.多级缓存.Redis集群.可靠消息服务 学习安排 技术分类 1.微服务保护 ①初识Senti ...

  5. 还在用Jenkins?快来试试这款比Jenkins简而轻的自动部署软件!

    大家好,我是 Java陈序员. 在工作中,你是否遇到过团队中没有专业的运维,开发还要做运维的活,需要自己手动构建.部署项目? 不同的项目还有不同的部署命令,需要使用 SSH 工具连接远程服务器和使用 ...

  6. ViewPager引导页实现网络图片加载

    ViewPager引导页实现网络图片加载 最近在准备移动应用开发的比赛,看到一道题目,让我们加载网络图片当引导页,我太久没做了,就搜了一下,大多数是让你有多少张图片就新建多少个布局文件,这样文件多不说 ...

  7. 简说Python之列表,元祖,字典

    目录 Python列表 创建列表 添加元素 查询元素 列表分片 分片简写 修改元素 一些其他添加列表元素的方法 extend() insert() 删除元素 remove()删除 del 通过索引删除 ...

  8. SpringBoot 二维码生成

    一.基于Google开发工具包ZXing生成二维码 1.引入需要的依赖 <!-- zxing生成二维码 --> <dependency> <groupId>com. ...

  9. java 读取气象专业格式NetCDF文件

    一.NetCDF简介NetCDF全称为network Common Data Format( "网络通用数据格式"),是一个软件库与机器无关的数据格式,支持创建,访问基于数组的科研 ...

  10. synchronized原理-字节码分析、对象内存结构、锁升级过程、Monitor

    本文分析的问题: synchronized 字节码文件分析之 monitorenter.monitorexit 指令 为什么任何一个Java对象都可以成为一把锁? 对象的内存结构 锁升级过程 Moni ...