Browse Source

补全续约统计异常客户

xyxie 1 year ago
parent
commit
a7849779af
1 changed files with 2 additions and 1 deletions
  1. 2 1
      services/task.go

+ 2 - 1
services/task.go

@@ -38,6 +38,7 @@ func FixEtaBusinessCodeEncrypt() {
 	}
 }
 
+// InitContractUnusual 补全续约统计异常的客户
 func InitContractUnusual() (err error) {
 	defer func() {
 		if err != nil {
@@ -49,7 +50,7 @@ func InitContractUnusual() (err error) {
 	addList := make([]*company.CompanyRenewalRecord, 0)
 	// 整理时间表
 	startDate, _ := time.ParseInLocation(utils.FormatDate, "2023-01-01", time.Local)
-	endDate, _ := time.ParseInLocation(utils.FormatDate, "2023-12-18", time.Local)
+	endDate, _ := time.ParseInLocation(utils.FormatDate, "2023-12-07", time.Local)
 	for startDate.Before(endDate) || startDate == endDate {
 		tmpC := ` AND end_date = ? AND status = 1 AND contract_type IN ( "新签合同", "续约合同" )  AND product_id = 1`
 		var tmpP []interface{}