作者 yangfu

高管查看的订单标记为已读

@@ -212,7 +212,12 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r @@ -212,7 +212,12 @@ func List(header *protocol.RequestHeader, request *protocol.OrderListRequest) (r
212 total, orders, _ = OrderResponsitory.Find(utils.ObjectJsonToMap(queryOption)) 212 total, orders, _ = OrderResponsitory.Find(utils.ObjectJsonToMap(queryOption))
213 if len(orders) != 0 { 213 if len(orders) != 0 {
214 for i := range orders { 214 for i := range orders {
215 - rsp.List = append(rsp.List, DomainOrderToOrderListItem(orders[i])) 215 + item := DomainOrderToOrderListItem(orders[i])
  216 + // 高管查看都是标记已读
  217 + if orders[i].PartnerId != header.UserId {
  218 + item.IsRead = 1
  219 + }
  220 + rsp.List = append(rsp.List, item)
216 } 221 }
217 } 222 }
218 223