Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
U
unify_api2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chaonan
unify_api2
Commits
63dff97b
Commit
63dff97b
authored
Mar 14, 2024
by
ZZH
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix contact add time condition 2024-03-14
parent
5fbd8156
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
contact_us_srv.py
unify_api/modules/qkadmin/service/contact_us_srv.py
+2
-2
No files found.
unify_api/modules/qkadmin/service/contact_us_srv.py
View file @
63dff97b
...
...
@@ -10,9 +10,9 @@ async def load_contact_records(page_num, page_size, s_dts, e_dts):
offsets
=
0
if
page_num
==
0
else
(
page_num
-
1
)
*
page_size
ts_conds
=
[]
if
s_dts
:
ts_conds
.
append
(
f
"
pub
_time>='{str(s_dts)}'"
)
ts_conds
.
append
(
f
"
create
_time>='{str(s_dts)}'"
)
if
e_dts
:
ts_conds
.
append
(
f
"
pub
_time<'{str(e_dts)}'"
)
ts_conds
.
append
(
f
"
create
_time<'{str(e_dts)}'"
)
conds_str
=
" WHERE "
+
" AND "
.
join
(
ts_conds
)
if
ts_conds
else
""
async
with
MysqlUtil
(
db
=
"official_web"
)
as
conn
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment