上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页
摘要: odoo也可以设置json路由,但是返回值会在外边套上一层,考虑直接使用http路由 @route('/mycart/addToCart', csrf=False, type='http', auth="none", methods=['POST']) def addToCart(self, **k 阅读全文
posted @ 2023-05-17 16:30 那时一个人 阅读(57) 评论(0) 推荐(0)
摘要: (0, 0, { values }) link to a new record that needs to be created with the given values dictionary (1, ID, { values }) update the linked record with id 阅读全文
posted @ 2023-05-17 15:41 那时一个人 阅读(208) 评论(0) 推荐(0)
摘要: 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 那时一个人 阅读(18) 评论(0) 推荐(0)
摘要: 防止ssh 被别人暴力破解: 安装fail2ban, 安装jumpserver 数据库要给用户查询使用: metabase,从库 进程守护:supervisor(自动重启) 阅读全文
posted @ 2023-05-02 11:19 那时一个人 阅读(19) 评论(0) 推荐(0)
摘要: 在做网络请求,传输的数据太多或者太少,都会很慢,请求太多数据可能卡死, 就请求指定数量的数据 ```py def generator_five(parm, num): """ 将列表切分成每5个来返回 :param parm: :return: """ length = len(parm) for 阅读全文
posted @ 2023-03-25 10:33 那时一个人 阅读(69) 评论(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 那时一个人 阅读(401) 评论(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 那时一个人 阅读(132) 评论(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 那时一个人 阅读(122) 评论(0) 推荐(0)
摘要: [queue_job] channels = root:2,root.WMS:1 scheme = http 主要是channels 可以设置多个, 在xml 中设置了channels 则需要同步在配置文件中设置. 阅读全文
posted @ 2023-02-27 14:16 那时一个人 阅读(115) 评论(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 那时一个人 阅读(184) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 46 下一页