|
@@ -50,7 +50,7 @@ func (l *MsgDistributorLogic) MsgDistributor(in *bxsubscribe.MsgDistributorReq)
|
|
|
return &bxsubscribe.StatusResp{ErrorCode: -1, ErrorMsg: "缺少参数"}, nil
|
|
|
}
|
|
|
//获取分发信息的地区
|
|
|
- infoRes := IC.BaseServiceMysql.SelectBySql(fmt.Sprintf("SELECT infoid FROM pushentniche WHERE id in('%s')", strings.Join(pushIds, "','")))
|
|
|
+ infoRes := IC.BaseServiceMysql.SelectBySql(fmt.Sprintf("SELECT infoid FROM push.pushentniche WHERE id in('%s')", strings.Join(pushIds, "','")))
|
|
|
if infoRes == nil || len(*infoRes) == 0 {
|
|
|
return &bxsubscribe.StatusResp{ErrorCode: -1, ErrorMsg: "获取分发地区异常"}, nil
|
|
|
}
|
|
@@ -80,7 +80,7 @@ func (l *MsgDistributorLogic) MsgDistributor(in *bxsubscribe.MsgDistributorReq)
|
|
|
}
|
|
|
}
|
|
|
//查询分发信息内容
|
|
|
- msgRes := IC.BaseServiceMysql.SelectBySql(fmt.Sprintf("SELECT * FROM pushentniche WHERE id in ('%s') and entid =? ", strings.Join(pushIds, "','")), in.EntId)
|
|
|
+ msgRes := IC.BaseServiceMysql.SelectBySql(fmt.Sprintf("SELECT * FROM push.pushentniche WHERE id in ('%s') and entid =? ", strings.Join(pushIds, "','")), in.EntId)
|
|
|
if msgRes == nil || len(*msgRes) == 0 {
|
|
|
return &bxsubscribe.StatusResp{ErrorCode: -1, ErrorMsg: "获取分发信息内容异常"}, nil
|
|
|
}
|
|
@@ -98,7 +98,7 @@ func (l *MsgDistributorLogic) MsgDistributor(in *bxsubscribe.MsgDistributorReq)
|
|
|
insertValue = append(insertValue, msgValues...)
|
|
|
insertValue = append(insertValue, []interface{}{3, dateNew, uid, nil, nil, m["id"]}...)
|
|
|
}
|
|
|
- affected, _ := IC.BaseServiceMysql.InsertBatchByTx(tx, "pushentniche", insertRow, insertValue)
|
|
|
+ affected, _ := IC.BaseServiceMysql.InsertBatchByTx(tx, "push.pushentniche", insertRow, insertValue)
|
|
|
if affected == 0 {
|
|
|
return false
|
|
|
}
|