|
@@ -150,16 +150,16 @@ func SendWxMsgWithCygxProductInterior(productInteriorId int) (err error) {
|
|
|
if detail.IsSendWxMsg == 1 {
|
|
|
return
|
|
|
}
|
|
|
- if detail.MatchTypeId > 0 {
|
|
|
- matchDetail, e := cygx.GetCygxReportMappingCygxDetail(detail.MatchTypeId)
|
|
|
- if e != nil {
|
|
|
- err = errors.New("GetCygxReportMappingCygxDetail" + e.Error())
|
|
|
- return
|
|
|
- }
|
|
|
- if matchDetail != nil {
|
|
|
- detail.MatchTypeName = matchDetail.MatchTypeName
|
|
|
- }
|
|
|
- }
|
|
|
+ //if detail.MatchTypeId > 0 {
|
|
|
+ // matchDetail, e := cygx.GetCygxReportMappingCygxDetail(detail.MatchTypeId)
|
|
|
+ // if e != nil {
|
|
|
+ // err = errors.New("GetCygxReportMappingCygxDetail" + e.Error())
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if matchDetail != nil {
|
|
|
+ // detail.MatchTypeName = matchDetail.MatchTypeName
|
|
|
+ // }
|
|
|
+ //}
|
|
|
permissionStr, e := company.GetPermissionIdById(strconv.Itoa(detail.ChartPermissionId))
|
|
|
if e != nil {
|
|
|
err = errors.New("获取主客观权限失败" + e.Error())
|
|
@@ -172,33 +172,33 @@ func SendWxMsgWithCygxProductInterior(productInteriorId int) (err error) {
|
|
|
return
|
|
|
}
|
|
|
var industrialName string
|
|
|
-
|
|
|
- industrialList, e := cygx.GetProductInteriorIndustrialGroupManagementList(productInteriorId)
|
|
|
- if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
- err = errors.New("GetProductInteriorIndustrialGroupManagementList,Err:" + e.Error())
|
|
|
- return
|
|
|
- }
|
|
|
-
|
|
|
- //关联的产业推送产业,没有关联产业的推送行业 p2_867 2023-8-30
|
|
|
- if len(industrialList) == 0 {
|
|
|
- industrialName = detail.ChartPermissionName
|
|
|
- } else {
|
|
|
- //mapOpenidFllow := make(map[int]string)
|
|
|
- //
|
|
|
- for _, vindustr := range industrialList {
|
|
|
- //获取关注对应产业的用户信息
|
|
|
- //industryFllowList, e := cygx.GetCygxUserindustryFllowOpenid(vindustr.IndustrialManagementId)
|
|
|
- //if e != nil {
|
|
|
- // err = errors.New("获取关注对应产业的用户信息失败 " + e.Error())
|
|
|
- // return
|
|
|
- //}
|
|
|
- //for _, v := range industryFllowList {
|
|
|
- // mapOpenidFllow[v.UserId] = v.OpenId
|
|
|
- //}
|
|
|
- industrialName += vindustr.IndustryName + ";"
|
|
|
- }
|
|
|
- industrialName = strings.TrimRight(industrialName, ";")
|
|
|
- }
|
|
|
+ industrialName = detail.ColumnName //用栏目名称
|
|
|
+ //industrialList, e := cygx.GetProductInteriorIndustrialGroupManagementList(productInteriorId)
|
|
|
+ //if e != nil && e.Error() != utils.ErrNoRow() {
|
|
|
+ // err = errors.New("GetProductInteriorIndustrialGroupManagementList,Err:" + e.Error())
|
|
|
+ // return
|
|
|
+ //}
|
|
|
+ //
|
|
|
+ ////关联的产业推送产业,没有关联产业的推送行业 p2_867 2023-8-30
|
|
|
+ //if len(industrialList) == 0 {
|
|
|
+ // industrialName = detail.ColumnName //用栏目名称
|
|
|
+ //} else {
|
|
|
+ // //mapOpenidFllow := make(map[int]string)
|
|
|
+ // //
|
|
|
+ // for _, vindustr := range industrialList {
|
|
|
+ // //获取关注对应产业的用户信息
|
|
|
+ // //industryFllowList, e := cygx.GetCygxUserindustryFllowOpenid(vindustr.IndustrialManagementId)
|
|
|
+ // //if e != nil {
|
|
|
+ // // err = errors.New("获取关注对应产业的用户信息失败 " + e.Error())
|
|
|
+ // // return
|
|
|
+ // //}
|
|
|
+ // //for _, v := range industryFllowList {
|
|
|
+ // // mapOpenidFllow[v.UserId] = v.OpenId
|
|
|
+ // //}
|
|
|
+ // industrialName += vindustr.IndustryName + ";"
|
|
|
+ // }
|
|
|
+ // industrialName = strings.TrimRight(industrialName, ";")
|
|
|
+ //}
|
|
|
|
|
|
////获取拒绝接收推送的的用户的 openid
|
|
|
//mapOpenidRefuset := make(map[int]string)
|