|
@@ -113,7 +113,7 @@ public class ClubPortraitService {
|
|
|
if (cmPortrait.getEndTime().equals(endTime)) {
|
|
|
cmPortrait.setEndTime(dateFormat.format(date));
|
|
|
}
|
|
|
- int ordinary = 0, secondHand = 0, rebate = 0, partialRefund = 0, fullRefund = 0, closed = 0;
|
|
|
+ int ordinary = 0, secondHand = 0, rebate = 0, partialRefund = 0, fullRefund = 0, closed = 0,total = 0;
|
|
|
|
|
|
ArrayList<OrderPortrait> orderPortraits = new ArrayList<>();
|
|
|
OrderPortrait orderPortrait = new OrderPortrait();
|
|
@@ -207,6 +207,9 @@ public class ClubPortraitService {
|
|
|
|
|
|
cmPortrait.setOrderPortrait(orderPortraits);
|
|
|
}
|
|
|
+ // 总量
|
|
|
+ total = ordinary + secondHand + rebate + partialRefund + fullRefund + closed;
|
|
|
+ cmPortrait.setOrderScopeNum(total);
|
|
|
calendar.setTime(date);
|
|
|
calendar.add(Calendar.DAY_OF_MONTH, -1);
|
|
|
time = calendar.getTime();
|
|
@@ -216,10 +219,12 @@ public class ClubPortraitService {
|
|
|
// 搜索关键词
|
|
|
if (1 == cmPortrait.getType() || 4 == cmPortrait.getType()) {
|
|
|
List<CmBehaviorRecord> behaviorRecordList = cmPortraitDao.selBehaviorList(cmPortrait);
|
|
|
+ int keywordsTotal = 0;
|
|
|
ArrayList<Integer> integers = new ArrayList<>();
|
|
|
ArrayList<String> strings = new ArrayList<>();
|
|
|
if (behaviorRecordList.size() != 0) {
|
|
|
for (CmBehaviorRecord record : behaviorRecordList) {
|
|
|
+ keywordsTotal += record.getNumber();
|
|
|
integers.add(record.getNumber());
|
|
|
if (!ObjectUtils.isEmpty(record.getPageLabel())) {
|
|
|
strings.add(record.getPageLabel());
|
|
@@ -229,8 +234,10 @@ public class ClubPortraitService {
|
|
|
cmPortrait.setTotalkeywords(behaviorRecordList.get(0).getNumbers());
|
|
|
cmPortrait.setBehaviorValue(integers);
|
|
|
cmPortrait.setBehaviorType(strings);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
+ cmPortrait.setKeyWordsScopeNum(keywordsTotal);
|
|
|
}
|
|
|
// 咨询记录
|
|
|
if (2 == cmPortrait.getType() || 4 == cmPortrait.getType()) {
|
|
@@ -241,6 +248,7 @@ public class ClubPortraitService {
|
|
|
cmPortrait.setEndTime(dateFormat.format(date));
|
|
|
}
|
|
|
List<CmClubRemarks> remarksList = cmPortraitDao.selRemarksList(cmPortrait);
|
|
|
+ int remarksTotal = 0;
|
|
|
ArrayList<Integer> integers = new ArrayList<>();
|
|
|
ArrayList<String> strings = new ArrayList<>();
|
|
|
ArrayList<String> strRemark = new ArrayList<>();
|
|
@@ -263,6 +271,7 @@ public class ClubPortraitService {
|
|
|
}
|
|
|
}
|
|
|
integers.add(number);
|
|
|
+ remarksTotal += number;
|
|
|
if (!ObjectUtils.isEmpty(str)) {
|
|
|
strings.add(str);
|
|
|
} else {
|
|
@@ -290,6 +299,7 @@ public class ClubPortraitService {
|
|
|
cmPortrait.setRemarksValue(integers);
|
|
|
cmPortrait.setRemarksType(strings);
|
|
|
}
|
|
|
+ cmPortrait.setRemarksScopeNum(remarksTotal);
|
|
|
calendar.setTime(date);
|
|
|
calendar.add(Calendar.DAY_OF_MONTH, -1);
|
|
|
time = calendar.getTime();
|