作者 yangfu

refactor: 成本模板变更

@@ -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: "comparisonOperator", 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: "标杆值"},
@@ -399,6 +400,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm @@ -399,6 +400,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm
399 CostPriceDesiredValue: strings.TrimSpace(v["costPriceDesiredValue"]), 400 CostPriceDesiredValue: strings.TrimSpace(v["costPriceDesiredValue"]),
400 CostPriceIndicatedValue: strings.TrimSpace(v["costPriceIndicatedValue"]), 401 CostPriceIndicatedValue: strings.TrimSpace(v["costPriceIndicatedValue"]),
401 CostPriceActualValue: strings.TrimSpace(v["costPriceActualValue"]), 402 CostPriceActualValue: strings.TrimSpace(v["costPriceActualValue"]),
  403 + ComparisonOperator: strings.TrimSpace(v["comparisonOperator"]),
402 } 404 }
403 if len(ossFile) > 0 { 405 if len(ossFile) > 0 {
404 item.Urls = ossFile 406 item.Urls = ossFile
@@ -476,7 +478,7 @@ func (srv ExcelDataService) FileImportTemplate(importDataCommand *command.Import @@ -476,7 +478,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", 478 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", 479 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", 480 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", 481 + domain.ImportCosts: "https://timeless-world.oss-cn-shenzhen.aliyuncs.com/opportunity/dev_online/20220615/object/1655280919_MKQhwQ7D72ZBsrRpraX3QJGxWt3KyCj5.xlsx",
480 } 482 }
481 var url string 483 var url string
482 var ok bool 484 var ok bool
@@ -94,6 +94,8 @@ type CostManagemant struct { @@ -94,6 +94,8 @@ type CostManagemant struct {
94 DesiredValue string `json:"desiredValue"` 94 DesiredValue string `json:"desiredValue"`
95 // 考核值 95 // 考核值
96 IndicatedValue string `json:"indicatedValue"` 96 IndicatedValue string `json:"indicatedValue"`
  97 + // 比较运算符号 > <
  98 + ComparisonOperator string `json:"comparisonOperator"`
97 } 99 }
98 100
99 type NodeType struct { 101 type NodeType struct {