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 21eb76a5
authored
Apr 23, 2023
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改代码
1 parent
bbed3e60
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
MysqlUtility.py
calc_dj_income_2021.py
MysqlUtility.py
View file @
21eb76a
# -*- coding:utf-8 -*-
# -*- coding:utf-8 -*-
from
__future__
import
print_function
from
__future__
import
print_function
import
time
import
time
import
MySQLdb
# import MySQLdb
import
pymysql
as
MySQLdb
import
sys
import
sys
...
@@ -11,7 +12,8 @@ import sys
...
@@ -11,7 +12,8 @@ import sys
#
#
def
paddstr
(
strx
):
def
paddstr
(
strx
):
return
"NULL"
if
strx
==
None
else
"
\'
"
+
MySQLdb
.
escape_string
(
str
(
strx
))
.
decode
()
+
"
\'
"
# return "NULL" if strx == None else "\'" + MySQLdb.escape_string(str(strx)).decode() + "\'"
return
"NULL"
if
strx
==
None
else
"
\'
"
+
MySQLdb
.
converters
.
escape_string
(
str
(
strx
))
+
"
\'
"
def
paddnum
(
numx
,
default
=
'NULL'
):
def
paddnum
(
numx
,
default
=
'NULL'
):
...
...
calc_dj_income_2021.py
View file @
21eb76a
...
@@ -1959,9 +1959,9 @@ if __name__ == "__main__":
...
@@ -1959,9 +1959,9 @@ if __name__ == "__main__":
# update_delivery_device_settle_merchant(8, 2021)
# update_delivery_device_settle_merchant(8, 2021)
# #处理直销 (原代销)
# #处理直销 (原代销)
match_not_direct_settlement_delivery_order
(
startTime
,
8
,
0
)
#
match_not_direct_settlement_delivery_order(startTime, 8, 0)
# #匹配客户渠道 (原直销)
# #匹配客户渠道 (原直销)
match_direct_settlement_delivery_order
(
startTime
,
devType
=
8
,
findmode
=
0
)
#
match_direct_settlement_delivery_order(startTime, devType=8, findmode=0)
#
#
# #记录仪直销 (原代销)
# #记录仪直销 (原代销)
# match_not_direct_settlement_delivery_order(startTime, devType=6, mode=0)
# match_not_direct_settlement_delivery_order(startTime, devType=6, mode=0)
...
@@ -1994,4 +1994,6 @@ if __name__ == "__main__":
...
@@ -1994,4 +1994,6 @@ if __name__ == "__main__":
# 追踪器渠道测算激活
# 追踪器渠道测算激活
# active_direct_merchant_device()
# active_direct_merchant_device()
# print(paddstr('杨林龙'))
print
(
"done"
)
print
(
"done"
)
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