|
@@ -1024,7 +1024,7 @@ func UpdateMicroRoadshowResourceData(sourceId int) {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-func init111() {
|
|
|
+func init213() {
|
|
|
|
|
|
|
|
|
|
|
@@ -1040,6 +1040,35 @@ func init111() {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1052,15 +1081,53 @@ func init111() {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
{
|
|
|
-
|
|
|
+
|
|
|
list, err := cygx.GetCygxResourceDataListBysource(utils.CYGX_OBJ_ARTICLE)
|
|
|
if err != nil {
|
|
|
fmt.Println(err)
|
|
|
+ return
|
|
|
}
|
|
|
for _, v := range list {
|
|
|
+ detail, e := cygx.GetArticleDetailByArticleId(v.SourceId)
|
|
|
+ if e != nil {
|
|
|
+ err = errors.New("GetCygxReportSelectionInfoById, Err: " + e.Error())
|
|
|
+ fmt.Println(err)
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ item := new(cygx.CygxResourceData)
|
|
|
+ if detail.ArticleTypeId > 0 {
|
|
|
+
|
|
|
+ item.ChartPermissionId = utils.CHART_PERMISSION_ID_YANXUAN
|
|
|
+ } else {
|
|
|
+
|
|
|
+
|
|
|
+ detailCategory, _ := cygx.GetCygxReportMappingCelueMaxDetailByCategoryId(detail.CategoryId)
|
|
|
+ if detailCategory != nil {
|
|
|
+ item.ChartPermissionId = detailCategory.ChartPermissionId
|
|
|
+ }
|
|
|
+ }
|
|
|
+ item.SourceId = v.SourceId
|
|
|
+ item.Source = utils.CYGX_OBJ_ARTICLE
|
|
|
fmt.Println(v.Source)
|
|
|
- UpdateArticleResourceData(v.SourceId)
|
|
|
+ err = cygx.UpdateChartPermissionIdResourceDataByItem(item)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println(err)
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1072,7 +1139,7 @@ func init111() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -1125,4 +1192,41 @@ func init111() {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|