|
@@ -231,9 +231,9 @@ func (s *treeService) GetAllContract(projectId int, account *models.CmProjectAcc
|
|
|
ContractsReturned, err := strconv.ParseFloat(data.ContractsReturned, 64)
|
|
|
if err != nil || ContractsReturned == 0 {
|
|
|
ContractsReturned = 0
|
|
|
- folder.ContractsIncomeProgress = "0%"
|
|
|
+ folder.ContractsIncomeProgress = "0"
|
|
|
} else {
|
|
|
- folder.ContractsIncomeProgress = fmt.Sprintf("%.2f", (ContractsReturned/ContractsIncome)*100) + "%"
|
|
|
+ folder.ContractsIncomeProgress = fmt.Sprintf("%.2f", (ContractsReturned/ContractsIncome)*100)
|
|
|
}
|
|
|
|
|
|
contractsPay, _ := strconv.ParseFloat(data.ContractsPay, 64)
|
|
@@ -249,9 +249,9 @@ func (s *treeService) GetAllContract(projectId int, account *models.CmProjectAcc
|
|
|
ContractsPaid, err := strconv.ParseFloat(data.ContractsPaid, 64)
|
|
|
if err != nil || ContractsPaid == 0 {
|
|
|
ContractsPaid = 0
|
|
|
- folder.ContractsPayProgress = "0%"
|
|
|
+ folder.ContractsPayProgress = "0"
|
|
|
} else {
|
|
|
- folder.ContractsPayProgress = fmt.Sprintf("%.2f", (ContractsPaid/ContractsPay)*100) + "%"
|
|
|
+ folder.ContractsPayProgress = fmt.Sprintf("%.2f", (ContractsPaid/ContractsPay)*100)
|
|
|
}
|
|
|
|
|
|
// 安全
|