@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. [GPT] vue 的 quasar 框架 在 layout 模版中 如何获取 子页面当前使用的 useMeta

      在 Quasar 框架中,用 Vue Router 的 meta 字段来获取子页面当前使用的 useMeta . 首先,您需要在路由配置中设置子页面的 meta 字段.例如: const rout ...

  2. [Go] freecache 设置 SetGCPercent 的作用

    你需要对 freecache 有一个大致了解,freecache 的内存空间是预分配的. 假设你的程序占用了 50M 内存,那么开启 freecache 预分配 200M 空间,总共下来就是 250M ...

  3. [FAQ] Composer, Content-Length mismatch

    1. $ composer config repos.packagist composer https://php.cnpkg.org$ composer config cache-files-max ...

  4. WinDbg 设置在加载到某个 DLL 进入断点

    本文记录如何在 WinDbg 里,设置在加载到某个 DLL 时,自动进入断点.通过此方式用来定位是哪个业务模块加载了某个 DLL 模块 在 WinDbg 里面,可以附加到现有进程,也可以启动某个进程. ...

  5. webapi授权认证

    webapi授权认证 一.需要类包 Microsoft.AspNetCore.Authentication.JwtBearer 二.相关名词 Authentication(认证):标识用户的身份,一般 ...

  6. EPAI手绘建模APP资源管理和模型编辑器2

    g) 矩形   图 26模型编辑器-矩形 i. 修改矩形的中心位置. ii. 修改矩形的长度和宽度. h) 正多边形 图 27模型编辑器-内接正多边形 图 28模型编辑器-外切正多边形 i. 修改正多 ...

  7. 虚拟服务器VirtualBox不要太好用

    在工作和学习前端的路上遇到过太多的坑,就是跳进坑里了,还要勇敢的爬起来. 本章真的想真心实意的推荐一下,超好用的虚拟服务器.你还在纠结window环境和Mac本的区别吗?是不是上班用的window电脑 ...

  8. 开发环境需要同时安装2个nodejs版本

    由于同时有vue2和vue3的项目开发情况,vue2项目的nodejs版本是12,vue3项目在node12版本下运行不了,要求最低14版本,因此要用nvm同时安装和控制2个版本. 安装步骤: 1.卸 ...

  9. 2023年Clion插件推荐

    目录 搜素位置 插件 background-image plus 背景图片插件 Rainbow Brackets 彩虹括号 Xcode-Dark Theme 界面主题 Grep Console 日志颜 ...

  10. java基础 韩顺平老师的 异常 自己记的部分笔记

    443,异常处理入门 package com.hspedu.exception_; public class Exception { public static void main(String[] ...