上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页
摘要: https://zhuanlan.zhihu.com/p/45919661 推荐理由: 支持截图并编辑 阅读全文
posted @ 2020-10-05 16:19 那时一个人 阅读(118) 评论(0) 推荐(0)
摘要: 例子 from django.db import connection cr = connection.cursor() sql = 'select * from auth_permissions where id=%s' cr.execute(sql,(1,)) cr.fetchone() 查看执 阅读全文
posted @ 2020-10-05 15:54 那时一个人 阅读(189) 评论(0) 推荐(0)
摘要: 从视图结构来管控: 以stock.picking 的tree 视图为例,如果将name字段设置群组管控 <?xml version="1.0"?> <tree decoration-info="state == 'draft'" decoration-muted="state == 'cancel' 阅读全文
posted @ 2020-10-05 11:15 那时一个人 阅读(701) 评论(0) 推荐(0)
摘要: 生产的代码比较简单: import json from kafka import KafkaProducer from decimal import Decimal import decimal class DecimalEncoder(json.JSONEncoder): def default( 阅读全文
posted @ 2020-09-29 16:03 那时一个人 阅读(338) 评论(0) 推荐(0)
摘要: 推荐该文章,亲测可用: https://www.jianshu.com/p/bacc8eb03c4b 推荐使用 yml: version: '3' services: zookeeper: image: wurstmeister/zookeeper ports: - "2182:2181" netw 阅读全文
posted @ 2020-09-28 14:23 那时一个人 阅读(250) 评论(0) 推荐(0)
摘要: 步骤: 一般我会先创建一个空的触发起函数,为了第二步先创建触发器,和触发器有关联以后,触发器中的new等关键字才能被编辑器识别,方便编辑触发器函数: create or replace function func_trigger_stock_move_insert() returns trigger 阅读全文
posted @ 2020-09-25 17:45 那时一个人 阅读(245) 评论(0) 推荐(0)
摘要: 目前有两种比较推荐的方法: 重写export方法在export方法中将表头及数据造出来,只需要将数据写入列表中即可,推荐使用sql,连表查询比较灵活,需要注意的是表头要和数据一一对应,不然报错: class IncomingValuableGroupViewResource(resources.Mo 阅读全文
posted @ 2020-09-24 15:30 那时一个人 阅读(991) 评论(0) 推荐(0)
摘要: 我有这样一个函数:func_report_incoming_detail(int,varchar(33)), 如何使用Python拼接sql 语句 sql = "select func_report_incoming_detail({},{})".format(location_id or 'nul 阅读全文
posted @ 2020-09-22 17:19 那时一个人 阅读(415) 评论(0) 推荐(0)
摘要: ![](https://img2020.cnblogs.com/blog/1482713/202009/1482713-20200920151026555-1439819257.png) 阅读全文
posted @ 2020-09-20 15:11 那时一个人 阅读(1739) 评论(0) 推荐(1)
摘要: 使用`array_agg() 方法 阅读全文
posted @ 2020-09-19 18:28 那时一个人 阅读(2165) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页