|
|
@@ -235,7 +235,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Integer repliedCount = 0;
|
|
|
// 待回复数量
|
|
|
Integer notReplyCount = 0;
|
|
|
- if (CollectionUtils.isEmpty(idList)){
|
|
|
+ if (CollectionUtils.isEmpty(idList)) {
|
|
|
return map;
|
|
|
}
|
|
|
List<List<Long>> idsArray = SplitArray.splitAry(idList, SplitArray.QUERY_MAX_NUMBER);
|
|
|
@@ -307,7 +307,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Integer notReplyCount = 0;
|
|
|
// 无需确认数量
|
|
|
Integer unNeedReply = 0;
|
|
|
- if (org.apache.commons.collections.CollectionUtils.isEmpty(idList)){
|
|
|
+ if (org.apache.commons.collections.CollectionUtils.isEmpty(idList)) {
|
|
|
return map;
|
|
|
}
|
|
|
List<List<Long>> idsArray = SplitArray.splitAry(idList, SplitArray.QUERY_MAX_NUMBER);
|
|
|
@@ -347,7 +347,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Integer repliedCount = 0;
|
|
|
// 未回复数量
|
|
|
Integer notReplyCount = 0;
|
|
|
- if (CollectionUtils.isEmpty(unreadIds)){
|
|
|
+ if (CollectionUtils.isEmpty(unreadIds)) {
|
|
|
return map;
|
|
|
}
|
|
|
List<List<Long>> idsArray = SplitArray.splitAry(unreadIds, SplitArray.QUERY_MAX_NUMBER);
|
|
|
@@ -383,7 +383,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Integer repliedCount = 0;
|
|
|
// 待送样数量
|
|
|
Integer notReplyCount = 0;
|
|
|
- if (CollectionUtils.isEmpty(unreadIds)){
|
|
|
+ if (CollectionUtils.isEmpty(unreadIds)) {
|
|
|
return map;
|
|
|
}
|
|
|
// 超过1000条需要拆分,不然会报错
|
|
|
@@ -431,7 +431,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
public List<Object[]> getVpaCount(String roleName) {
|
|
|
List<Long> ids = getUnreadIds(OrderType.vendorPerformanceAssess.name(), roleName);
|
|
|
List<Object[]> objects = new ArrayList<>();
|
|
|
- if (CollectionUtils.isEmpty(ids)){
|
|
|
+ if (CollectionUtils.isEmpty(ids)) {
|
|
|
return objects;
|
|
|
}
|
|
|
objects.add(new Object[]{ids.size(), "1"});
|
|
|
@@ -448,7 +448,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
public Map<String, Integer> getInquiryCount(String roleName) {
|
|
|
List<Long> unreadIds = getUnreadIds(OrderType.purcinquiry.name(), roleName);
|
|
|
Map<String, Integer> map = new HashMap<>(3);
|
|
|
- if (CollectionUtils.isEmpty(unreadIds)){
|
|
|
+ if (CollectionUtils.isEmpty(unreadIds)) {
|
|
|
return map;
|
|
|
}
|
|
|
// 已报价数量
|
|
|
@@ -486,7 +486,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Map<String, Integer> map = new HashMap<>(2);
|
|
|
// 待投标/带评标数量
|
|
|
Integer notReplyCount = 0;
|
|
|
- if (CollectionUtils.isEmpty(unreadIds)){
|
|
|
+ if (CollectionUtils.isEmpty(unreadIds)) {
|
|
|
return map;
|
|
|
}
|
|
|
// 客户需要显示待投标红点,供应商需要显示待评标红点
|
|
|
@@ -504,7 +504,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
notReplyCount = notReplyCount + purchaseTenderDao.getEvaluationCount(ids);
|
|
|
}
|
|
|
}
|
|
|
- } else if (Role.BUYER.equals(roleName)){
|
|
|
+ } else if (Role.BUYER.equals(roleName)) {
|
|
|
if (unreadIds.size() <= SplitArray.QUERY_MAX_NUMBER) {
|
|
|
notReplyCount = purchaseTenderDao.getTenterCount(unreadIds,
|
|
|
SystemSession.getUser().getEnterprise().getUu());
|
|
|
@@ -534,7 +534,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
@Override
|
|
|
public List<Object[]> getApCheckCount(String roleName) {
|
|
|
List<Long> ids = getUnreadIds(OrderType.apcheck.name(), roleName);
|
|
|
- if (CollectionUtils.isEmpty(ids)){
|
|
|
+ if (CollectionUtils.isEmpty(ids)) {
|
|
|
return new ArrayList<>();
|
|
|
}
|
|
|
return purchaseApCheckDao.getUnreadCountEveryStatus(ids);
|
|
|
@@ -554,7 +554,7 @@ public class OrderRedDotServiceImpl implements OrderRedDotService {
|
|
|
Integer repliedCount = 0;
|
|
|
// 待报价数量
|
|
|
Integer notReplyCount = 0;
|
|
|
- if (CollectionUtils.isEmpty(unreadIds)){
|
|
|
+ if (CollectionUtils.isEmpty(unreadIds)) {
|
|
|
return map;
|
|
|
}
|
|
|
List<List<Long>> idsArray = SplitArray.splitAry(unreadIds, SplitArray.QUERY_MAX_NUMBER);
|