|
@@ -283,6 +283,7 @@ func (this *ReportController) IndustryList() {
|
|
|
// @Param IndustrialManagementId query int true "产业ID"
|
|
|
// @Param ShowTimeLine query int true "是否展示时间线 0不展示,1展示"
|
|
|
// @Param IsSendWx query int false "是否是通过微信模版进来的 1是,其它否"
|
|
|
+// @Param ChapterId query int false "晨会精华段落ID"
|
|
|
// @Success 200 {object} models.IndustrialToArticleCategoryListRep
|
|
|
// @router /toArticleCategoryList [get]
|
|
|
func (this *ReportController) ArticleCategoryList() {
|
|
@@ -305,6 +306,7 @@ func (this *ReportController) ArticleCategoryList() {
|
|
|
}
|
|
|
showTimeLine, _ := this.GetInt("ShowTimeLine", 0)
|
|
|
isSendWx, _ := this.GetInt("IsSendWx")
|
|
|
+ chapterId, _ := this.GetInt("ChapterId")
|
|
|
|
|
|
detail, err := models.GetIndustrialManagementDetail(industrialManagementId)
|
|
|
if err != nil {
|
|
@@ -444,6 +446,10 @@ func (this *ReportController) ArticleCategoryList() {
|
|
|
timeLineItem.IsRed = true
|
|
|
}
|
|
|
list = append([]*models.IndustrialToArticleCategoryRep{&timeLineItem}, list...)
|
|
|
+
|
|
|
+ if chapterId > 0 && isSendWx == 1 {
|
|
|
+ go services.AddCygxMorningMeetingReviewChapterHistory(user, chapterId, "微信")
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
resp := new(models.IndustrialToArticleCategoryListRep)
|