Browse Source

no message

xingzai 1 year ago
parent
commit
7497c72b68
2 changed files with 22 additions and 17 deletions
  1. 2 0
      controllers/cygx/morning_meeting_review.go
  2. 20 17
      services/cygx/resource_data.go

+ 2 - 0
controllers/cygx/morning_meeting_review.go

@@ -3,6 +3,7 @@ package cygx
 import (
 	"encoding/json"
 	"errors"
+	"fmt"
 	"github.com/rdlucklib/rdluck_tools/paging"
 	"hongze/hz_crm_api/controllers"
 	"hongze/hz_crm_api/models"
@@ -554,6 +555,7 @@ func (this *MorningMeetingController) PublishReport() {
 			return
 		}
 		for _, item := range list {
+			fmt.Println(item.Id)
 			go services.SendWxMsgWithCygxMorningMeeting(vint, item.IndustryId, item.IndustryName)
 			//go cygxService.UpdateResourceData(item.Id, "meetingreviewchapt", "add", time.Now().Format(utils.FormatDateTime))
 			go cygxService.UpdateMeetingreviewchaptResourceData(item.Id) //写入首页最新  cygx_resource_data 表

+ 20 - 17
services/cygx/resource_data.go

@@ -26,7 +26,7 @@ import (
 //roadshow
 
 //func init() {
-//	UpdateMeetingreviewchaptResourceData(105)
+//	UpdateMeetingreviewchaptResourceData(141)
 //}
 
 // 更新活动
@@ -589,6 +589,7 @@ func UpdateMeetingreviewchaptResourceData(sourceId int) {
 			industrialItem.CreateTime = time.Now()
 			industrialItems = append(industrialItems, industrialItem)
 		}
+		//return
 		var subjectItems []*cygx.CygxResourceDataIndustrialGroupSubject
 		//晨会精华如果关联的标的就做查询
 		if detail.IndustrialSubjectIds != "" {
@@ -839,29 +840,31 @@ func init1() {
 	//	}
 	//}
 
-	{
-		//产品内测
-		list, err := cygx.GetCygxProductInteriorList(condition, pars, 0, 9999999)
-		if err != nil {
-			fmt.Println(err)
-		}
-		for _, v := range list {
-			fmt.Println(v.ProductInteriorId)
-			UpdateProductInteriorResourceData(v.ProductInteriorId)
-		}
-	}
-	//
 	//{
-	//	//晨会精华
-	//	list, err := cygx.GetCygxMorningMeetingReviewChapterList(condition, pars, 0, 9999999)
+	//	//产品内测
+	//	list, err := cygx.GetCygxProductInteriorList(condition, pars, 0, 9999999)
 	//	if err != nil {
 	//		fmt.Println(err)
 	//	}
 	//	for _, v := range list {
-	//		fmt.Println(v.Id)
-	//		UpdateMeetingreviewchaptResourceData(v.Id)
+	//		fmt.Println(v.ProductInteriorId)
+	//		UpdateProductInteriorResourceData(v.ProductInteriorId)
 	//	}
 	//}
+	//
+
+	{
+		//晨会精华
+		list, err := cygx.GetCygxMorningMeetingReviewChapterList(condition, pars, 0, 9999999)
+		if err != nil {
+			fmt.Println(err)
+		}
+		for _, v := range list {
+			fmt.Println(v.Id)
+			UpdateMeetingreviewchaptResourceData(v.Id)
+		}
+	}
+
 	//
 	//{
 	//	//重点公司