摘要: 判断表是否存在方法1: SELECT case WHEN a.cc =1 THEN 2 else 0 END FROM ( select count(*) as cc from pg_class where relname = 'wo' --wo is table name,pg_class是pg自 阅读全文
posted @ 2020-04-18 20:42 山兮木 阅读(3439) 评论(0) 推荐(0) 编辑
摘要: select DATE_FORMAT(create_time,'%Y%u') weeks,count(caseid) count from tc_case group by weeks; select DATE_FORMAT(create_time,'%Y%m%d') days,count(case 阅读全文
posted @ 2020-04-12 18:57 山兮木 阅读(2396) 评论(0) 推荐(1) 编辑
摘要: docker中 启动所有的容器命令 docker start $(docker ps -a | awk '{ print $1}' | tail -n +2) docker中 关闭所有的容器命令 docker stop $(docker ps -a | awk '{ print $1}' | tai 阅读全文
posted @ 2020-04-10 22:56 山兮木 阅读(12833) 评论(0) 推荐(2) 编辑
摘要: 写了一天代码,提交时报错。拉取也不行 Can't Update No tracked branch configured for branch master or the branch doesn't exist. To make your branch track a remote branch 阅读全文
posted @ 2020-03-27 20:24 山兮木 阅读(5597) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_38860565/article/details/90745727 https://www.cnblogs.com/yanwanglol/p/9860202.html 阅读全文
posted @ 2020-03-21 17:57 山兮木 阅读(125) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/Survivalist/p/8979929.html 阅读全文
posted @ 2020-03-11 17:00 山兮木 阅读(513) 评论(0) 推荐(0) 编辑
摘要: 今天docker运行了consul后:打开界面 百度了其他人,说换火狐浏览器就行。结果不管用 然后我就测试了下代码:发现也失败了:OperationException(statusCode=500, statusMessage='Internal Server Error', st......... 阅读全文
posted @ 2020-03-10 17:11 山兮木 阅读(937) 评论(0) 推荐(0) 编辑
摘要: paramType:表示参数放在哪个地方 header-->请求参数的获取:@RequestHeader(代码中接收注解) query-->请求参数的获取:@RequestParam(代码中接收注解) path(用于restful接口)-->请求参数的获取:@PathVariable(代码中接收注解 阅读全文
posted @ 2019-11-22 14:48 山兮木 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: 转载:https://www.jianshu.com/p/2cf1a0736154 搜尽各大神 最后得出原因是eslint检测出现bug 解决方法有两种 v-for 后添加 :key='item' <li v-for="i in list" :key="i"> 在build处关闭eslint检测 . 阅读全文
posted @ 2019-11-21 14:02 山兮木 阅读(1059) 评论(1) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_38229356/article/details/82937420 阅读全文
posted @ 2019-11-19 17:35 山兮木 阅读(112) 评论(0) 推荐(0) 编辑
/* 看板娘 */