Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
H
hh_ccs
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
贺阳
hh_ccs
Commits
49889fce
提交
49889fce
authored
2月 05, 2026
作者:
贺阳
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
倒挂之后后续的也不生成
上级
bae6d6bc
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
cc_bill_loading.py
ccs_connect_tiktok/models/cc_bill_loading.py
+7
-2
没有找到文件。
ccs_connect_tiktok/models/cc_bill_loading.py
浏览文件 @
49889fce
...
...
@@ -405,13 +405,15 @@ class CcBl(models.Model):
logging
.
info
(
f
"latest_prev_time: {latest_prev_time}"
)
if
candidate_time
<
latest_prev_time
:
remark
=
(
f
"自动补写提单前序关务节点被
跳过
,节点:{before_node.desc or before_node.name},"
f
"自动补写提单前序关务节点被
拦截
,节点:{before_node.desc or before_node.name},"
f
"候选时间:{candidate_time.strftime('
%
Y-
%
m-
%
d
%
H:
%
M:
%
S')},"
f
"前序节点最新时间:{latest_prev_time.strftime('
%
Y-
%
m-
%
d
%
H:
%
M:
%
S')}。"
f
"存在时间倒挂风险,请核查。"
)
bl
.
message_post
(
body
=
remark
)
continue
# continue
is_ok
=
False
break
next_nodes
=
self
.
env
[
'cc.node'
]
.
sudo
()
.
search
([
(
'node_type'
,
'='
,
'bl'
),
(
'is_must'
,
'='
,
True
),
...
...
@@ -468,10 +470,12 @@ class CcBl(models.Model):
(
'is_must'
,
'='
,
True
),
(
'seq'
,
'>'
,
state_obj
.
seq
),
])
logging
.
info
(
f
"next_nodes: {next_nodes}"
)
if
next_nodes
:
next_codes
=
next_nodes
.
mapped
(
'tk_code'
)
next_logs
=
bl
.
bl_sync_log_ids
.
filtered
(
lambda
r
:
r
.
process_code
in
next_codes
and
r
.
operate_time
)
logging
.
info
(
f
"next_logs: {next_logs}"
)
if
next_logs
:
earliest_next_time
=
min
(
next_logs
.
mapped
(
'operate_time'
))
if
candidate_time
>
earliest_next_time
:
...
...
@@ -483,6 +487,7 @@ class CcBl(models.Model):
)
logging
.
info
(
f
"allow_push: {allow_push}"
)
if
allow_push
:
logging
.
info
(
f
"state_obj: {state_obj.tk_code}"
)
bl
.
customs_clearance_status
=
state_obj
.
id
bl
.
process_time
=
candidate_time
bl
.
is_bl_sync
=
state_obj
.
node_is_sync
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论