作者 tangxvhui

修正一些错误

... ... @@ -68,7 +68,7 @@ func (srv *MessagePersonalService) TodayMessageSummaryEvaluationSelf(param *comm
cnt, _, err := messageRepo.Find(map[string]interface{}{
"types": domain.MessageTypesOther,
"targetUserId": param.UserId,
"playload": string(payloadStr),
"payload": string(payloadStr),
"limit": 1,
})
if err != nil {
... ...
... ... @@ -9,8 +9,8 @@ import (
func TestGenerateToken(t *testing.T) {
ut := UserAuth{
CompanyId: 8,
UserId: 3422181461696000,
Phone: "13066667702",
UserId: 3422052605249024,
Phone: "13677777777",
PlatformId: 29,
AdminType: 1,
}
... ...
... ... @@ -67,8 +67,8 @@ func (repo *MessagePersonalRepository) Find(param map[string]interface{}) (int,
if v, ok := param["types"]; ok {
query.Where("types=?", v)
}
if v, ok := param["playload"]; ok {
query.Where("playload @>?", v)
if v, ok := param["payload"]; ok {
query.Where("payload @>?", v)
}
query.Order("id desc")
count, err := query.SelectAndCount()
... ...