上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 61 下一页
摘要: 查询订单的 定金+支付金额 -支付金额 错误写法 Order.objects.aggregate( sum=Sum(F('final_amt') + F('deposit_amt') - F('refund_amt')) ) ) 正确的信息 Order.objects.aggregate( sum= 阅读全文
posted @ 2023-09-22 09:06 vx_guanchaoguo0 阅读(8) 评论(0) 推荐(0) 编辑
摘要: java package com.example; import org.springblade.core.tool.utils.*; import javax.annotation.Nullable; import javax.crypto.Cipher; import javax.crypto. 阅读全文
posted @ 2023-09-21 18:01 vx_guanchaoguo0 阅读(46) 评论(0) 推荐(0) 编辑
摘要: java 代码 package com.example.trip_vip; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import javax.crypto.Cipher; import jav 阅读全文
posted @ 2023-09-21 18:00 vx_guanchaoguo0 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 先说结论 就是指针引用和非指针引用 调用没啥区别的 golang 会做自动转换 将指针转为非指针调用 代码演示 package main import "fmt" type T struct { Name string } func (p *T) SetName(name string) { p.N 阅读全文
posted @ 2023-09-15 08:49 vx_guanchaoguo0 阅读(215) 评论(0) 推荐(0) 编辑
摘要: ### pg订阅[ 传送门](https://www.cnblogs.com/guanchaoguo/p/17679035.html) #### 服务端代码 ``` const {Client} = require('pg'); const WebSocket = require('ws'); co 阅读全文
posted @ 2023-09-05 15:05 vx_guanchaoguo0 阅读(12) 评论(0) 推荐(0) 编辑
摘要: #### Postgres 在 9.1 之后推出 LISTEN / NOTIFY #### 创建一个数据表 foo ``` CREATE TABLE foo (id serial primary key, name varchar); ``` #### 创建一个 存贮过程 ``` CREATE FU 阅读全文
posted @ 2023-09-05 10:54 vx_guanchaoguo0 阅读(11) 评论(0) 推荐(0) 编辑
摘要: ### 安装 pgsql ``` brew uninstall --force postgresql rm -rf /usr/local/var/postgres brew install postgres brew install postgis ``` ### 查看版本 ``` psql -V 阅读全文
posted @ 2023-09-04 17:13 vx_guanchaoguo0 阅读(100) 评论(0) 推荐(0) 编辑
摘要: #### 好吃 * vs 占用的内存很少 很轻量 * 但是需要自己人肉配置 ### 核心两个点 * 启动项目文件 launch.json * 项目设置包括 rest http client ### django .vscdoe 新建 launch.json ``` { "version": "0.2 阅读全文
posted @ 2023-09-04 10:24 vx_guanchaoguo0 阅读(39) 评论(0) 推荐(0) 编辑
摘要: ### 安装 MQTT Broker * mosquitto 纯 C 实现 * https://github.com/eclipse/mosquitto.git ### 安装 ``` brew install mosquitto ``` ### 启动服务 ``` mosquitto ``` ![]( 阅读全文
posted @ 2023-09-01 17:29 vx_guanchaoguo0 阅读(160) 评论(0) 推荐(0) 编辑
摘要: ### 利用pdfminer.six 和 fiz ``` import os from pathlib import Path from fitz import fitz from pdfminer.high_level import extract_text def mu_extract_imag 阅读全文
posted @ 2023-09-01 10:24 vx_guanchaoguo0 阅读(37) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 61 下一页