Commit f3e58cca by 杨林龙

审计脚本

0 parents
File mode changed
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.9" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<DBN-PSQL>
<case-options enabled="true">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false" />
</DBN-PSQL>
<DBN-SQL>
<case-options enabled="true">
<option name="KEYWORD_CASE" value="lower" />
<option name="FUNCTION_CASE" value="lower" />
<option name="PARAMETER_CASE" value="lower" />
<option name="DATATYPE_CASE" value="lower" />
<option name="OBJECT_CASE" value="preserve" />
</case-options>
<formatting-settings enabled="false">
<option name="STATEMENT_SPACING" value="one_line" />
<option name="CLAUSE_CHOP_DOWN" value="chop_down_if_statement_long" />
<option name="ITERATION_ELEMENTS_WRAPPING" value="chop_down_if_not_single" />
</formatting-settings>
</DBN-SQL>
</code_scheme>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Eclipse" />
<option name="BUILD_PROCESS_HEAP_SIZE" value="1300" />
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
</annotationProcessing>
<bytecodeTargetLevel target="8" />
</component>
<component name="TypeScriptCompiler">
<option name="recompileOnChanges" value="true" />
</component>
</project>
\ No newline at end of file
<component name="CopyrightManager">
<settings>
<LanguageOptions name="Lua">
<option name="fileTypeOverride" value="3" />
<option name="block" value="false" />
<option name="prefixLines" value="false" />
<option name="filler" value="=" />
</LanguageOptions>
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectDictionaryState">
<dictionary name="59276" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" native2AsciiForPropertiesFiles="true" defaultCharsetForPropertiesFiles="UTF-8">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PyCompatibilityInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ourVersions">
<value>
<list size="5">
<item index="0" class="java.lang.String" itemvalue="2.7" />
<item index="1" class="java.lang.String" itemvalue="3.8" />
<item index="2" class="java.lang.String" itemvalue="3.9" />
<item index="3" class="java.lang.String" itemvalue="3.10" />
<item index="4" class="java.lang.String" itemvalue="3.11" />
</list>
</value>
</option>
</inspection_tool>
<inspection_tool class="PyStubPackagesAdvertiser" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredPackages">
<list>
<option value="docutils-stubs==0.0.21" />
</list>
</option>
</inspection_tool>
</profile>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AnalysisProjectProfileManager">
<option name="PROJECT_PROFILE" />
<option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
<list size="0" />
</component>
<component name="CamelCaseConfig">
<option name="cb2State" value="false" />
<option name="cb3State" value="false" />
<option name="cb6State" value="false" />
</component>
<component name="CheckStyle-IDEA">
<option name="configuration">
<map>
<entry key="checkstyle-version" value="8.18" />
<entry key="copy-libs" value="true" />
<entry key="location-0" value="BUNDLED:(bundled):Sun Checks" />
<entry key="location-1" value="BUNDLED:(bundled):Google Checks" />
<entry key="scan-before-checkin" value="false" />
<entry key="scanscope" value="JavaOnly" />
<entry key="suppress-errors" value="false" />
</map>
</option>
</component>
<component name="ClojureProjectResolveSettings">
<currentScheme>IDE</currentScheme>
</component>
<component name="ComposerJsonPluginSettings">
<unboundedVersionInspectionSettings>
<excludedPackages />
</unboundedVersionInspectionSettings>
<customRepositories />
<composerUpdateOptions />
</component>
<component name="EclipseCodeFormatterProjectSettings">
<option name="projectSpecificProfile">
<ProjectSpecificProfile>
<option name="formatter" value="ECLIPSE" />
<option name="pathToConfigFileJava" value="$APPLICATION_CONFIG_DIR$/Eclipse_CodeFormatter.xml" />
<option name="selectedJavaProfile" value="CodeFormatter" />
</ProjectSpecificProfile>
</option>
</component>
<component name="EmacsSettings">
<option name="emacsPath" value="C:\tools\emacs-26.1\bin\emacs.exe" />
</component>
<component name="JUnitGeneratorProjectSettings">
<option name="combineGetterAndSetter" value="true" />
<option name="selectedTemplateKey" value="JUnit 4" />
</component>
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="JuliaProjectSettings">
<option name="exePath" value="C:\JAVAAPP\Julia-1.3.0\bin\julia.exe" />
</component>
<component name="MarkdownSettingsMigration">
<option name="stateVersion" value="1" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.9" project-jdk-type="Python SDK" />
<component name="RebarSettings">
<rebarPath>C:\JAVAAPP\rebar3-3.13.0\bootstrap</rebarPath>
</component>
<component name="RustProjectSettings">
<option name="toolchainHomeDirectory" value="$USER_HOME$/.cargo/bin" />
<option name="version" value="2" />
</component>
<component name="SaveActionSettings">
<option name="actions">
<set>
<option value="activate" />
<option value="organizeImports" />
<option value="reformatChangedCode" />
<option value="rearrange" />
<option value="compile" />
<option value="reload" />
</set>
</option>
<option name="configurationPath" value="" />
</component>
<component name="ScalafmtSettings">
<option name="formatOnSave" value="true" />
</component>
<component name="SshConsoleOptionsProvider">
<option name="myEncoding" value="UTF-8" />
<option name="myConnectionType" value="NONE" />
<option name="myConnectionId" value="" />
</component>
<component name="SuppressionsComponent">
<option name="suppComments" value="[]" />
</component>
<component name="ZooKeeperConfig">
<option name="host" value="" />
<option name="port" value="2181" />
<option name="charset" value="UTF-8" />
<option name="whitePaths" value="" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/audit_2021.iml" filepath="$PROJECT_DIR$/.idea/audit_2021.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Play2CompilerConfiguration">
<option name="PROJECT_PLAY_MODULE" value="" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ScalaSbtSettings">
<option name="customVMPath" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AutoImportSettings">
<option name="autoReloadType" value="ALL" />
</component>
<component name="ChangeListManager">
<list default="true" id="7586b71b-696b-4fef-9808-019ee238157b" name="Changes" comment="" />
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CodeStyleSettingsInfer">
<option name="done" value="true" />
</component>
<component name="CompilerWorkspaceConfiguration">
<option name="MAKE_PROJECT_ON_SAVE" value="true" />
<option name="PARALLEL_COMPILATION" value="true" />
</component>
<component name="Git.Settings">
<option name="ROOT_SYNC" value="DONT_SYNC" />
</component>
<component name="MavenImportPreferences">
<option name="generalSettings">
<MavenGeneralSettings>
<option name="alwaysUpdateSnapshots" value="true" />
<option name="mavenHome" value="D:/JAVAAPP/apache-maven-3.6.3" />
<option name="usePluginRegistry" value="true" />
<option name="userSettingsFile" value="D:\JAVAAPP\apache-maven-3.6.3\conf\settings.xml" />
</MavenGeneralSettings>
</option>
</component>
<component name="MavenRunner">
<option name="jreName" value="#JAVA_HOME" />
<option name="vmOptions" value="-DarchetypeCatalog-internal -Xms512m -Xmx512m" />
</component>
<component name="ProjectCodeStyleSettingsMigration">
<option name="version" value="2" />
</component>
<component name="ProjectId" id="2KFrWSmUpR32vFCjJJJ6Kzmd1yv" />
<component name="ProjectViewState">
<option name="abbreviatePackageNames" value="true" />
<option name="autoscrollToSource" value="true" />
<option name="hideEmptyMiddlePackages" value="true" />
<option name="showLibraryContents" value="true" />
</component>
<component name="PropertiesComponent">
<property name="Downloaded.Files.Path.Enabled" value="false" />
<property name="HOTFIX_customHotfixCommitMessage_text" value="Tagging hotfix %name%" />
<property name="JavaScriptWeakerCompletionTypeGuess" value="true" />
<property name="LombokPluginEnabledInProject" value="true" />
<property name="LombokPluginIS_ANNOTATION_PROCESSING_CHECK_Enabled" value="true" />
<property name="LombokPluginIS_BUILDER_Enabled" value="true" />
<property name="LombokPluginIS_CONSTRUCTOR_Enabled" value="true" />
<property name="LombokPluginIS_DELEGATE_Enabled" value="true" />
<property name="LombokPluginIS_LOG_Enabled" value="true" />
<property name="LombokPluginIS_LOMBOK_VERSION_CHECK_Enabled" value="false" />
<property name="LombokPluginIS_MISSING_LOMBOK_CHECK_Enabled" value="false" />
<property name="LombokPluginIS_VAL_Enabled" value="true" />
<property name="RELEASE_customTagCommitMessage_text" value="Tagging version %name%" />
<property name="Repository.Attach.JavaDocs" value="false" />
<property name="Repository.Attach.Sources" value="false" />
<property name="RunOnceActivity.OpenProjectViewOnStart" value="true" />
<property name="RunOnceActivity.ShowReadmeOnStart" value="true" />
<property name="WebServerToolWindowFactoryState" value="false" />
<property name="android.sdk.path" value="D:/JAVAAPP/Android/Sdk" />
<property name="jmeter.home" value="C:\tools\apache-jmeter-5.2.1" />
<property name="jmeter.override" value="false" />
<property name="last_opened_file_path" value="D:/JAVAAPP/TortoiseSVN/bin/svn.exe" />
<property name="node.js.detected.package.eslint" value="true" />
<property name="node.js.path.for.package.jscs" value="project" />
<property name="node.js.path.for.package.stylelint" value="project" />
<property name="node.js.selected.package.eslint" value="(autodetect)" />
<property name="node.js.selected.package.jscs" value="" />
<property name="node.js.selected.package.stylelint" value="" />
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
<property name="project.structure.last.edited" value="SDK Location" />
<property name="project.structure.proportion" value="0.15" />
<property name="project.structure.side.proportion" value="0.4008942" />
<property name="scala_project_settings_configurable.last_selected_tab_index" value="0" />
<property name="settings.editor.selected.configurable" value="fileTemplates" />
<property name="vue.rearranger.settings.migration" value="true" />
</component>
<component name="RunManager">
<configuration default="true" type="Application" factoryName="Application">
<shortenClasspath name="MANIFEST" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
<configuration default="true" type="ArquillianTestNG" factoryName="" nameIsGenerated="true">
<shortenClasspath name="MANIFEST" />
<useClassPathOnly />
<option name="arquillianRunConfiguration">
<value>
<option name="containerStateName" value="" />
</value>
</option>
<option name="SUITE_NAME" value="" />
<option name="MAIN_CLASS_NAME" value="" />
<option name="GROUP_NAME" value="" />
<option name="TEST_OBJECT" value="CLASS" />
<option name="PARAMETERS" value="" />
<option name="OUTPUT_DIRECTORY" value="" />
<option name="TEST_SEARCH_SCOPE">
<value defaultName="moduleWithDependencies" />
</option>
<option name="PROPERTIES_FILE" value="" />
<properties />
<listeners />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>
<component name="SpellCheckerSettings" RuntimeDictionaries="0" Folders="0" CustomDictionaries="0" DefaultDictionary="application-level" UseSingleDictionary="true" transferred="true" />
<component name="SpringGeneralSettings">
<option name="allowAutoConfigurationMode" value="true" />
</component>
<component name="SvnConfiguration">
<configuration>C:\Users\59276\AppData\Roaming\Subversion</configuration>
</component>
<component name="TaskManager">
<task active="true" id="Default" summary="Default task">
<changelist id="7586b71b-696b-4fef-9808-019ee238157b" name="Changes" comment="" />
<created>1673581203584</created>
<option name="number" value="Default" />
<option name="presentableId" value="Default" />
<updated>1673581203584</updated>
<workItem from="1673581204989" duration="33000" />
<workItem from="1673581411603" duration="3270000" />
</task>
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
<option name="version" value="3" />
</component>
<component name="VcsManagerConfiguration">
<option name="CHECK_NEW_TODO" value="false" />
</component>
</project>
\ No newline at end of file
# -*- coding:utf-8 -*-
from __future__ import print_function
import time
import MySQLdb
import sys
# reload(sys)
# sys.setdefaultencoding('utf8')
#
def paddstr(strx):
return "NULL" if strx == None else "\'" + MySQLdb.escape_string(str(strx)).decode() + "\'"
def paddnum(numx, default='NULL'):
return default if numx == None else str(numx)
class MySQL:
u'''对MySQLdb常用函数进行封装的类'''
error_code = '' # MySQL错误号码
_instance = None # 本类的实例
_conn = None # 数据库conn
_cur = None # 游标
_TIMEOUT = 30 # 默认超时30秒
_timecount = 0
def __init__(self, dbconfig):
u'构造器:根据数据库连接参数,创建MySQL连接'
try:
self._conn = MySQLdb.connect(host=dbconfig['host'],
port=dbconfig['port'],
user=dbconfig['user'],
passwd=dbconfig['passwd'],
db=dbconfig['db'],
charset=dbconfig['charset'])
except MySQLdb.Error as e:
self.error_code = e.args[0]
error_msg = 'MySQL error! ', e.args[0], e.args[1]
print(error_msg)
# 如果没有超过预设超时时间,则再次尝试连接,
if self._timecount < self._TIMEOUT:
interval = 5
self._timecount += interval
time.sleep(interval)
return self.__init__(dbconfig)
else:
raise Exception(error_msg)
self._cur = self._conn.cursor()
self._instance = MySQLdb
def query(self, sql):
u'执行 SELECT 语句'
try:
# self._cur.execute("SET NAMES utf8")
result = self._cur.execute(sql)
result = True
except MySQLdb.Error as e:
self.error_code = e.args[0]
print("数据库错误代码:", e.args[0], e.args[1])
result = False
return result
def update(self, sql):
u'执行 UPDATE 及 DELETE 语句'
try:
# self._cur.execute("SET NAMES utf8")
result = self._cur.execute(sql)
self._conn.commit()
result = True
except MySQLdb.Error as e:
self.error_code = e.args[0]
print("数据库错误代码:", e.args[0], e.args[1])
result = False
return result
def insert(self, sql, data=None):
u'执行 INSERT 语句。如主键为自增长int,则返回新生成的ID'
try:
self._cur.execute("SET NAMES utf8")
if data == None:
self._cur.execute(sql)
else:
self._cur.executemany(sql, data)
self._conn.commit()
return True
return self._conn.insert_id()
except MySQLdb.Error as e:
self.error_code = e.args[0]
return False
def callproc(self, procname, *arg):
try:
self._cur.execute("SET NAMES utf8")
self._cur.callproc(procname, arg)
self._conn.commit()
result = True
except MySQLdb.Error as e:
self.error_code = e.args[0]
print("数据库错误代码:", e.args[0], e.args[1])
result = False
return result
def fetchAllRows(self):
u'返回结果列表'
return self._cur.fetchall()
def fetchOneRow(self):
u'返回一行结果,然后游标指向下一行。到达最后一行以后,返回None'
return self._cur.fetchone()
def getRowCount(self):
u'获取结果行数'
return self._cur.rowcount
def commit(self):
u'数据库commit操作'
self._conn.commit()
def rollback(self):
u'数据库回滚操作'
self._conn.rollback()
def __del__(self):
u'释放资源(系统GC自动调用)'
try:
self._cur.close()
self._conn.close()
except:
pass
def close(self):
u'关闭数据库连接'
self.__del__()
# -*- coding:utf-8 -*-
import MySQLdb
import time
import datetime
import random
import logging
import copy
from pyhive import presto # or import hive
from dateutil.relativedelta import relativedelta
from MysqlUtility import MySQL, paddstr, paddnum
import sys
import calendar
logger = logging.getLogger('userInfolog')
logger.setLevel(logging.DEBUG)
fileHandler = logging.FileHandler('userInfolog.log')
fileHandler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fileHandler.setFormatter(formatter)
# logger.addHandler(fileHandler)
cnslhandler = logging.StreamHandler()
cnslhandler.setLevel(logging.DEBUG)
cnslhandler.setFormatter(formatter)
logger.addHandler(cnslhandler)
g_pro_aduit_biz_dbcfg = {'host': '192.168.5.25', 'port': 3310, 'user': 'biz_device_detail', 'passwd': 'M6khz3CQ', 'db': 'device_detail', 'charset': 'utf8'}
def calc_user_info():
'''创建用户'''
bizConn = MySQL(g_pro_aduit_biz_dbcfg)
sql = "select channel,sn,device_type,delivery_time,delivery_merchant,active_time," \
"active_merchant,pk_name,pk_period,id from dj_device_details where active_time is not null " \
"order by active_time "
if not bizConn.query(sql):
return
result = bizConn.fetchAllRows()
startUserId = 50000000
arrValues = []
logger.info(f"calc_user_info total={len(result)}")
progress = 0
for v in result:
channel = paddstr(v[0])
sn = paddstr(v[1])
devType = paddnum(v[2])
deliTime = paddstr(v[3])
deliMerchant = paddstr(v[4])
activeTime = paddstr(v[5])
activeMer = paddstr(v[6])
pkName = paddstr(v[7])
pkPeriod = paddnum(v[8])
startUserId += 1
strValue = f"({channel},{sn},{devType},{deliTime},{deliMerchant},{activeTime}," \
f"{activeMer},{pkName},{pkPeriod},{paddnum(startUserId)})"
arrValues.append(strValue)
progress += 1
if len(arrValues) >= 1000:
insertSql = "insert into dj_user_info (channel,sn,device_type,delivery_time,delivery_merchant," \
"active_time,active_merchant,pk_name,pk_period,user_id) values " + ','.join(arrValues)
if not bizConn.insert(insertSql):
logger.error("calc_user_info fail, sql=%s", insertSql)
return
arrValues = []
logger.info(f"calc_user_info progress={progress}")
if len(arrValues) > 0:
insertSql = "insert into dj_user_info (channel,sn,device_type,delivery_time,delivery_merchant," \
"active_time,active_merchant,pk_name,pk_period,user_id) values " + ','.join(arrValues)
if not bizConn.insert(insertSql):
logger.error("calc_user_info fail, sql=%s", insertSql)
return
logger.info(f"calc_user_info done={progress}")
if __name__ == '__main__':
'''制造'''
calc_user_info()
\ No newline at end of file
# -*- coding:utf-8 -*-
import MySQLdb
import time
import datetime
import random
import logging
import copy
from pyhive import presto # or import hive
from dateutil.relativedelta import relativedelta
from MysqlUtility import MySQL, paddstr, paddnum
import sys
import calendar
g_pro_biz_dbcfg = {'host': '192.168.5.20', 'port': 3306, 'user': 'biz_glsx_data', 'passwd': 'unEKczDc',
'db': 'glsx_biz_data',
'charset': 'utf8'}
g_pro_aduit_biz_dbcfg = {'host': '192.168.5.25', 'port': 3310, 'user': 'biz_device_detail', 'passwd': 'M6khz3CQ',
'db': 'device_detail', 'charset': 'utf8'}
logger = logging.getLogger('import')
logger.setLevel(logging.DEBUG)
fileHandler = logging.FileHandler('import.log')
fileHandler.setLevel(logging.DEBUG)
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')
fileHandler.setFormatter(formatter)
# logger.addHandler(fileHandler)
cnslhandler = logging.StreamHandler()
cnslhandler.setLevel(logging.DEBUG)
cnslhandler.setFormatter(formatter)
logger.addHandler(cnslhandler)
def calc_device_info_gps():
bizConn = MySQL(g_pro_biz_dbcfg)
sql = "select sn,device_type,active_time,active_merchant,pk_name,pk_period,settle_merchant " \
"from dj_2021_settle_details where active_time is not null and `return` = 0"
if not bizConn.query(sql):
logger.error("calc_device_info_gps fail,sql=%s", sql)
return
result = bizConn.fetchAllRows()
valuesArr = []
total = 0
for row in result:
sn = paddstr(row[0])
devtype = paddnum(row[1])
activetime = row[2]
activemer = paddstr(row[3])
pkname = paddstr(row[4])
pkperiod = paddnum(row[5])
settlemer = paddstr(row[6])
effectDate = activetime + relativedelta(days=1)
effectDate = effectDate.replace(hour=0, minute=0, second=0, microsecond=0)
endDate = effectDate + relativedelta(months=row[5])
activetime = paddstr(str(activetime))
effectDate = paddstr(str(effectDate))
endDate = paddstr(str(endDate))
devstatus = paddnum(1)
createDate = activetime
createBy = paddstr('admin')
updateDate = activetime
updateBy = paddstr('admin')
# device_sn,active_time,pkname,period,device_type,effect_date,end_date,device_status,merchant,
# settle_merchant,created_by,created_date,updated_by,updated_date
strValue = "(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)" % (sn, activetime, pkname, pkperiod, devtype,
effectDate, endDate, devstatus, activemer,
settlemer, createBy, createDate, updateBy,
updateDate)
valuesArr.append(strValue)
total += 1
if len(valuesArr) >= 1000:
insertSql = "insert into dj_device_info (device_sn,active_time,pkname,period,device_type," \
"effect_date,end_date,device_status,merchant, settle_merchant," \
"created_by,created_date,updated_by,updated_date) VALUES " + ','.join(valuesArr)
if not bizConn.insert(insertSql):
logger.error("calc_device_info_gps fail,sql=%s", insertSql)
return
valuesArr = []
logger.info("calc_device_info_gps progress count=%d", total)
if len(valuesArr) > 0:
insertSql = "insert into dj_device_info (device_sn,active_time,pkname,period,device_type," \
"effect_date,end_date,device_status,merchant, settle_merchant," \
"created_by,created_date,updated_by,updated_date) VALUES " + ','.join(valuesArr)
if not bizConn.insert(insertSql):
logger.error("calc_device_info_gps fail,sql=%s", insertSql)
return
logger.info("calc_device_info_gps progress done=%d", total)
if __name__ == "__main__":
calc_device_info_gps()
import pandas as pd
import pymysql
g_pro_biz_dbcfg = {'host': '192.168.5.20', 'port': 3306, 'user': 'biz_glsx_data', 'passwd': 'unEKczDc',
'db': 'glsx_biz_data', 'charset': 'utf8'}
def loadFinnanceExcelToMysql(fileName, sheetName):
tableName = "dj_2022_settlment_order_finance_06plus"
'''将Excel表数据导入mysql'''
conn_updata = pymysql.Connect(host='192.168.5.20', port=3306, user='biz_glsx_data',
passwd='unEKczDc', db='glsx_biz_data', charset='utf8')
#pd.set_option('display.max_columns', 40)
data = pd.read_excel(fileName, sheet_name=sheetName, header=0)
newData = data[['单据类型', '单据编号', '业务日期', '客户', '渠道', '物料编码', '物料名称', '产品类型', '设备类型', '计价数量',
'含税单价', '单价', '收入', '业务类型', '分摊期限']]
'''
newData.rename(columns={'单据类型': 'order_type', '单据编号':'order_no', '业务日期':'finance_time',
'客户':'cus_name', '渠道':'sale_type', '物料编码':'product_code',
'物料名称':'product_name', '产品类型':'product_type', '设备类型':'device_type',
'计价数量':'total', '含税单价':'hw_unit_price_tax', '单价':'hw_unit_price',
'收入':'income', '业务类型':'business_type', '分摊期限':'hw_term'})
'''
newData['含税单价'].fillna(0, inplace=True)
newData['单价'].fillna(0, inplace=True)
newData['收入'].fillna(0, inplace=True)
newData['分摊期限'].fillna(0, inplace=True)
newData['设备类型'].fillna('', inplace=True)
newData['产品类型'].fillna('', inplace=True)
newData['计价数量'].fillna(0, inplace=True)
newData['业务类型'].fillna('', inplace=True)
print(newData.head())
valueArr = []
for idx in newData.index:
hwPriceTax = newData.loc[idx, '含税单价']
hwPrice = newData.loc[idx, '单价']
value = (newData.loc[idx, '单据类型'], newData.loc[idx, '单据编号'], newData.loc[idx, '业务日期'], newData.loc[idx, '客户'],
newData.loc[idx, '渠道'], newData.loc[idx, '物料编码'], newData.loc[idx, '物料名称'], newData.loc[idx, '产品类型'],
newData.loc[idx, '设备类型'], newData.loc[idx, '计价数量'], hwPriceTax, hwPrice,
newData.loc[idx, '收入'], newData.loc[idx, '业务类型'], newData.loc[idx, '分摊期限'])
# print(value)
valueArr.append(value)
cs = conn_updata.cursor()
sql = "insert into " + tableName + "(order_type,order_no,finance_time,cus_name,sale_type,product_code," \
"product_name,product_type,device_type,total,hw_unit_price_tax," \
"hw_unit_price,income,business_type,hw_term) values " \
"(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)"
cs.executemany(sql, valueArr)
conn_updata.commit()
cs.close()
def loadDjExcelToMysql(fileName, sheetName):
tableName = "dj_2022_settlment_order_06plus"
'''将Excel表数据导入mysql'''
conn_updata = pymysql.Connect(host='192.168.5.20', port=3306, user='biz_glsx_data',
passwd='unEKczDc', db='glsx_biz_data', charset='utf8')
data = pd.read_excel(fileName, sheet_name=sheetName, header=0)
newData = data[['单据类型', '单据编号', '业务日期', '客户', '渠道', '物料编码', '物料名称', '产品类型', '设备类型', '计价数量',
'含税单价', '单价', '硬件(总)(不含税)', '硬件税率', '服务(不含税)', '服务税率', '服务套餐', '收入', '业务类型',
'分摊期限', '安装', '安装税率']]
newData['含税单价'].fillna(0, inplace=True)
newData['单价'].fillna(0, inplace=True)
newData['收入'].fillna(0, inplace=True)
newData['分摊期限'].fillna(0, inplace=True)
newData['硬件(总)(不含税)'].fillna(0, inplace=True)
newData['硬件税率'].fillna(0, inplace=True)
newData['服务(不含税)'].fillna(0, inplace=True)
newData['服务税率'].fillna(0, inplace=True)
newData['服务套餐'].fillna('', inplace=True)
newData['产品类型'].fillna('', inplace=True)
newData['设备类型'].fillna('', inplace=True)
newData['安装'].fillna(0, inplace=True)
newData['安装税率'].fillna(0, inplace=True)
#print(newData)
valueArr = []
for idx in newData.index:
hwPriceTax = newData.loc[idx, '含税单价']
hwPrice = newData.loc[idx, '单价']
newHwPrice = newData.loc[idx, '硬件(总)(不含税)']
newHwTaxRate = newData.loc[idx, '硬件税率']
if newHwPrice != 0:
hwPrice = newHwPrice
hwPriceTax = newHwTaxRate
pkPrice = newData.loc[idx, '服务(不含税)']
pkPriceRate = newData.loc[idx, '服务税率']
client = newData.loc[idx, '客户'].strip()
value = (newData.loc[idx, '单据类型'], newData.loc[idx, '单据编号'], newData.loc[idx, '业务日期'], client,
newData.loc[idx, '渠道'], newData.loc[idx, '物料编码'], newData.loc[idx, '物料名称'], newData.loc[idx, '产品类型'],
newData.loc[idx, '设备类型'], newData.loc[idx, '计价数量'], hwPriceTax, hwPrice, pkPrice, pkPriceRate,
newData.loc[idx, '服务套餐'],
newData.loc[idx, '收入'], newData.loc[idx, '业务类型'], newData.loc[idx, '分摊期限'],
newData.loc[idx, '分摊期限'], newData.loc[idx, '安装'], newData.loc[idx, '安装税率'])
print(value)
valueArr.append(value)
cs = conn_updata.cursor()
sql = "insert into " + tableName + "(order_type,order_no,finance_time,cus_name,sale_type,product_code," \
"product_name,product_type,device_type,total,hw_unit_price_tax," \
"hw_unit_price,pk_unit_price,pk_unit_price_tax,pk_name,income," \
"business_type,hw_term,pk_term,install_unit_price,install_unit_price_tax) " \
"values " \
"(%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)"
cs.executemany(sql, valueArr)
conn_updata.commit()
def updateCustomerChannel():
'''更新客户的渠道'''
dbConn = pymysql.Connect(host='192.168.5.20', port=3306, user='biz_glsx_data',
passwd='unEKczDc', db='glsx_biz_data', charset='utf8')
querySql = "SELECT cus_name,sale_type,count(1) from dj_2022_settlment_order_finance group by cus_name,sale_type"
dbCursor = dbConn.cursor()
dbCursor.execute(querySql)
result = dbCursor.fetchall()
cusNameDict = {}
for v in result:
cusName = v[0]
saleType = v[1]
cusNameDict[cusName] = saleType
querySql = "SELECT cus_name,count(1) from dj_2022_settlment_order where finance_time < '2022-02-01' group by cus_name"
dbCursor = dbConn.cursor()
dbCursor.execute(querySql)
result = dbCursor.fetchall()
for v in result:
newCusName = v[0]
newSaleType = cusNameDict.get(newCusName, None)
if newSaleType is None:
print(f"can not find cusname={newCusName}")
continue
updateSql = f"update dj_2022_settlment_order set sale_type='{newSaleType}' where finance_time < '2022-02-01' and cus_name='{newCusName}'"
dbCursor = dbConn.cursor()
dbCursor.execute(updateSql)
dbConn.commit()
print("done")
if __name__ == "__main__":
# 财务原表
filePath = "C:\\Users\\333\\Desktop\\2022审计\\应收拆分数据-2022年12月\\"
# fileName = filePath + "【数据源】-应收单12月.xlsx"
# sheetName = "Sheet1"
# loadFinnanceExcelToMysql(fileName, sheetName)
# E盾
# fileName = filePath + "1.拆分数据-虎哥E盾结算单与明细数据12月-陈冰恋.xlsx"
# sheetName = '3.虎哥E盾--渠道应收单原表'
# loadDjExcelToMysql(fileName, sheetName)
# # 渠道嘀加
# fileName = filePath + "3.拆分数据-渠道2022年12月滴加数据-柳云飞.xlsx"
# sheetName = 'Sheet2'
# loadDjExcelToMysql(fileName, sheetName)
# # # 直销
# fileName = filePath + "4.拆分数据-广汇2022年12月-廖敏玲.xlsx"
# sheetName = '廖敏玲'
# loadDjExcelToMysql(fileName, sheetName)
print("done")
File mode changed
This diff is collapsed. Click to expand it.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
客户名称,渠道,服务期限,数量,结算月份,不含税收入,开始计费月份,结束计费月份,不含税单价,月摊收入,2017年摊销金额,2017年末累计摊销余额,2018年摊销金额,2018年末累计摊销余额,2019年摊销金额,2019年末累计摊销余额,2020年摊销金额,2020年末累计摊销余额,2021年摊销金额,2021年末累计摊销余额,2022年摊销金额,2022年末累计摊销余额,产品分类
广州盟锐科技发展有限公司,直销,12,17,2020-08,0.0,2020-08,2021-07-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0.0,0,0.0,0,0,0,记录仪
广州盟锐科技发展有限公司,直销,12,5,2020-09,0.0,2020-09,2021-08-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0.0,0,0.0,0,0,0,记录仪
广州盟锐科技发展有限公司,直销,12,2,2020-10,0.0,2020-10,2021-09-30 00:00:00,0.0,0.0,0,0,0,0,0,0,0.0,0,0.0,0,0,0,记录仪
广州盟锐科技发展有限公司,直销,12,1,2020-11,0.0,2020-11,2021-10-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0.0,0,0.0,0,0,0,记录仪
运城市通达汽车销售服务有限公司,直销,36,9,2020-11,0.0,2020-11,2023-10-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0.0,0,0.0,0,0.0,0,记录仪
成都创晟汽车服务有限公司,直销,36,253,2021-01,-20202.0496,2021-01,2023-12-31 00:00:00,-79.84999841897232,-561.1680444444444,0,0,0,0,0,0,0,0,-6734.0165333333325,0,-6734.0165333333325,0,追踪器
云南鸿超汽车服务有限公司,直销,36,174,2021-02,-39477.7813,2021-02,2024-01-31 00:00:00,-226.88380057471267,-1096.605036111111,0,0,0,0,0,0,0,0,-12062.655397222221,0,-13159.260433333333,0,追踪器
成都创晟汽车服务有限公司,直销,12,400,2021-03,-23321.1197,2021-03,2022-02-28 00:00:00,-58.30279925,-1943.4266416666667,0,0,0,0,0,0,0,0,-19434.266416666665,0,-3886.8532833333334,0,追踪器
福建省联合车尚贸易有限公司,直销,36,5,2021-03,-342.04,2021-03,2024-02-29 00:00:00,-68.408,-9.501111111111111,0,0,0,0,0,0,0,0,-95.01111111111112,0,-114.01333333333334,0,追踪器
甘肃诚利源汽车销售服务有限公司,直销,36,2,2021-03,-122.7,2021-03,2024-02-29 00:00:00,-61.35,-3.408333333333333,0,0,0,0,0,0,0,0,-34.08333333333333,0,-40.9,0,追踪器
成都创晟汽车服务有限公司,直销,36,2518,2021-03,-146806.4484,2021-03,2024-02-29 00:00:00,-58.30279920571882,-4077.9568999999997,0,0,0,0,0,0,0,0,-40779.568999999996,0,-48935.4828,0,追踪器
广汇汽车,广汇,36,5,2021-04,0.0,2021-04,2024-03-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
成都车亿科技有限公司,直销,36,65,2021-04,-3928.5999,2021-04,2024-03-31 00:00:00,-60.439998461538465,-109.127775,0,0,0,0,0,0,0,0,-982.149975,0,-1309.5333,0,追踪器
贵阳嘉鑫汽车装饰经营部,直销,12,93,2021-05,0.0,2021-05,2022-04-30 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,车充
成都车亿科技有限公司,直销,36,18,2021-05,-1087.92,2021-05,2024-04-30 00:00:00,-60.440000000000005,-30.220000000000002,0,0,0,0,0,0,0,0,-241.76000000000002,0,-362.64000000000004,0,追踪器
广汇汽车,广汇,12,1,2021-05,0.0,2021-05,2022-04-30 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
四川安普克斯环保科技有限公司,直销,36,165,2021-06,0.0,2021-06,2024-05-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
贵阳嘉鑫汽车装饰经营部,直销,12,7,2021-06,0.0,2021-06,2022-05-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,车充
贵阳嘉鑫汽车装饰经营部,直销,12,7,2021-07,0.0,2021-07,2022-06-30 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,车充
上海鲁悦汽车服务有限公司,直销,36,32,2021-07,-2198.0801,2021-07,2024-06-30 00:00:00,-68.690003125,-61.05778055555556,0,0,0,0,0,0,0,0,-366.3466833333334,0,-732.6933666666667,0,追踪器
广东盛世创客汽车科技有限公司,直销,36,14,2021-08,-768.0106,2021-08,2024-07-31 00:00:00,-54.857899999999994,-21.333627777777778,0,0,0,0,0,0,0,0,-106.66813888888889,0,-256.00353333333334,0,追踪器
四川众联晟通国际贸易有限公司,直销,36,29,2021-08,0.0,2021-08,2024-07-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
江西乐车林贸易有限公司,直销,36,206,2021-08,-12074.7721,2021-08,2024-07-31 00:00:00,-58.615398543689324,-335.4103361111111,0,0,0,0,0,0,0,0,-1677.0516805555555,0,-4024.9240333333337,0,追踪器
聊城荣泰网络科技有限公司,直销,36,47,2021-09,0.0,2021-09,2024-08-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,车充
绵阳鑫驰骋商贸有限公司,代销,36,108,2021-09,-5805.7234,2021-09,2024-08-31 00:00:00,-53.756698148148146,-161.27009444444445,0,0,0,0,0,0,0,0,-645.0803777777778,0,-1935.2411333333334,0,追踪器
广州盟锐科技发展有限公司,直销,36,11,2021-11,-589.8596,2021-11,2024-10-31 00:00:00,-53.6236,-16.384988888888888,0,0,0,0,0,0,0,0,-32.769977777777775,0,-196.61986666666667,0,追踪器
四川众联晟通国际贸易有限公司,直销,36,48,2021-11,0.0,2021-11,2024-10-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
四川众联晟通国际贸易有限公司,直销,12,14,2021-11,0.0,2021-11,2022-10-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
绵阳鑫驰骋商贸有限公司,代销,36,74,2021-11,-4131.3535,2021-11,2024-10-31 00:00:00,-55.829101351351355,-114.75981944444445,0,0,0,0,0,0,0,0,-229.5196388888889,0,-1377.1178333333332,0,追踪器
庞大精配网(天津)网络科技有限公司,代销,12,10,2021-11,0.0,2021-11,2022-10-31 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
安徽优盾信息科技有限公司,直销,36,30,2021-12,-3274.1311,2021-12,2024-11-30 00:00:00,-109.13770333333333,-90.94808611111111,0,0,0,0,0,0,0,0,-90.94808611111111,0,-1091.3770333333332,0,追踪器
上海冠松汽车用品发展有限公司,直销,36,1,2021-12,0.0,2021-12,2024-11-30 00:00:00,0.0,0.0,0,0,0,0,0,0,0,0,0.0,0,0.0,0,记录仪
客户名称,渠道,服务期限,数量,结算月份,不含税收入,开始计费月份,结束计费月份,不含税单价,月摊收入,2017年摊销金额,2017年末累计摊销余额,2018年摊销金额,2018年末累计摊销余额,2019年摊销金额,2019年末累计摊销余额,2020年摊销金额,2020年末累计摊销余额,2021年摊销金额,2021年末累计摊销余额,2022年摊销金额,2022年末累计摊销余额,产品分类
广州盟锐科技发展有限公司,直销,12,17,2020-08,-3610.6199,2020-08,2021-07-31 00:00:00,-212.38940588235295,-300.8849916666667,0,0,0,0,0,0,-1504.4249583333335,0,-2106.1949416666666,0,0,0,记录仪
广州盟锐科技发展有限公司,直销,12,5,2020-09,-1061.947,2020-09,2021-08-31 00:00:00,-212.38939999999997,-88.49558333333333,0,0,0,0,0,0,-353.9823333333333,0,-707.9646666666666,0,0,0,记录仪
广州盟锐科技发展有限公司,直销,12,2,2020-10,-424.7788,2020-10,2021-09-30 00:00:00,-212.3894,-35.39823333333333,0,0,0,0,0,0,-106.19469999999998,0,-318.5841,0,0,0,记录仪
运城市通达汽车销售服务有限公司,直销,36,9,2020-11,-1433.6288,2020-11,2023-10-31 00:00:00,-159.29208888888888,-39.82302222222222,0,0,0,0,0,0,-79.64604444444444,0,-477.87626666666665,0,-477.87626666666665,0,记录仪
广州盟锐科技发展有限公司,直销,12,1,2020-11,-212.3894,2020-11,2021-10-31 00:00:00,-212.3894,-17.699116666666665,0,0,0,0,0,0,-35.39823333333333,0,-176.99116666666666,0,0,0,记录仪
成都创晟汽车服务有限公司,直销,36,253,2021-01,-23982.3053,2021-01,2023-12-31 00:00:00,-94.79172055335968,-666.1751472222222,0,0,0,0,0,0,0,0,-7994.101766666667,0,-7994.101766666667,0,追踪器
云南鸿超汽车服务有限公司,直销,36,174,2021-02,-28225.2355,2021-02,2024-01-31 00:00:00,-162.21399712643677,-784.0343194444445,0,0,0,0,0,0,0,0,-8624.377513888889,0,-9408.411833333334,0,追踪器
成都创晟汽车服务有限公司,直销,36,2518,2021-03,-510416.0185,2021-03,2024-02-29 00:00:00,-202.70691759332803,-14178.22273611111,0,0,0,0,0,0,0,0,-141782.22736111112,0,-170138.67283333332,0,追踪器
成都创晟汽车服务有限公司,直销,12,400,2021-03,-95575.238,2021-03,2022-02-28 00:00:00,-238.938095,-7964.603166666667,0,0,0,0,0,0,0,0,-79646.03166666666,0,-15929.206333333334,0,追踪器
福建省联合车尚贸易有限公司,直销,36,5,2021-03,-398.23,2021-03,2024-02-29 00:00:00,-79.646,-11.061944444444444,0,0,0,0,0,0,0,0,-110.61944444444444,0,-132.74333333333334,0,追踪器
甘肃诚利源汽车销售服务有限公司,直销,36,2,2021-03,-833.5282,2021-03,2024-02-29 00:00:00,-416.7641,-23.15356111111111,0,0,0,0,0,0,0,0,-231.5356111111111,0,-277.8427333333333,0,追踪器
广汇汽车,广汇,36,5,2021-04,-2287.6111,2021-04,2024-03-31 00:00:00,-457.52222,-63.54475277777778,0,0,0,0,0,0,0,0,-571.902775,0,-762.5370333333334,0,记录仪
成都车亿科技有限公司,直销,36,65,2021-04,-11504.4277,2021-04,2024-03-31 00:00:00,-176.9911953846154,-319.56743611111114,0,0,0,0,0,0,0,0,-2876.106925,0,-3834.8092333333334,0,追踪器
广汇汽车,广汇,12,1,2021-05,-430.9735,2021-05,2022-04-30 00:00:00,-430.9735,-35.914458333333336,0,0,0,0,0,0,0,0,-287.3156666666667,0,-143.65783333333334,0,记录仪
贵阳嘉鑫汽车装饰经营部,直销,12,93,2021-05,-23451.0946,2021-05,2022-04-30 00:00:00,-252.16230752688173,-1954.2578833333334,0,0,0,0,0,0,0,0,-15634.063066666668,0,-7817.031533333334,0,车充
成都车亿科技有限公司,直销,36,18,2021-05,-3185.8415,2021-05,2024-04-30 00:00:00,-176.99119444444443,-88.49559722222222,0,0,0,0,0,0,0,0,-707.9647777777777,0,-1061.9471666666666,0,追踪器
四川安普克斯环保科技有限公司,直销,36,165,2021-06,-25004.4294,2021-06,2024-05-31 00:00:00,-151.54199636363637,-694.5674833333334,0,0,0,0,0,0,0,0,-4861.972383333334,0,-8334.8098,0,记录仪
贵阳嘉鑫汽车装饰经营部,直销,12,7,2021-06,-1765.1362,2021-06,2022-05-31 00:00:00,-252.16231428571427,-147.09468333333334,0,0,0,0,0,0,0,0,-1029.6627833333334,0,-735.4734166666667,0,车充
贵阳嘉鑫汽车装饰经营部,直销,12,7,2021-07,-1575.614,2021-07,2022-06-30 00:00:00,-225.0877142857143,-131.30116666666666,0,0,0,0,0,0,0,0,-787.807,0,-787.807,0,车充
上海鲁悦汽车服务有限公司,直销,36,32,2021-07,-8495.5742,2021-07,2024-06-30 00:00:00,-265.48669375,-235.9881722222222,0,0,0,0,0,0,0,0,-1415.9290333333333,0,-2831.8580666666667,0,追踪器
广东盛世创客汽车科技有限公司,直销,36,14,2021-08,-1796.4604,2021-08,2024-07-31 00:00:00,-128.3186,-49.90167777777778,0,0,0,0,0,0,0,0,-249.50838888888887,0,-598.8201333333334,0,追踪器
四川众联晟通国际贸易有限公司,直销,36,29,2021-08,-7827.4334,2021-08,2024-07-31 00:00:00,-269.91149655172416,-217.42870555555555,0,0,0,0,0,0,0,0,-1087.1435277777778,0,-2609.1444666666666,0,记录仪
江西乐车林贸易有限公司,直销,36,206,2021-08,-45939.8121,2021-08,2024-07-31 00:00:00,-223.00879660194175,-1276.1058916666668,0,0,0,0,0,0,0,0,-6380.529458333334,0,-15313.270700000001,0,追踪器
聊城荣泰网络科技有限公司,直销,36,47,2021-09,-4575.2245,2021-09,2024-08-31 00:00:00,-97.34520212765958,-127.08956944444445,0,0,0,0,0,0,0,0,-508.3582777777778,0,-1525.0748333333333,0,车充
绵阳鑫驰骋商贸有限公司,代销,36,108,2021-09,-30584.0654,2021-09,2024-08-31 00:00:00,-283.18579074074074,-849.5573722222222,0,0,0,0,0,0,0,0,-3398.2294888888887,0,-10194.688466666666,0,追踪器
绵阳鑫驰骋商贸有限公司,代销,36,74,2021-11,-20955.7485,2021-11,2024-10-31 00:00:00,-283.18579054054055,-582.1041250000001,0,0,0,0,0,0,0,0,-1164.2082500000001,0,-6985.249500000001,0,追踪器
庞大精配网(天津)网络科技有限公司,代销,12,10,2021-11,-814.159,2021-11,2022-10-31 00:00:00,-81.4159,-67.84658333333333,0,0,0,0,0,0,0,0,-135.69316666666666,0,-678.4658333333333,0,记录仪
广州盟锐科技发展有限公司,直销,36,11,2021-11,-1411.5046,2021-11,2024-10-31 00:00:00,-128.3186,-39.20846111111111,0,0,0,0,0,0,0,0,-78.41692222222223,0,-470.5015333333333,0,追踪器
四川众联晟通国际贸易有限公司,直销,36,48,2021-11,-6584.0736,2021-11,2024-10-31 00:00:00,-137.16819999999998,-182.89093333333332,0,0,0,0,0,0,0,0,-365.78186666666664,0,-2194.6911999999998,0,记录仪
四川众联晟通国际贸易有限公司,直销,12,14,2021-11,-1982.3005,2021-11,2022-10-31 00:00:00,-141.59289285714286,-165.19170833333334,0,0,0,0,0,0,0,0,-330.3834166666667,0,-1651.9170833333333,0,记录仪
安徽优盾信息科技有限公司,直销,36,30,2021-12,-3159.291,2021-12,2024-11-30 00:00:00,-105.3097,-87.75808333333333,0,0,0,0,0,0,0,0,-87.75808333333333,0,-1053.097,0,追踪器
上海冠松汽车用品发展有限公司,直销,36,1,2021-12,-313.241,2021-12,2024-11-30 00:00:00,-313.241,-8.701138888888888,0,0,0,0,0,0,0,0,-8.701138888888888,0,-104.41366666666666,0,记录仪
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!