Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e5713204
authored
2023-01-15 16:15:53 +0800
by
王聪
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加cms_status_info时间
1 parent
d364e1e6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
e571320
...
...
@@ -1407,12 +1407,15 @@ class SECMSView(GenericView):
cms_status_info
=
cms_status_class
.
objects
.
filter
(
application_id
=
application_id
)
.
first
()
if
cms_status_info
:
cms_status_info
.
is_fsm
=
1
cms_status_info
.
update_time
=
datetime
.
datetime
.
now
()
cms_status_info
.
save
()
else
:
cms_status_info
=
cms_status_class
()
cms_status_info
.
application_id
=
application_id
cms_status_info
.
business_type
=
business_type
cms_status_info
.
is_fsm
=
1
cms_status_info
.
update_time
=
datetime
.
datetime
.
now
()
cms_status_info
.
create_time
=
datetime
.
datetime
.
now
()
cms_status_info
.
save
()
except
Exception
as
e
:
self
.
exception_log
.
exception
(
'[cms view] [cms_status_info db save failed] [error={0}]'
.
format
(
traceback
.
format_exc
()))
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment