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