|
@@ -343,7 +343,6 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
@@ -343,7 +343,6 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
343
|
ItemName: strings.TrimSpace(v["itemName"]),
|
343
|
ItemName: strings.TrimSpace(v["itemName"]),
|
344
|
ChoiceId: choiceId,
|
344
|
ChoiceId: choiceId,
|
345
|
Text: strings.TrimSpace(v["text"]),
|
345
|
Text: strings.TrimSpace(v["text"]),
|
346
|
- Urls: []string{ossFile},
|
|
|
347
|
Formula: strings.TrimSpace(v["formula"]),
|
346
|
Formula: strings.TrimSpace(v["formula"]),
|
348
|
ChargePersons: chargePersons,
|
347
|
ChargePersons: chargePersons,
|
349
|
Target: strings.TrimSpace(v["target"]),
|
348
|
Target: strings.TrimSpace(v["target"]),
|
|
@@ -355,6 +354,11 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
@@ -355,6 +354,11 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
355
|
YesterdayActual: strings.TrimSpace(v["yesterdayActual"]),
|
354
|
YesterdayActual: strings.TrimSpace(v["yesterdayActual"]),
|
356
|
Types: importCostCommand.Types,
|
355
|
Types: importCostCommand.Types,
|
357
|
}
|
356
|
}
|
|
|
357
|
+ if ossFile != "" {
|
|
|
358
|
+ item.Urls = []string{ossFile}
|
|
|
359
|
+ } else {
|
|
|
360
|
+ item.Urls = []string{}
|
|
|
361
|
+ }
|
358
|
createCostManagemant.CostManagemants = append(createCostManagemant.CostManagemants, item)
|
362
|
createCostManagemant.CostManagemants = append(createCostManagemant.CostManagemants, item)
|
359
|
}
|
363
|
}
|
360
|
result, err := cost_structured.NewHttpLibCostStructured(importDataCommand.Operator).BatchCreateCostManagemant(createCostManagemant)
|
364
|
result, err := cost_structured.NewHttpLibCostStructured(importDataCommand.Operator).BatchCreateCostManagemant(createCostManagemant)
|