作者 yangfu

列表修改

@@ -181,7 +181,7 @@ type MyApproveChanceResponse struct { @@ -181,7 +181,7 @@ type MyApproveChanceResponse struct {
181 181
182 //我的审核机会列表 182 //我的审核机会列表
183 type ChanceApproveItemOrm struct { 183 type ChanceApproveItemOrm struct {
184 - ChanceUserId int64 `orm:"column(chance_user_id)"` 184 + ChanceUserId int64 `orm:"column(user_id)"`
185 SourceContent string `orm:"column(source_content)"` 185 SourceContent string `orm:"column(source_content)"`
186 ChanceEnableStatus int `orm:"column(enable_status)"` 186 ChanceEnableStatus int `orm:"column(enable_status)"`
187 Images string `orm:"column(images)"` 187 Images string `orm:"column(images)"`
@@ -251,7 +251,7 @@ type ChancePoolItemOrm struct { @@ -251,7 +251,7 @@ type ChancePoolItemOrm struct {
251 //机会池收藏列表项 251 //机会池收藏列表项
252 type ChanceCollectItemOrm struct { 252 type ChanceCollectItemOrm struct {
253 ChanceId int64 `orm:"column(id)"` 253 ChanceId int64 `orm:"column(id)"`
254 - Uid int64 `orm:"column(user_id)"` 254 + ChanceUserId int64 `orm:"column(user_id)"`
255 CreateTime time.Time `orm:"column(create_at)"` 255 CreateTime time.Time `orm:"column(create_at)"`
256 SourceContent string `orm:"column(source_content)"` 256 SourceContent string `orm:"column(source_content)"`
257 ChanceEnableStatus int `orm:"column(enable_status)"` 257 ChanceEnableStatus int `orm:"column(enable_status)"`
@@ -275,7 +275,7 @@ type ChanceCollectItemOrm struct { @@ -275,7 +275,7 @@ type ChanceCollectItemOrm struct {
275 //机会池收藏列表项 275 //机会池收藏列表项
276 type ChanceThumbUpItemOrm struct { 276 type ChanceThumbUpItemOrm struct {
277 ChanceId int64 `orm:"column(id)"` 277 ChanceId int64 `orm:"column(id)"`
278 - Uid int64 `orm:"column(user_id)"` 278 + ChanceUserId int64 `orm:"column(user_id)"`
279 CreateTime time.Time `orm:"column(create_at)"` 279 CreateTime time.Time `orm:"column(create_at)"`
280 SourceContent string `orm:"column(source_content)"` 280 SourceContent string `orm:"column(source_content)"`
281 ChanceEnableStatus int `orm:"column(enable_status)"` 281 ChanceEnableStatus int `orm:"column(enable_status)"`
@@ -936,9 +936,10 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove @@ -936,9 +936,10 @@ func MyApproveChance(header *protocol.RequestHeader, request *protocol.MyApprove
936 } else if chance.ChanceEnableStatus == 0 { //机会关闭 936 } else if chance.ChanceEnableStatus == 0 { //机会关闭
937 commItem.ChanceStatus = protocol.ChanceStatusClose 937 commItem.ChanceStatus = protocol.ChanceStatusClose
938 } else { 938 } else {
939 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 939 + if provider, err = agg.GetUserBaseInfo(chance.ChanceUserId, header.CompanyId); err != nil {
940 commItem.ChanceStatus = protocol.ChanceStatusDelete 940 commItem.ChanceStatus = protocol.ChanceStatusDelete
941 - log.Error(err) 941 + log.Error(chance.ChanceUserId, header.CompanyId, err)
  942 + err = nil
942 //return 943 //return
943 } else { 944 } else {
944 item := protocol.ChanceItem{ 945 item := protocol.ChanceItem{
@@ -1005,7 +1006,7 @@ func MyCollectChance(header *protocol.RequestHeader, request *protocol.MyCollect @@ -1005,7 +1006,7 @@ func MyCollectChance(header *protocol.RequestHeader, request *protocol.MyCollect
1005 } else if chance.ChanceEnableStatus == 0 { //机会关闭 1006 } else if chance.ChanceEnableStatus == 0 { //机会关闭
1006 commItem.ChanceStatus = protocol.ChanceStatusClose 1007 commItem.ChanceStatus = protocol.ChanceStatusClose
1007 } else { 1008 } else {
1008 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 1009 + if provider, err = agg.GetUserBaseInfo(chance.ChanceUserId, header.CompanyId); err != nil {
1009 commItem.ChanceStatus = protocol.ChanceStatusDelete 1010 commItem.ChanceStatus = protocol.ChanceStatusDelete
1010 log.Error(err) 1011 log.Error(err)
1011 //return 1012 //return
@@ -1075,7 +1076,7 @@ func MyThumbUpChance(header *protocol.RequestHeader, request *protocol.MyThumbUp @@ -1075,7 +1076,7 @@ func MyThumbUpChance(header *protocol.RequestHeader, request *protocol.MyThumbUp
1075 } else if chance.ChanceEnableStatus == 0 { //机会关闭 1076 } else if chance.ChanceEnableStatus == 0 { //机会关闭
1076 commItem.ChanceStatus = protocol.ChanceStatusClose 1077 commItem.ChanceStatus = protocol.ChanceStatusClose
1077 } else { 1078 } else {
1078 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 1079 + if provider, err = agg.GetUserBaseInfo(chance.ChanceUserId, header.CompanyId); err != nil {
1079 commItem.ChanceStatus = protocol.ChanceStatusDelete 1080 commItem.ChanceStatus = protocol.ChanceStatusDelete
1080 log.Error(err) 1081 log.Error(err)
1081 //return 1082 //return
@@ -1146,7 +1147,7 @@ func MyComment(header *protocol.RequestHeader, request *protocol.MyCommentReques @@ -1146,7 +1147,7 @@ func MyComment(header *protocol.RequestHeader, request *protocol.MyCommentReques
1146 } else if chance.ChanceEnableStatus == 0 { //机会关闭 1147 } else if chance.ChanceEnableStatus == 0 { //机会关闭
1147 commItem.ChanceStatus = protocol.ChanceStatusClose 1148 commItem.ChanceStatus = protocol.ChanceStatusClose
1148 } else { 1149 } else {
1149 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 1150 + if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
1150 commItem.ChanceStatus = protocol.ChanceStatusDelete 1151 commItem.ChanceStatus = protocol.ChanceStatusDelete
1151 log.Error(err) 1152 log.Error(err)
1152 //return 1153 //return
@@ -337,7 +337,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -337,7 +337,7 @@ func MsgChanceComment(header *protocol.RequestHeader, request *protocol.MsgChanc
337 } else if chance.ChanceEnableStatus == 0 { //机会关闭 337 } else if chance.ChanceEnableStatus == 0 { //机会关闭
338 commItem.ChanceStatus = protocol.ChanceStatusClose 338 commItem.ChanceStatus = protocol.ChanceStatusClose
339 } else { 339 } else {
340 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 340 + if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
341 commItem.ChanceStatus = protocol.ChanceStatusDelete 341 commItem.ChanceStatus = protocol.ChanceStatusDelete
342 log.Error(err) 342 log.Error(err)
343 //return 343 //return
@@ -401,7 +401,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc @@ -401,7 +401,7 @@ func MsgChanceThumbUp(header *protocol.RequestHeader, request *protocol.MsgChanc
401 } else if chance.ChanceEnableStatus == 0 { //机会关闭 401 } else if chance.ChanceEnableStatus == 0 { //机会关闭
402 commItem.ChanceStatus = protocol.ChanceStatusClose 402 commItem.ChanceStatus = protocol.ChanceStatusClose
403 } else { 403 } else {
404 - if provider, err = agg.GetUserBaseInfo(header.UserId, header.CompanyId); err != nil { 404 + if provider, err = agg.GetUserBaseInfo(chance.Uid, header.CompanyId); err != nil {
405 commItem.ChanceStatus = protocol.ChanceStatusDelete 405 commItem.ChanceStatus = protocol.ChanceStatusDelete
406 log.Error(err) 406 log.Error(err)
407 //return 407 //return