- 博客(133)
- 资源 (1)
- 收藏
- 关注
原创 SQL查询字段,并统计该字段在另外一张表出现的次数
查询一个字段,并且这个字段在另外一张表的出现的总次数SELECT b2c_user_card.card_no, COUNT( b2c_charge_money.card_no) as allsFROM b2c_user_card LEFT JOIN b2c_charge_money ON b2c_user_card.card_no = b2c_charge_money.card_no WHERE b2c_user_card.card_no = 2455475608826567stacko
2020-05-21 21:14:29 3012
原创 css使用table布局
用css来布局<div class="table"> <div class="table-row"> <div class="table-cellone">标题</div> <div class="table-cell">选项1</div> </div> <div class="table-row"> <div class="table-cell"></d
2020-05-11 16:15:50 307
原创 springboot restful 上传文件
bezkoder: spring-boot-file-uploadspring document: MultipartFile通过restful api的方式,通过postman来上传文件,如: 图片,视频等多媒体文件核心MultipartFile 多媒体文件的抽象表示@RequestParam(“name”) 在controller层不封装成对象时直接使用@ModelAttribute 在controller层封装成对象时使用@RequestParam | MultipartFile@
2020-05-08 19:48:01 1533
原创 css justify-content
justify-content能够帮助我们快速实现布局w3school justify-contentjustify-content演示css-tricks justify-content
2020-04-21 09:55:13 246
原创 vue slot
组件html的placeholder在注入的自组件中,通过slot能够访问父组件的数据<base-icon name="users">{{ event.attendees.length }} attending</base-icon>default slotmulti slot 需要使用nameMediaBox.vue<template>...
2020-04-21 01:20:00 146
原创 vue router
githubreal world vuerouterserver-side renderingvue router 解决的是client-side 问题Often the view we need to show has already been loaded into the browser, so we don’t need to reach out to the server f...
2020-04-20 22:41:03 167
原创 vue组件-props 2
通过数组传递值<template> <div> <el-checkbox-group v-model="tmpact" @change="appendActivity"> <el-checkbox label="COUPON">优惠券</el-checkbox> &...
2020-04-20 18:21:26 141
原创 create vue cli project
vue clicreate a vue project from the commind line苹果电脑安装nodejs环境,Node js downloadinstall vue clinpm i -g @vue/cli创建项目vue create project-name启动vue cli projectnpm run servevue u...
2020-04-19 19:57:48 163
原创 javascript Object 属性
属性合并let a = {name: 'hello'}let b = {...a,age: 23}// {name: "hello", age: 23}深拷贝anathorObj = JSON.parse(JSON.stringfy(obj))
2020-04-10 14:54:10 129
原创 css 内容溢出2 scroll
w3school overflow scroll height: 300px; overflow: scroll;
2020-04-10 11:03:40 173
原创 css display inline-flex
jsfiddle实验.clearfix{ width: 40%; display: inline-flex; flex-direction: row; flex-wrap: wrap; margin-right: 20px;}li{ margin-right: 20px;}
2020-04-07 16:53:24 192
原创 遍历Object属性
for loopslet obj = {name: "Q10",email: "jj@gmail.com"}const content = []for(let key in obj){ content.push(obj[key])}console.log(content) // ["Q10", "jj@gmail.com"]
2020-04-04 22:47:03 144
原创 2020-04-04哀悼色彩
向为对抗击新冠肺炎疫情斗争牺牲的烈士和逝世同胞表示深切的悼念。京东<html class="root61 o2_wide csstransitions cssanimations o2_webkit o2_chrome o2_latest o2_gray">html.o2_gray { -webkit-filter: grayscale(100%); filte...
2020-04-04 00:26:44 355
原创 小程序消息推送理论理解
消息推送前端-》CSDN: 借助云开发实现小程序订阅消息和模板消息的推送功能后台-》掘金:小程序订阅消息推送(含源码)java实现小程序推送,springboot实现微信消息推送...
2020-04-03 16:30:20 220
原创 sql连接新生代
left joinstackoverflow: what is the difference between inner join and outer join极客学院-sql 连接
2020-04-02 11:49:57 194
原创 Java时间-当你老了
根据Timestamp选择最新的时间List<Timestamp> times = Arrays.<Timestamp>asList(orderTime,cardOrderTime,storeStoreTime,serviceTime); LocalDateTime res = null; for(Timestamp t: times) { if(t != nul...
2020-04-01 22:46:09 128
原创 SQL查询更上一层楼
count distinctSQL 语句SELECT count( DISTINCT `b2c_return_order`.`order_sn` ) FROM `b2c_return_order` WHERE ( `b2c_return_order`.`user_id` = 198 AND `b2c_return_order`.`refund_status` = 5 )对...
2020-04-01 20:58:25 181
原创 Mysql Lock wait timeout exceeded
问题场景复原调试在java代码中debug操作,进入到事务中,操作user表中关于userId=197的一行中任意一个字段然后循环或者时间Thread.sleep等待,此时这行就被锁住了。如果当前期间对这行的某个字段进行更新,则这个操作将会由于在事务中userId=197这行已经被锁定而进入阻塞等待状态,如果等待的时间超过数据库中设置的某个值则会报错。如果在阻塞是将内处于事务中的这行,已经将...
2020-03-26 03:43:07 193
原创 sql语句拦截检查
拦截器对不含 where 的 update 语句进行拦截/** * SQL 监听器 * <p> * 对不含 where 的 update 语句进行拦截,防止批量误操作 */public class QueryFilter extends SqlExcuteListener { private static final long serialVersionUID =...
2020-03-25 15:41:05 627 1
原创 Java List
Initialization of an ArrayList in one linestackoverflow: Initialization of an ArrayList in one line初始化一个带有默认值的listList<Integer> res = Collections.<Integer>singletonList(3);...
2020-03-25 14:52:34 115
原创 css顶部固定
<div class="footer"> <div> <el-button type="primary" size="small" @click="handleToFooter(0)" >{{$t('pageSetUp.saveAndPublish')}}&...
2020-03-23 19:46:41 231
原创 left join 重复
left join查询重复问题user_score表user_idscore3100420user_tag表user_idtag_id3132正常的左连接查询,查询某个用户,比如id=3的积分,但是该用户必须有tag表数据。也就是说此时的左连接user_tag并不是为了取数据,而是做条件判断,从而从user_score中...
2020-03-23 18:02:42 262
原创 elementui date picker
选择日期范围在选择日期范围时,我们希望时分秒为指定自己想要的数值。 <el-date-picker v-model="datePickerVal" type="daterange" :range-separator="$t('membershipIntroduction.to')" :start-placeholder="$t('member...
2020-03-23 16:35:39 216
原创 elementui-tooltip
tip多行换行<el-table-column prop="totalScore" align="center" > <template slot="header"> 本次签到累计获得积分数 <el-tooltip effect="light" placement="top"> <div slot...
2020-03-23 16:22:30 165
原创 java LocalDateTime
时间戳当前时间戳: 2020-03-22 23:03:38 变成最这天最开始的时间戳2020-03-21 00:00:00 和最后的时间戳2020-03-21 23:59:59public static void main(String[] args) { LocalDateTime now = LocalDateTime.now(); // 2020-03-2...
2020-03-22 23:18:13 191
原创 javascript property access
Array又不是Arrayarray是一个object,property access访问后,typeof不再是array,而是object,但是仍然具有array的属性和方法。var y = []y[0]=true;y.name="can you see me";y[10]=true;y['11'] = true y['twelve'] = truey.push(true) /...
2020-03-20 07:46:00 172
原创 Java BigDecimal
null错误在处理卡余额时,从数据库中查询出来的值需要转换为BigDecimal,但是发现查询的时候有会查询出Null的情况,导致错误 public static void main(String[] args) { // Integer money = 3; Integer money = null; BigDecimal mm = Bi...
2020-03-19 19:37:27 105
原创 javascript this key world understand
这个例子能更好的理解this代表的是运行时,动态代理的对象。function ask(question) { console.log(this.teacher,question);}function otherClass() { let myContext = { teacher: "Suzy3" } ask.call(myContext,"why...
2020-03-19 07:54:21 149
原创 时间选择器
yyyy-MM-dd hh:mm:ss时间选择器,默认的默认时刻是00:00:00,同一天的查询情况就会出现2020-03-12 00:00:00至2020-03-12 00:00:00,而正确需求是: 2020-03-12 00:00:00至2020-03-12 23:59:59;codeopen: time-picker// 注意 HH表示的是24格式,具体看文档value-forma...
2020-03-16 19:52:05 184
原创 Condition
查询查询手机号不能为空,不仅要处理null的情况还要处理,空字符串的情况,如果该字段,如mobile,只是处理null的情况,并不能达到效果,而是还需要检测空字符串的情况,在这里我们用长度来表示Condition condition = DSL.noCondition();if(hasMobile) { condition = condition.and(USER.MOBILE.isNot...
2020-03-16 18:04:04 128
原创 Array's Method
filter// Array's filterconst nums = [1,2,3,4,5,6,7];let res = nums.filter(n => n>5);console.log(res);参考Medium: Map, Filter and Reduce – Animated过滤会员卡的选项的校验let card = [ {score: 60...
2020-03-16 12:41:38 118
数据库系统概论(第六版)书籍和答案
2017-11-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人