|  | @@ -12,7 +12,6 @@ import (
 | 
												
													
														
															|  |  	"html"
 |  |  	"html"
 | 
												
													
														
															|  |  	"log"
 |  |  	"log"
 | 
												
													
														
															|  |  	"strconv"
 |  |  	"strconv"
 | 
												
													
														
															|  | -	"strings"
 |  | 
 | 
												
													
														
															|  |  	"time"
 |  |  	"time"
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  	"github.com/kataras/iris/v12"
 |  |  	"github.com/kataras/iris/v12"
 | 
												
											
												
													
														
															|  | @@ -576,13 +575,13 @@ func (s *contractService) GetSurvey(bidsectionId int, projectId int, contractsTy
 | 
												
													
														
															|  |  		fmt.Sprintf("%d-12", year): 0.00,
 |  |  		fmt.Sprintf("%d-12", year): 0.00,
 | 
												
													
														
															|  |  	}
 |  |  	}
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -	contractIds := []string{}
 |  | 
 | 
												
													
														
															|  | 
 |  | +	contractIds := []int{}
 | 
												
													
														
															|  |  	for _, item := range incomeList {
 |  |  	for _, item := range incomeList {
 | 
												
													
														
															|  |  		contractPrice, _ := strconv.ParseFloat(item.Price, 64)
 |  |  		contractPrice, _ := strconv.ParseFloat(item.Price, 64)
 | 
												
													
														
															|  |  		totalContractPrice = totalContractPrice + contractPrice
 |  |  		totalContractPrice = totalContractPrice + contractPrice
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  		// 回款金额或已支付金额合计
 |  |  		// 回款金额或已支付金额合计
 | 
												
													
														
															|  | -		contractIds = append(contractIds, strconv.Itoa(item.Id))
 |  | 
 | 
												
													
														
															|  | 
 |  | +		contractIds = append(contractIds, item.Id)
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  		// typePrice := 0.00
 |  |  		// typePrice := 0.00
 | 
												
													
														
															|  |  		// if contractsType == 1 {
 |  |  		// if contractsType == 1 {
 | 
												
											
												
													
														
															|  | @@ -604,20 +603,22 @@ func (s *contractService) GetSurvey(bidsectionId int, projectId int, contractsTy
 | 
												
													
														
															|  |  		// returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] = returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] + typePrice
 |  |  		// returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] = returnDate[item.CreateTime.Format(conf.SysTimeformMonth)] + typePrice
 | 
												
													
														
															|  |  	}
 |  |  	}
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | -	contractInId := strings.Join(contractIds, ",")
 |  | 
 | 
												
													
														
															|  | 
 |  | +	fmt.Println(contractIds)
 | 
												
													
														
															|  | 
 |  | +	// contractInId := strings.Join(contractIds, ",")
 | 
												
													
														
															|  |  	if contractsType == 1 {
 |  |  	if contractsType == 1 {
 | 
												
													
														
															|  | -		list := s.contractReturnDao.GetInContractsIds(contractInId)
 |  | 
 | 
												
													
														
															|  | 
 |  | +		list := s.contractReturnDao.GetInContractsIds(contractIds)
 | 
												
													
														
															|  |  		for _, item := range list {
 |  |  		for _, item := range list {
 | 
												
													
														
															|  |  			typePrice := 0.00
 |  |  			typePrice := 0.00
 | 
												
													
														
															|  |  			typePrice, _ = strconv.ParseFloat(item.Price, 64)
 |  |  			typePrice, _ = strconv.ParseFloat(item.Price, 64)
 | 
												
													
														
															|  |  			totalTypePrice = totalTypePrice + typePrice
 |  |  			totalTypePrice = totalTypePrice + typePrice
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  | 
 |  | +			fmt.Println(item)
 | 
												
													
														
															|  |  			// :=decimal.NewFromFloat(typePrice)
 |  |  			// :=decimal.NewFromFloat(typePrice)
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  			returnDate[item.Time.Format(conf.SysTimeformMonth)], _ = decimal.NewFromFloat(returnDate[item.Time.Format(conf.SysTimeformMonth)]).Add(decimal.NewFromFloat(typePrice)).Float64()
 |  |  			returnDate[item.Time.Format(conf.SysTimeformMonth)], _ = decimal.NewFromFloat(returnDate[item.Time.Format(conf.SysTimeformMonth)]).Add(decimal.NewFromFloat(typePrice)).Float64()
 | 
												
													
														
															|  |  		}
 |  |  		}
 | 
												
													
														
															|  |  	} else {
 |  |  	} else {
 | 
												
													
														
															|  | -		list := s.contractPaidDao.GetInContractsIds(contractInId)
 |  | 
 | 
												
													
														
															|  | 
 |  | +		list := s.contractPaidDao.GetInContractsIds(contractIds)
 | 
												
													
														
															|  |  		for _, item := range list {
 |  |  		for _, item := range list {
 | 
												
													
														
															|  |  			typePrice := 0.00
 |  |  			typePrice := 0.00
 | 
												
													
														
															|  |  			typePrice, _ = strconv.ParseFloat(item.Price, 64)
 |  |  			typePrice, _ = strconv.ParseFloat(item.Price, 64)
 |