Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
audit_2021
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit ce182770
authored
Apr 23, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改文件
1 parent
f535f8b5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
13 deletions
.gitignore
__pycache__/MysqlUtility.cpython-37.pyc
__pycache__/MysqlUtility.cpython-39.pyc
calc_dj_income_2021.py
handle_unmatch_delivery_device.py
.gitignore
View file @
ce18277
/.idea
/.idea
/.vscode
/.vscode
/__pycache__
__pycache__/MysqlUtility.cpython-37.pyc
deleted
100644 → 0
View file @
f535f8b
No preview for this file type
__pycache__/MysqlUtility.cpython-39.pyc
deleted
100644 → 0
View file @
f535f8b
No preview for this file type
calc_dj_income_2021.py
View file @
ce18277
...
@@ -1130,7 +1130,7 @@ def active_direct_merchant_device():
...
@@ -1130,7 +1130,7 @@ def active_direct_merchant_device():
if
not
bizConn
.
query
(
sql
):
if
not
bizConn
.
query
(
sql
):
logger
.
error
(
"active_direct_merchant_device fail, sql=
%
s"
,
sql
)
logger
.
error
(
"active_direct_merchant_device fail, sql=
%
s"
,
sql
)
return
return
year
=
202
2
year
=
202
3
result
=
bizConn
.
fetchAllRows
()
result
=
bizConn
.
fetchAllRows
()
merMonthActive
=
{}
merMonthActive
=
{}
for
v
in
result
:
for
v
in
result
:
...
@@ -1580,7 +1580,7 @@ def active_direct_record_device():
...
@@ -1580,7 +1580,7 @@ def active_direct_record_device():
"""
"""
bizConn
=
MySQL
(
g_pro_biz_dbcfg
)
bizConn
=
MySQL
(
g_pro_biz_dbcfg
)
settMerDict
=
{}
settMerDict
=
{}
tblName
=
"dj_202
2
_settle_details_record"
tblName
=
"dj_202
3
_settle_details_record"
tblName
=
"dj_2021_settle_details"
tblName
=
"dj_2021_settle_details"
query_settlement_merchant
(
bizConn
,
settMerDict
)
query_settlement_merchant
(
bizConn
,
settMerDict
)
...
@@ -1625,7 +1625,7 @@ def active_direct_record_device():
...
@@ -1625,7 +1625,7 @@ def active_direct_record_device():
sencond
,
sencond
,
)
)
if
activeTime
>=
"2023-0
1
-01 00:00:00"
:
if
activeTime
>=
"2023-0
4
-01 00:00:00"
:
# updateSql = f"update {tblName} set active_time=null,active_merchant='' where id=%d" % (
# updateSql = f"update {tblName} set active_time=null,active_merchant='' where id=%d" % (
# idx)
# idx)
continue
continue
...
@@ -1978,22 +1978,22 @@ if __name__ == "__main__":
...
@@ -1978,22 +1978,22 @@ if __name__ == "__main__":
# #追踪器
# #追踪器
# handle_return_device('直销', data=2021, devType=8)
# handle_return_device('直销', data=2021, devType=8)
# #记录仪
# #
#
记录仪
# handle_return_device('直销', data=2021, devType=6)
# handle_return_device('直销', data=2021, devType=6)
# #车充退货
# #
#
车充退货
# handle_return_device('直销', data=2021, devType=12501)
# handle_return_device('直销', data=2021, devType=12501)
#
#
#
# #车充退货
# #
#
车充退货
# handle_return_device('渠道', data=2021, devType=12501)
# handle_return_device('渠道', data=2021, devType=12501)
# #渠道追踪器退货
# #
#
渠道追踪器退货
# handle_return_device('渠道', data=2021, devType=8)
# handle_return_device('渠道', data=2021, devType=8)
# #记录仪
# #
#
记录仪
handle_return_device
(
'渠道'
,
data
=
2021
,
devType
=
6
)
#
handle_return_device('渠道', data=2021, devType=6)
# 记录仪渠道激活
# 记录仪渠道激活
#
active_direct_record_device()
active_direct_record_device
()
# 追踪器渠道测算激活
# 追踪器渠道测算激活
#
active_direct_merchant_device()
active_direct_merchant_device
()
print
(
"done"
)
print
(
"done"
)
handle_unmatch_delivery_device.py
View file @
ce18277
...
@@ -809,7 +809,7 @@ if __name__ == "__main__":
...
@@ -809,7 +809,7 @@ if __name__ == "__main__":
endTime
=
'2023-03-31'
endTime
=
'2023-03-31'
#追踪器设备
#追踪器设备
match_gen_sn_settlement_delivery_order
(
startTime
,
devType
=
8
,
prefix
=
'19'
)
#
match_gen_sn_settlement_delivery_order(startTime, devType=8, prefix='19')
# #记录仪设备
# #记录仪设备
# match_gen_sn_settlement_delivery_order(startTime, devType=6, prefix='SH23G')
# match_gen_sn_settlement_delivery_order(startTime, devType=6, prefix='SH23G')
# #'SH26H', 'SH23G', 'SH24G'
# #'SH26H', 'SH23G', 'SH24G'
...
...
Write
Preview
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