上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页
摘要: 网址: https://babeljs.io/repl 使用: 本来是不理解该语法的: const { Component, useState, } = owl; 但是当勾选es2015后就很容易理解了: var _owl = owl, Component = _owl.Component, use 阅读全文
posted @ 2020-10-07 10:30 那时一个人 阅读(350) 评论(0) 推荐(0)
摘要: 有时访问某些网站时解析的ip地址是错误的,比如有的解析为127.0.0.1,就会导致网站无法访问 解决方法: 在https://www.ipaddress.com/网站查询真实的ip地址, 修改电脑的hosts文件:linux 系统/etc/hosts,window系统自行百度 hosts文件中添加 阅读全文
posted @ 2020-10-07 09:47 那时一个人 阅读(1126) 评论(0) 推荐(0)
摘要: https://zhuanlan.zhihu.com/p/45919661 推荐理由: 支持截图并编辑 阅读全文
posted @ 2020-10-05 16:19 那时一个人 阅读(119) 评论(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 那时一个人 阅读(192) 评论(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 那时一个人 阅读(708) 评论(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 那时一个人 阅读(343) 评论(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 那时一个人 阅读(254) 评论(0) 推荐(0)
摘要: 步骤: 一般我会先创建一个空的触发起函数,为了第二步先创建触发器,和触发器有关联以后,触发器中的new等关键字才能被编辑器识别,方便编辑触发器函数: create or replace function func_trigger_stock_move_insert() returns trigger 阅读全文
posted @ 2020-09-25 17:45 那时一个人 阅读(249) 评论(0) 推荐(0)
摘要: 目前有两种比较推荐的方法: 重写export方法在export方法中将表头及数据造出来,只需要将数据写入列表中即可,推荐使用sql,连表查询比较灵活,需要注意的是表头要和数据一一对应,不然报错: class IncomingValuableGroupViewResource(resources.Mo 阅读全文
posted @ 2020-09-24 15:30 那时一个人 阅读(998) 评论(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 那时一个人 阅读(418) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 46 下一页