Commit cf80d6a8 by 王欣伟

增加导出的字段

1 parent 12f77a14
...@@ -119,8 +119,12 @@ class DealHengXinEdrMain: ...@@ -119,8 +119,12 @@ class DealHengXinEdrMain:
print('dont match dj sn data') print('dont match dj sn data')
else: else:
for djItem in djDbData: for djItem in djDbData:
djMerchantId = djItem[3]
djMerchantName = djItem[4]
djSn = djItem[5] djSn = djItem[5]
dataExport.loc[dataExport['设备号'] == djSn, '是否录入嘀加系统'] = '是' dataExport.loc[dataExport['设备号'] == djSn, '是否录入嘀加系统'] = '是'
dataExport.loc[dataExport['设备号'] == djSn, '录入嘀加商户号'] = djMerchantId
dataExport.loc[dataExport['设备号'] == djSn, '录入嘀加商户名称'] = djMerchantName
print('输出excel数据') print('输出excel数据')
# 输出数据到excel # 输出数据到excel
...@@ -143,7 +147,7 @@ if __name__ == "__main__": ...@@ -143,7 +147,7 @@ if __name__ == "__main__":
logging.info("start handle" + dealMain.handleDescription + ' the month:' + dealMain.handleMonth) logging.info("start handle" + dealMain.handleDescription + ' the month:' + dealMain.handleMonth)
dealMain.module_file_path = 'E:/work/000 - 运营数据导出/恒信-C580记录仪设备明细-template.xlsx' dealMain.module_file_path = 'E:/work/000 - 运营数据导出/恒信-C580记录仪设备明细-template.xlsx'
dealMain.defaultExportReleasePath = 'E:/work/000 - 运营数据导出/export/恒信-C580记录仪设备明细-20231222.xlsx' dealMain.defaultExportReleasePath = 'E:/work/000 - 运营数据导出/export/恒信-C580记录仪设备明细-20231226.xlsx'
dealMain.dealContentFile() dealMain.dealContentFile()
print('导出完成。') print('导出完成。')
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!