|
@@ -519,7 +519,7 @@ func (s *contractService) GetSurvey(bidsectionId int, projectId int, contractsTy
|
|
|
// 1.获得收入合同
|
|
|
year := time.Now().Year()
|
|
|
incomeList := s.contractDao.GetTypeYear(bidsectionId, projectId, contractsType, year)
|
|
|
- fmt.Println(incomeList)
|
|
|
+
|
|
|
// 2.初始化
|
|
|
totalContractPrice := 0.00
|
|
|
totalTypePrice := 0.00
|
|
@@ -561,7 +561,8 @@ func (s *contractService) GetSurvey(bidsectionId int, projectId int, contractsTy
|
|
|
} else if item.Status == 2 {
|
|
|
closeNumber = closeNumber + 1
|
|
|
}
|
|
|
- returnDate[item.SignerTime.Format(conf.SysTimeformMonth)] = returnDate[item.SignerTime.Format(conf.SysTimeformMonth)] + typePrice
|
|
|
+
|
|
|
+ returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] = returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] + typePrice
|
|
|
}
|
|
|
totalContractPrice, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", totalContractPrice), 64)
|
|
|
totalTypePrice, _ = strconv.ParseFloat(fmt.Sprintf("%.2f", totalTypePrice), 64)
|