摘要: var res []orm.Params //切片map,value为interface; // 获取当前时间now := time.Now()// 获取30天前的时间thirtyDaysAgo := now.AddDate(0, 0, -30)// 将时间转换为时间戳timestamp := th 阅读全文
posted @ 2024-03-23 16:43 17601621550 阅读(48) 评论(0) 推荐(0) 编辑
摘要: 先设置系统环境变量: GOPATH 工作目录 放自己项目的地方 比如 D:\goproject,然后自己创建三个文件夹bin、pkg、src GOROOT 安装目录 比如 D:\go 然后加Path %GOROOT%\bin go env -w GO111MODULE=on go env -w GO 阅读全文
posted @ 2022-04-14 09:28 17601621550 阅读(207) 评论(0) 推荐(0) 编辑
摘要: nginx的location加入try_files $uri $uri/ /index.php?s=$uri&$args; 转自:https://blog.csdn.net/sinat_32823207/article/details/109708436 阅读全文
posted @ 2022-04-11 19:19 17601621550 阅读(952) 评论(0) 推荐(0) 编辑
摘要: 1:第一步:打开虚拟机设备 2:第二步:去掉window peoxy的勾选项(对app端测试) 3:点击proxy选中proxy Setting 4:勾选这个 (默认端口是8888) 5:在help中选中SSL Proxying 中的Mobile Device 安装 6:IP 端口 下载证书地址(先 阅读全文
posted @ 2022-03-16 10:38 17601621550 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 样例数据: joho.wang Male 30 021-11111111111111111lucy.yang Female 25 021-22222222222222jack.chen Male 35 021-33333333333333lily.gong Female 20 021-4444444 阅读全文
posted @ 2022-01-05 10:06 17601621550 阅读(71) 评论(0) 推荐(0) 编辑
摘要: SELECT * as total FROM ( (SELECT live_msg.id AS oid from stat_user_liver_refer_stock,live_msg WHERE l_id not in ($liveLids) and live_msg.rec_time>DATE 阅读全文
posted @ 2021-12-30 16:15 17601621550 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 现有:user 用户表 user_msg 用户文章表 需求:批量取一定时间范围内注册的各个用户发表的前3条文章 select * from user_msg a where a.u_id in (SELECT id FROM `user` where rec_time>="2021-11-07") 阅读全文
posted @ 2021-12-07 18:27 17601621550 阅读(1335) 评论(0) 推荐(0) 编辑
摘要: 一个神奇的网站:https://www.cs.usfca.edu/~galles/visualization/Algorithms.html 可以准确的看到B+树插入、删除、查找的动态过程 B树和B+树的区别: B树的数据和索引在每一个节点上,B+树的所有数据都存在于叶子结点,非叶子结点只是主键。正 阅读全文
posted @ 2021-11-19 09:24 17601621550 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1.单独需要这样查,循环查的话效率很慢。 select profit_rate_w as w_r,profit_rate_t as t_r ,profit_rate_m as m_r,profit_rate_d as d_r from replica_profit where u_id=36273 阅读全文
posted @ 2021-08-31 16:49 17601621550 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 一:残余检查: 1:卸载python(以免有些同学没有卸载干净) 1 2 3 rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps #强制删除已安装程序及其关联 whereis python|xargs rm -frv #删除所有残余文件 # 阅读全文
posted @ 2021-08-10 11:01 17601621550 阅读(581) 评论(0) 推荐(0) 编辑