|
@@ -142,6 +142,19 @@ public class CmBehaviorRecordService extends CrudService<CmBehaviorRecordDao, Cm
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
record.setPagePath(decode);
|
|
|
+ SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm");
|
|
|
+ String s = null;
|
|
|
+ try {
|
|
|
+ s = simpleDateFormat.format(simpleDateFormat.parse(record.getAccessTime()));
|
|
|
+ } catch (ParseException e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ List<CmBehaviorRecord> region = cmBehaviorRecordDao.selRegion(record.getIP(), record.getPageType(), s);
|
|
|
+ if (region.size() != 0) {
|
|
|
+ for (CmBehaviorRecord behaviorRecord : region) {
|
|
|
+ record.setAccessSource(behaviorRecord.getAccessSource());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
page.setList(cmBehaviorRecordList);
|
|
|
return page;
|