上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页
摘要: https://stackoverflow.com/questions/64359564/error-java-home-is-not-set-and-no-java-command-could-be-found-in-your-flutter flutter config --android-st 阅读全文
posted @ 2023-05-12 12:12 那时一个人 阅读(17) 评论(0) 推荐(0)
摘要: 防止ssh 被别人暴力破解: 安装fail2ban, 安装jumpserver 数据库要给用户查询使用: metabase,从库 进程守护:supervisor(自动重启) 阅读全文
posted @ 2023-05-02 11:19 那时一个人 阅读(15) 评论(0) 推荐(0)
摘要: 在做网络请求,传输的数据太多或者太少,都会很慢,请求太多数据可能卡死, 就请求指定数量的数据 ```py def generator_five(parm, num): """ 将列表切分成每5个来返回 :param parm: :return: """ length = len(parm) for 阅读全文
posted @ 2023-03-25 10:33 那时一个人 阅读(62) 评论(0) 推荐(0)
摘要: select * from (select id, name, state, amount_total, row_number() over (partition by state order by amount_total) as row_num from sale_order ) as a wh 阅读全文
posted @ 2023-03-20 18:40 那时一个人 阅读(388) 评论(0) 推荐(0)
摘要: 功能说明: 在进行查询时,可以批量,多个产品编码使用逗号分割 限制: 查询的字符必须是全程,不能模糊查询 def remove_empty_from_list(lst): """移除空字符""" return [i for i in lst if i != ''] def domain_add_in 阅读全文
posted @ 2023-03-10 13:51 那时一个人 阅读(123) 评论(0) 推荐(0)
摘要: https://juejin.cn/post/7067104289520353310 网络架构: pc->14.23:7050(nginx)->14.22:8081(nginx)->14.22:8080(web服务) 23 nginx 配置: server { listen 7050; locati 阅读全文
posted @ 2023-03-08 17:26 那时一个人 阅读(116) 评论(0) 推荐(0)
摘要: [queue_job] channels = root:2,root.WMS:1 scheme = http 主要是channels 可以设置多个, 在xml 中设置了channels 则需要同步在配置文件中设置. 阅读全文
posted @ 2023-02-27 14:16 那时一个人 阅读(112) 评论(0) 推荐(0)
摘要: 文件上传到表中base_import.import @http.route('/base_import/set_file', methods=['POST']) def set_file(self, file, import_id, jsonp='callback'): import_id = in 阅读全文
posted @ 2023-01-09 00:08 那时一个人 阅读(178) 评论(0) 推荐(0)
摘要: 在进行调拨时遇到错误, stock.quant(12345,).product_uom_id 然后没有其他任何提示, 这种错误就比较难定位,到处打断点才定位到错误的位置, odoo针对计算字段compute,related,为了提高读取速度,有做预处理,但是不知道为什么就这一条记录做了预处理就报错了 阅读全文
posted @ 2022-12-31 01:36 那时一个人 阅读(162) 评论(0) 推荐(0)
摘要: 频繁的更新会影响服务的性能 发生该事件的核心代码 def lookup(self, method, *args, **kwargs): d, key0, counter = self.lru(args[0]) key = key0 + self.key(*args, **kwargs) try: r 阅读全文
posted @ 2022-12-28 00:52 那时一个人 阅读(195) 评论(0) 推荐(2)
上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页