|
@@ -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{}
|