tucky/hz8 — Issue #3: 1.0.4 买家发微博，卖家被@到，但是没有计算折扣
Author: tucky
Created: 2011-11-13 16:22:51+00:00
State: open

买家：
-----------------------------------------------------------------

海折应用：@weibuy 测试
转发| 收藏| 评论 7分钟前 来自新浪微博

卖家：
-----------------------------------------------------------------
海折应用：@weibuy 测试 转发| 收藏| 评论

卖家被@到了，但是没有计算折扣

数据库

> db.shops.find() { "_id" : ObjectId("4eb940263526bd0597a9f8be"), "accountId" : "2320234624", "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.871Z"), "latestMentionId" : "3379421320680721", "location" : "上海", "lowerLimit" : 0.05, "oauth" : { "token" : "a4a77c42b1c74cc56c6485bc2cc75c95", "tokenSecret" : "62f5c4709b3fa23ecb545f42da81ff8a" }, "provider" : "tsina", "registerDate" : ISODate("2011-11-08T14:43:50.462Z"), "screenName" : "weibuy", "totalMentions" : 0, "upperLimit" : 0.2 } { "_id" : ObjectId("4eba72fe0633a97dfa000001"), "accountId" : "1703708174", "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.871Z"), "latestMentionId" : "3378315220075824", "lowerLimit" : 0.05, "oauth" : { "token" : "5821630820cf52622575d64f7b48831d", "_id" : ObjectId("4eba72fe0633a97dfa000002"), "tokenSecret" : "9b001ea91b29151c334bd0626a857322" }, "provider" : "tsina", "totalMentions" : 0, "upperLimit" : 0.2 } { "_id" : ObjectId("4eba83630633a97dfa000003"), "accountId" : "2520385600", "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.872Z"), "lowerLimit" : 0.05, "oauth" : { "token" : "51433b2d03b91461558945bb9578699a", "_id" : ObjectId("4eba83630633a97dfa000004"), "tokenSecret" : "945a393e0298cd5d2f830821970a8df0" }, "provider" : "tsina", "totalMentions" : 0, "upperLimit" : 0.8 } { "_id" : ObjectId("4eba838f0633a97dfa000005"), "accountId" : "1495084251", "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.872Z"), "latestMentionId" : "3377933312157860", "lowerLimit" : 0.05, "oauth" : { "token" : "ee6117b63799fdaa53d44326a7d60636", "_id" : ObjectId("4eba838f0633a97dfa000006"), "tokenSecret" : "f74f85b180170b2f40a02005dbbc64d5" }, "provider" : "tsina", "totalMentions" : 0, "upperLimit" : 0.8 } { "_id" : ObjectId("4ebbdb220633a97dfa000007"), "accountId" : "2189335154", "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.873Z"), "latestMentionId" : "3378187897971271", "lowerLimit" : 0.05, "oauth" : { "token" : "e350f4aa7e4ae9663218bbc0f03bc266", "_id" : ObjectId("4ebbdb220633a97dfa000008"), "tokenSecret" : "dab729601f609d52dd6f7f167ffb0cb4" }, "provider" : "tsina", "totalMentions" : 0, "upperLimit" : 0.8 } { "_id" : ObjectId("4eba49280633a95efb000005"), "accountId" : "2453804310", "authorization" : { "_id" : ObjectId("4eba49280633a95efb000006"), "access_token_secret" : "7352eba1320bff5119ec46ffc2a96aa9", "access_token" : "699a7e0d8e7efc4b6cc90bd56ce5064c" }, "isOnline" : false, "lastScanDate" : ISODate("2011-11-13T16:18:34.873Z"), "latestMentionId" : "3379421131934661", "lowerLimit" : 0.05, "oauth" : { "token" : "699a7e0d8e7efc4b6cc90bd56ce5064c", "_id" : ObjectId("4ebfea780633a96589000001"), "tokenSecret" : "7352eba1320bff5119ec46ffc2a96aa9" }, "provider" : "tsina", "screenName" : "海折应用", "totalMentions" : 0, "upperLimit" : 0.2 }

Customer这么只有一个人？

> db.customers.find() { "_id" : ObjectId("4eb940263526bd0597a9f8bf"), "provider" : "sina", "accountId" : "2096535182", "screenName" : "ScalaWeibo", "shoppedAt" : [ "2320234624" ], "location" : "上海", "activity" : { "maxPostsPerDay" : 0, "totalPosts" : 0, "followings" : 90 }, "popularity" : { "maxRepliesOnePost" : 0, "totalReplies" : 0, "followers" : 1 }, "totalDiscount" : 15.5 } >

6:19:14.908 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - find all shops without any filter 16:19:14.910 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eb940263526bd0597a9f8be] 16:19:14.911 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba72fe0633a97dfa000001] 16:19:14.911 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba83630633a97dfa000003] 16:19:14.912 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba838f0633a97dfa000005] 16:19:14.912 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4ebbdb220633a97dfa000007] 16:19:14.913 [ForkJoinPool-1-worker-6] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba49280633a95efb000005] 16:19:24.918 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.c.internal.scanner.ShopScanner:174] - scan all shops 16:19:24.919 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - find all shops without any filter 16:19:24.924 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eb940263526bd0597a9f8be] 16:19:24.924 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba72fe0633a97dfa000001] 16:19:24.925 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba83630633a97dfa000003] 16:19:24.925 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba838f0633a97dfa000005] 16:19:24.926 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4ebbdb220633a97dfa000007] 16:19:24.926 [ForkJoinPool-1-worker-0] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - update shop's last scan date by ObjectId [4eba49280633a95efb000005] 16:19:31.957 [ForkJoinPool-1-worker-1] DEBUG [c.w.h.c.i.scanner.CustomerScanner:174] - scan all customers 16:19:31.957 [ForkJoinPool-1-worker-1] DEBUG [c.w.h.s.internal.StorageServiceImpl:174] - find all customers without any filter