...
|
...
|
@@ -271,6 +271,15 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
|
{EnName: "benchmark", CnName: "标杆值"},
|
|
|
{EnName: "highest", CnName: "历史最高值"},
|
|
|
{EnName: "yesterdayActual", CnName: "昨日实际值"},
|
|
|
|
|
|
{EnName: "desiredValue", CnName: "主干-理想值"},
|
|
|
{EnName: "indicatedValue", CnName: "主干-考核值"},
|
|
|
{EnName: "factoryPriceDesiredValue", CnName: "树桩-出厂价-理想值"},
|
|
|
{EnName: "factoryPriceIndicatedValue", CnName: "树桩-出厂价-考核值"},
|
|
|
{EnName: "factoryPriceActualValue", CnName: "树桩-出厂价-现状值"},
|
|
|
{EnName: "costPriceDesiredValue", CnName: "树桩-成本-理想值"},
|
|
|
{EnName: "costPriceIndicatedValue", CnName: "树桩-成本-考核值"},
|
|
|
{EnName: "costPriceActualValue", CnName: "树桩-成本-现状值"},
|
|
|
}
|
|
|
var buf bytes.Buffer
|
|
|
tee := io.TeeReader(importDataCommand.Reader, &buf)
|
...
|
...
|
@@ -381,6 +390,15 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
|
Highest: strings.TrimSpace(v["highest"]),
|
|
|
YesterdayActual: strings.TrimSpace(v["yesterdayActual"]),
|
|
|
Types: importCostCommand.Types,
|
|
|
|
|
|
DesiredValue: strings.TrimSpace(v["desiredValue"]),
|
|
|
IndicatedValue: strings.TrimSpace(v["indicatedValue"]),
|
|
|
FactoryPriceDesiredValue: strings.TrimSpace(v["factoryPriceDesiredValue"]),
|
|
|
FactoryPriceIndicatedValue: strings.TrimSpace(v["factoryPriceIndicatedValue"]),
|
|
|
FactoryPriceActualValue: strings.TrimSpace(v["factoryPriceActualValue"]),
|
|
|
CostPriceDesiredValue: strings.TrimSpace(v["costPriceDesiredValue"]),
|
|
|
CostPriceIndicatedValue: strings.TrimSpace(v["costPriceIndicatedValue"]),
|
|
|
CostPriceActualValue: strings.TrimSpace(v["costPriceActualValue"]),
|
|
|
}
|
|
|
if len(ossFile) > 0 {
|
|
|
item.Urls = ossFile
|
...
|
...
|
@@ -458,7 +476,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import |
|
|
domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743214_rNHm6ZBXZaC5xKTrsE7M4h45MY6n6Ff3.xlsx",
|
|
|
domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220120/object/1642670543_cbraNKjNPHcbN6RNBYQBrwhC7BXGbDWp.xlsx",
|
|
|
domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx",
|
|
|
domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/test/20220318/object/1647587204_B5azRmr2TB73jRKWsnFyDe4yxXJWnrDT.xlsx",
|
|
|
domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220526/object/1653535826_mNh4tZkZpsTeRkYAnb3WSmCKs5SYM2Ps.xlsx",
|
|
|
}
|
|
|
var url string
|
|
|
var ok bool
|
...
|
...
|
|