|
@@ -33,7 +33,7 @@ var classifyMap = map[string]string{
|
|
type RoadIndexProcessor struct{}
|
|
type RoadIndexProcessor struct{}
|
|
|
|
|
|
func (p *RoadIndexProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *RoadIndexProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing AnalyticsLibrary...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing AnalyticsLibrary...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -51,7 +51,7 @@ func (p *RoadIndexProcessor) Process(tableName string, sheetName string, rowInde
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -99,14 +99,14 @@ func (p *RoadIndexProcessor) Process(tableName string, sheetName string, rowInde
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -116,7 +116,7 @@ func (p *RoadIndexProcessor) Process(tableName string, sheetName string, rowInde
|
|
type RoadActiveFleetProcessor struct{}
|
|
type RoadActiveFleetProcessor struct{}
|
|
|
|
|
|
func (p *RoadActiveFleetProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *RoadActiveFleetProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing RoadActiveFleet...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing RoadActiveFleet...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -134,7 +134,7 @@ func (p *RoadActiveFleetProcessor) Process(tableName string, sheetName string, r
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -178,14 +178,14 @@ func (p *RoadActiveFleetProcessor) Process(tableName string, sheetName string, r
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("RoadActiveFleetProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("RoadActiveFleetProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("RoadActiveFleetProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("RoadActiveFleetProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -195,7 +195,7 @@ func (p *RoadActiveFleetProcessor) Process(tableName string, sheetName string, r
|
|
type AviationIndexProcessor struct{}
|
|
type AviationIndexProcessor struct{}
|
|
|
|
|
|
func (p *AviationIndexProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *AviationIndexProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing AviationIndexProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing AviationIndexProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -213,7 +213,7 @@ func (p *AviationIndexProcessor) Process(tableName string, sheetName string, row
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -257,14 +257,14 @@ func (p *AviationIndexProcessor) Process(tableName string, sheetName string, row
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("AviationIndexProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("AviationIndexProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("AviationIndexProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("AviationIndexProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -274,7 +274,7 @@ func (p *AviationIndexProcessor) Process(tableName string, sheetName string, row
|
|
type AviationActiveFleetProcessor struct{}
|
|
type AviationActiveFleetProcessor struct{}
|
|
|
|
|
|
func (p *AviationActiveFleetProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *AviationActiveFleetProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing AviationActiveFleetProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing AviationActiveFleetProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -292,7 +292,7 @@ func (p *AviationActiveFleetProcessor) Process(tableName string, sheetName strin
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -336,14 +336,14 @@ func (p *AviationActiveFleetProcessor) Process(tableName string, sheetName strin
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("AviationActiveFleetProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("AviationActiveFleetProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("AviationActiveFleetProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("AviationActiveFleetProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -353,7 +353,7 @@ func (p *AviationActiveFleetProcessor) Process(tableName string, sheetName strin
|
|
type DemandGasolineProcessor struct{}
|
|
type DemandGasolineProcessor struct{}
|
|
|
|
|
|
func (p *DemandGasolineProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *DemandGasolineProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing DemandGasolineProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing DemandGasolineProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -371,7 +371,7 @@ func (p *DemandGasolineProcessor) Process(tableName string, sheetName string, ro
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -426,14 +426,14 @@ func (p *DemandGasolineProcessor) Process(tableName string, sheetName string, ro
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandGasolineProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandGasolineProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandGasolineProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandGasolineProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -443,7 +443,7 @@ func (p *DemandGasolineProcessor) Process(tableName string, sheetName string, ro
|
|
type DemandDieselProcessor struct{}
|
|
type DemandDieselProcessor struct{}
|
|
|
|
|
|
func (p *DemandDieselProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *DemandDieselProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing DemandDieselProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing DemandDieselProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -461,7 +461,7 @@ func (p *DemandDieselProcessor) Process(tableName string, sheetName string, rowI
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -505,14 +505,14 @@ func (p *DemandDieselProcessor) Process(tableName string, sheetName string, rowI
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandDieselProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandDieselProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandDieselProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandDieselProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -522,7 +522,7 @@ func (p *DemandDieselProcessor) Process(tableName string, sheetName string, rowI
|
|
type DemandJetFuelProcessor struct{}
|
|
type DemandJetFuelProcessor struct{}
|
|
|
|
|
|
func (p *DemandJetFuelProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *DemandJetFuelProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing DemandJetFuelProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing DemandJetFuelProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -540,7 +540,7 @@ func (p *DemandJetFuelProcessor) Process(tableName string, sheetName string, row
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -584,14 +584,14 @@ func (p *DemandJetFuelProcessor) Process(tableName string, sheetName string, row
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandJetFuelProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandJetFuelProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandJetFuelProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandJetFuelProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -601,7 +601,7 @@ func (p *DemandJetFuelProcessor) Process(tableName string, sheetName string, row
|
|
type DemandMaritimeBunkerProcessor struct{}
|
|
type DemandMaritimeBunkerProcessor struct{}
|
|
|
|
|
|
func (p *DemandMaritimeBunkerProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *DemandMaritimeBunkerProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing DemandMaritimeBunkerProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing DemandMaritimeBunkerProcessor...")
|
|
if tableName == "Content" {
|
|
if tableName == "Content" {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -619,7 +619,7 @@ func (p *DemandMaritimeBunkerProcessor) Process(tableName string, sheetName stri
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -663,14 +663,14 @@ func (p *DemandMaritimeBunkerProcessor) Process(tableName string, sheetName stri
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandMaritimeBunkerProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandMaritimeBunkerProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("DemandMaritimeBunkerProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("DemandMaritimeBunkerProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -680,7 +680,7 @@ func (p *DemandMaritimeBunkerProcessor) Process(tableName string, sheetName stri
|
|
type SupplyRevisionAnalysisChartOneProcessor struct{}
|
|
type SupplyRevisionAnalysisChartOneProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartOneProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartOneProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartOne...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartOne...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -695,7 +695,7 @@ func (p *SupplyRevisionAnalysisChartOneProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -735,14 +735,14 @@ func (p *SupplyRevisionAnalysisChartOneProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartOneProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartOneProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartOneProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartOneProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -752,7 +752,7 @@ func (p *SupplyRevisionAnalysisChartOneProcessor) Process(tableName string, shee
|
|
type SupplyRevisionAnalysisChartTwoProcessor struct{}
|
|
type SupplyRevisionAnalysisChartTwoProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartTwoProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartTwoProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartTwoProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartTwoProcessor...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -766,7 +766,7 @@ func (p *SupplyRevisionAnalysisChartTwoProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -821,14 +821,14 @@ func (p *SupplyRevisionAnalysisChartTwoProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartTwoProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartTwoProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartTwoProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartTwoProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -838,7 +838,7 @@ func (p *SupplyRevisionAnalysisChartTwoProcessor) Process(tableName string, shee
|
|
type SupplyRevisionAnalysisChartThreeProcessor struct{}
|
|
type SupplyRevisionAnalysisChartThreeProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartThreeProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartThreeProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartThreeProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartThreeProcessor...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -853,7 +853,7 @@ func (p *SupplyRevisionAnalysisChartThreeProcessor) Process(tableName string, sh
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -893,14 +893,14 @@ func (p *SupplyRevisionAnalysisChartThreeProcessor) Process(tableName string, sh
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartThreeProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartThreeProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartThreeProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartThreeProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -910,7 +910,7 @@ func (p *SupplyRevisionAnalysisChartThreeProcessor) Process(tableName string, sh
|
|
type SupplyRevisionAnalysisChartFourProcessor struct{}
|
|
type SupplyRevisionAnalysisChartFourProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartFourProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartFourProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartFourProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartFourProcessor...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -924,7 +924,7 @@ func (p *SupplyRevisionAnalysisChartFourProcessor) Process(tableName string, she
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -979,14 +979,14 @@ func (p *SupplyRevisionAnalysisChartFourProcessor) Process(tableName string, she
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartFourProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartFourProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartFourProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartFourProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -996,7 +996,7 @@ func (p *SupplyRevisionAnalysisChartFourProcessor) Process(tableName string, she
|
|
type SupplyRevisionAnalysisChartFiveProcessor struct{}
|
|
type SupplyRevisionAnalysisChartFiveProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartFiveProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartFiveProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartFiveProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartFiveProcessor...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -1010,7 +1010,7 @@ func (p *SupplyRevisionAnalysisChartFiveProcessor) Process(tableName string, she
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -1066,14 +1066,14 @@ func (p *SupplyRevisionAnalysisChartFiveProcessor) Process(tableName string, she
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartFiveProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartFiveProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartFiveProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartFiveProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -1083,7 +1083,7 @@ func (p *SupplyRevisionAnalysisChartFiveProcessor) Process(tableName string, she
|
|
type SupplyRevisionAnalysisChartSixProcessor struct{}
|
|
type SupplyRevisionAnalysisChartSixProcessor struct{}
|
|
|
|
|
|
func (p *SupplyRevisionAnalysisChartSixProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *SupplyRevisionAnalysisChartSixProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing SupplyRevisionAnalysisChartSixProcessor...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing SupplyRevisionAnalysisChartSixProcessor...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -1098,7 +1098,7 @@ func (p *SupplyRevisionAnalysisChartSixProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -1139,14 +1139,14 @@ func (p *SupplyRevisionAnalysisChartSixProcessor) Process(tableName string, shee
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartSixProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartSixProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("SupplyRevisionAnalysisChartSixProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("SupplyRevisionAnalysisChartSixProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|
|
@@ -1156,7 +1156,7 @@ func (p *SupplyRevisionAnalysisChartSixProcessor) Process(tableName string, shee
|
|
type OilSupplyAnalysisChartOneProcessor struct{}
|
|
type OilSupplyAnalysisChartOneProcessor struct{}
|
|
|
|
|
|
func (p *OilSupplyAnalysisChartOneProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
func (p *OilSupplyAnalysisChartOneProcessor) Process(tableName string, sheetName string, rowIndex int, rowData []string) ([]models.BaseFromRzdData, error) {
|
|
- logs.Info("Processing OilSupplyAnalysisChartOne...")
|
|
|
|
|
|
+ utils.FileLog.Info("Processing OilSupplyAnalysisChartOne...")
|
|
if rowIndex < 1 {
|
|
if rowIndex < 1 {
|
|
return nil, nil
|
|
return nil, nil
|
|
}
|
|
}
|
|
@@ -1171,7 +1171,7 @@ func (p *OilSupplyAnalysisChartOneProcessor) Process(tableName string, sheetName
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
+ utils.FileLog.Info("classifyId: %v", classifyId)
|
|
|
|
|
|
// step_2: 指标
|
|
// step_2: 指标
|
|
// 指标名称
|
|
// 指标名称
|
|
@@ -1206,14 +1206,14 @@ func (p *OilSupplyAnalysisChartOneProcessor) Process(tableName string, sheetName
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("OilSupplyAnalysisChartOneProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
+ utils.FileLog.Info("OilSupplyAnalysisChartOneProcessor indexInfoList: %v", indexInfoList)
|
|
|
|
|
|
// step_3: 指标数据
|
|
// step_3: 指标数据
|
|
dataList, err := dealData(indexInfoList)
|
|
dataList, err := dealData(indexInfoList)
|
|
if err != nil {
|
|
if err != nil {
|
|
return nil, err
|
|
return nil, err
|
|
}
|
|
}
|
|
- logs.Info("OilSupplyAnalysisChartOneProcessor dataList: %v", dataList)
|
|
|
|
|
|
+ utils.FileLog.Info("OilSupplyAnalysisChartOneProcessor dataList: %v", dataList)
|
|
|
|
|
|
return dataList, err
|
|
return dataList, err
|
|
}
|
|
}
|