|
@@ -266,6 +266,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
@@ -266,6 +266,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
266
|
{EnName: "chargePersons", CnName: "*负责人"},
|
266
|
{EnName: "chargePersons", CnName: "*负责人"},
|
267
|
{EnName: "target", CnName: "目标值"},
|
267
|
{EnName: "target", CnName: "目标值"},
|
268
|
{EnName: "targetPeriod", CnName: "目标值期限"},
|
268
|
{EnName: "targetPeriod", CnName: "目标值期限"},
|
|
|
269
|
+ {EnName: "calculationType", CnName: "计算类型"},
|
269
|
{EnName: "present", CnName: "现状值"},
|
270
|
{EnName: "present", CnName: "现状值"},
|
270
|
{EnName: "schedulePlanPercent", CnName: "进度计划比"},
|
271
|
{EnName: "schedulePlanPercent", CnName: "进度计划比"},
|
271
|
{EnName: "benchmark", CnName: "标杆值"},
|
272
|
{EnName: "benchmark", CnName: "标杆值"},
|
|
@@ -372,6 +373,13 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
@@ -372,6 +373,13 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
372
|
chargePersons = append(chargePersons, "0")
|
373
|
chargePersons = append(chargePersons, "0")
|
373
|
}
|
374
|
}
|
374
|
}
|
375
|
}
|
|
|
376
|
+ calculationType := strings.TrimSpace(v["calculationType"])
|
|
|
377
|
+ iCalculationType := 0
|
|
|
378
|
+ if calculationType == "高于目标值" {
|
|
|
379
|
+ iCalculationType = 1
|
|
|
380
|
+ } else if calculationType == "低于目标值" {
|
|
|
381
|
+ iCalculationType = 2
|
|
|
382
|
+ }
|
375
|
//目标值期限
|
383
|
//目标值期限
|
376
|
targetPeriod := domain.GetTargetPeriod(v["targetPeriod"])
|
384
|
targetPeriod := domain.GetTargetPeriod(v["targetPeriod"])
|
377
|
item := &domain.CostManagemant{
|
385
|
item := &domain.CostManagemant{
|
|
@@ -399,6 +407,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
|
@@ -399,6 +407,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm |
399
|
CostPriceDesiredValue: strings.TrimSpace(v["costPriceDesiredValue"]),
|
407
|
CostPriceDesiredValue: strings.TrimSpace(v["costPriceDesiredValue"]),
|
400
|
CostPriceIndicatedValue: strings.TrimSpace(v["costPriceIndicatedValue"]),
|
408
|
CostPriceIndicatedValue: strings.TrimSpace(v["costPriceIndicatedValue"]),
|
401
|
CostPriceActualValue: strings.TrimSpace(v["costPriceActualValue"]),
|
409
|
CostPriceActualValue: strings.TrimSpace(v["costPriceActualValue"]),
|
|
|
410
|
+ CalculationType: iCalculationType,
|
402
|
}
|
411
|
}
|
403
|
if len(ossFile) > 0 {
|
412
|
if len(ossFile) > 0 {
|
404
|
item.Urls = ossFile
|
413
|
item.Urls = ossFile
|
|
@@ -476,7 +485,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import |
|
@@ -476,7 +485,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import |
476
|
domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743214_rNHm6ZBXZaC5xKTrsE7M4h45MY6n6Ff3.xlsx",
|
485
|
domain.ImportDividendsReturnOrders: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20210927/object/1632743214_rNHm6ZBXZaC5xKTrsE7M4h45MY6n6Ff3.xlsx",
|
477
|
domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220120/object/1642670543_cbraNKjNPHcbN6RNBYQBrwhC7BXGbDWp.xlsx",
|
486
|
domain.ImportProducts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220120/object/1642670543_cbraNKjNPHcbN6RNBYQBrwhC7BXGbDWp.xlsx",
|
478
|
domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx",
|
487
|
domain.ImportDevices: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/open-api/dev_online/20220126/object/1643184320_hT6sY5BKHmBa4TynfSGSCGyZ2KTTtzkj.xlsx",
|
479
|
- domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220526/object/1653555125_NGNbjmKpxCyks5CwztFsfj2dBNWerks5.xlsx",
|
488
|
+ domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220616/object/1655349687_CjpXGrjD4EH2jrw4SXJmHkaQZXKQcT56.xlsx",
|
480
|
}
|
489
|
}
|
481
|
var url string
|
490
|
var url string
|
482
|
var ok bool
|
491
|
var ok bool
|