@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. 深入理解云计算OpenAPI体系

    ​简介: 就云计算的API来看,当前并没有类似POSIX这样的API标准,基本上各大厂商各自为政.当然,有一些业界主流标准例如OAS获得多数云厂商的支持,但云厂商本身的API却往往由于历史原因.技术路 ...

  2. [Trading] 人物: 陈向忠日内交易技术核心 - 趋势形态与成交量

    分时图判断趋势(开仓方向) 只要是低点不断抬高的,就是上涨趋势,高点是否提高是其次的. 只要是高点不断降低的那就是下降趋势,假如低点也在不断降低,那么这样的下降趋势就更加完美一些. 很多人就是看对了趋 ...

  3. foreach更改element内容后this到data不生效导致页面数据无变化

    list.forEach(element => {  element = element.split('^')    console.log(element)  }) 数据已经被更改,但在外部t ...

  4. 一些简单的Post方式WebApi接收参数和传递参数的方法及总结

    原文地址:https://www.zhaimaojun.top/Note/5475297(我自己的博客网站) 各种Post方式上传参数到服务器,服务器接收各种参数的示例 webapi可以说是很常用了, ...

  5. uniapp中正确使用echart

    uniapp中不能直接使用百度echart,要么就只能嵌入html,然后在html中进入echart进行使用,这样非常不方便, 下面介绍这个插件,对百度echart进行局部小改造,使他能在uniapp ...

  6. Review社区PR的方式

    有时候review社区改动较大的PR时,在github上看不太方便,需要把相应的pr,apply到本地,记录下常用的方式 # 添加pr仓库 git remote add ${upstream_name ...

  7. 【漏洞复现】金蝶OA-EAS系统 uploadLogo.action 任意文件上传漏洞(0day)

    阅读须知         此文所提供的信息只为网络安全人员对自己所负责的网站.服务器等(包括但不限于)进行检测或维护参考,未经授权请勿利用文章中的技术资料对任何计算机系统进行入侵操作.利用此文所提供的 ...

  8. VisualStduio如何自定义代码片段

    什么是代码片段 代码片段又叫CodeSnippet,可以用来快捷补全代码.其实我们经常使用这个功能. 比如for循环,输入for会弹出这个窗口 我们选择第二个for,再按两次Tab键,编辑器就会自动生 ...

  9. Linux安装Logstash

    Logstash安装 一.上传解压重命名 将Logstash压缩包上传到/home/下解压压缩包并重命名 [root@localhost home] tar -zxf logstash-7.15.0- ...

  10. PHP做api开发时,签名验证你是怎么设计的

    开发过程中,我们经常会与接口打交道,有的时候是调取别人网站的接口,有的时候是为他人提供自己网站的接口,但是在这调取的过程中都离不开签名验证. 我们在设计签名验证的时候,请注意要满足以下几点: 可变性: ...