mapperTemp
@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);
随机推荐
- [FAQ] curl SSL_connect: SSL_ERROR_SYSCALL / wget Unable to establish SSL connection
当客户端访问 https 网站时遇到这些错误提示,通常问题出在服务器,而不是客户端. 因为你换一个 https 网站进行请求,可以验证这一点. 通过浏览器访问正常,大多数浏览器通过重试较低的 TLS ...
- [PHP] 浅谈 Laravel Scout 的存在意义
注:Laravel Scout 是官方支持的对框架模型数据进行全文检索功能的扩展包. Laravel 的 Scout 与 Eloquent ORM 进行了深度集成,不用开发者再自己进行代码侵入了. L ...
- 2019-8-31-dotnet-线程静态字段
title author date CreateTime categories dotnet 线程静态字段 lindexi 2019-08-31 16:55:58 +0800 2019-06-13 0 ...
- "友链"
欢迎来到我的友链小屋 展示本站所有友情站点,排列不分先后,均匀打乱算法随机渲染的喔! 友链信息 博客名称:麋鹿鲁哟博客网址:https://www.cnblogs.com/miluluyo/博客头 ...
- 05. C语言数组
数组用于将多个数据集中存储,方便管理,此文将任何集中存储一组数据的语句都称为数组,数组根据存储数据的类型和方式分为以下类型:数组.结构体.共用体.枚举. [数组] 数组用于存储多个类型相同的数据,可以 ...
- CentOS加载yum源时报错 [Errno 14] HTTP Error 404 - Not Found Trying other mirror.
报错内容: [root@192 yum.repos.d]# yum repolist Loaded plugins: fastestmirror, product-id, search-disable ...
- js中关于return和if条件处理
好玩的 // if (true) { // return // } // // 不会打印 // console.log('1') // if (false) { // return // } // / ...
- C语言:输入一个整数并让其逆反输出。123->321
主要思想为: a)计算输入的位数有多少个 b)计算出最高位的单位(若最高位为是万位, 那么需要一个变量存储最高位数值1000) c)用取模的方法从个位数开始进行取出每一个单位上的数字 d)从个位数开始 ...
- 智能调度_AIRIOT智能车队管理解决方案
客运.货运.汽车租赁.出租运营等行业对车辆管理.车队管理以及司乘人员的管理方式,逐渐向数字化和智能化转型.传统的依赖人工调度.记录和跟踪的管理模式已经难以满足业务发展需要,存在如下痛点: 实时监控与定 ...
- C# WPF 坦克大战
wpf写的.主要是Canvas做画布 和类似的Rectangle的自定义类 采用了画面帧的思想,子弹 坦克移动 效果 都是 在主界面用一个定时器 循环,每秒60帧,这样做的好处,对比我之前做的炸弹人游 ...