|
|
@ -98,7 +98,7 @@ func (t *UpperWallCtl) Review() { |
|
|
|
result := make([]*UpperWallResult, 0) |
|
|
|
err := core.GetXormAuto().Table(&models.UpperWall{}).Alias("w"). |
|
|
|
Join("LEFT", (&models.User{}).Alias("u"), "w.user_id=u.id and u.is_delete=0"). |
|
|
|
Where("w.is_delete=0").In("w.id", ids).Asc("w.created_at asc").Find(&result) |
|
|
|
Where("w.is_delete=0").In("w.id", ids).Asc("w.created_at").Find(&result) |
|
|
|
t.CheckErr(err) |
|
|
|
if len(result) == 0 { |
|
|
|
t.ERROR("不存在上墙消息", code.MSG_DATA_NOT_EXIST) |
|
|
@ -136,7 +136,7 @@ func (t *UpperWallCtl) Blacklist() { |
|
|
|
err = core.GetXormAuto().Table("ox_upper_wall").Alias("w"). |
|
|
|
Join("LEFT", "ox_user as u", "w.user_id=u.id and u.is_delete=0"). |
|
|
|
Where("w.is_delete=0 and w.status=1 and w.rehearsal_id=? and w.activity_id=? and w.arch_id=?", |
|
|
|
activity.RehearsalId, activity.Id, activity.ArchId).OrderBy("review_time desc").Find(&result) |
|
|
|
activity.RehearsalId, activity.Id, activity.ArchId).Desc("w.review_time").Find(&result) |
|
|
|
t.CheckErr(err) |
|
|
|
|
|
|
|
t.JSON(map[string]interface{}{ |
|
|
|