|
@@ -754,6 +754,8 @@ public class QwSopServiceImpl implements IQwSopService
|
|
List<QwSop> qwSopList = qwSops.stream().filter(e -> e.getType() == 2 && e.getFilterMode() == 1).collect(Collectors.toList());
|
|
List<QwSop> qwSopList = qwSops.stream().filter(e -> e.getType() == 2 && e.getFilterMode() == 1).collect(Collectors.toList());
|
|
List<QwSop> wxSopList = qwSops.stream().filter(e -> e.getType() == 1).collect(Collectors.toList());
|
|
List<QwSop> wxSopList = qwSops.stream().filter(e -> e.getType() == 1).collect(Collectors.toList());
|
|
List<QwSop> chatSopList = qwSops.stream().filter(e -> e.getType() == 2 && e.getFilterMode() == 2).collect(Collectors.toList());
|
|
List<QwSop> chatSopList = qwSops.stream().filter(e -> e.getType() == 2 && e.getFilterMode() == 2).collect(Collectors.toList());
|
|
|
|
+ List<String> areadyListAll = new ArrayList<>();
|
|
|
|
+ List<String> toBeSentAll = new ArrayList<>();
|
|
|
|
|
|
if(!wxSopList.isEmpty()){
|
|
if(!wxSopList.isEmpty()){
|
|
// 筛选出 status == 1 的 IDs
|
|
// 筛选出 status == 1 的 IDs
|
|
@@ -773,12 +775,11 @@ public class QwSopServiceImpl implements IQwSopService
|
|
if (toBeSent.length > 0) {
|
|
if (toBeSent.length > 0) {
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
if (i > 0) {
|
|
if (i > 0) {
|
|
- return R.ok().put("suc",toBeSent).put("err",areadyList);
|
|
|
|
- }else {
|
|
|
|
- return R.error();
|
|
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
|
|
+ toBeSentAll.addAll(Arrays.asList(toBeSent));
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
- return R.error().put("err",areadyList);
|
|
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -801,12 +802,12 @@ public class QwSopServiceImpl implements IQwSopService
|
|
if (toBeSent.length > 0) {
|
|
if (toBeSent.length > 0) {
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
if (i > 0) {
|
|
if (i > 0) {
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
|
|
+ toBeSentAll.addAll(Arrays.asList(toBeSent));
|
|
return R.ok().put("suc",toBeSent).put("err",areadyList);
|
|
return R.ok().put("suc",toBeSent).put("err",areadyList);
|
|
- }else {
|
|
|
|
- return R.error();
|
|
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
- return R.error().put("err",areadyList);
|
|
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(!chatSopList.isEmpty()){
|
|
if(!chatSopList.isEmpty()){
|
|
@@ -828,15 +829,14 @@ public class QwSopServiceImpl implements IQwSopService
|
|
if (toBeSent.length > 0) {
|
|
if (toBeSent.length > 0) {
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
int i = qwSopMapper.updateStatusQwSopById(toBeSent);
|
|
if (i > 0) {
|
|
if (i > 0) {
|
|
- return R.ok().put("suc",toBeSent).put("err",areadyList);
|
|
|
|
- }else {
|
|
|
|
- return R.error();
|
|
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
|
|
+ toBeSentAll.addAll(Arrays.asList(toBeSent));
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|
|
- return R.error().put("err",areadyList);
|
|
|
|
|
|
+ areadyListAll.addAll(areadyList);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- return R.error();
|
|
|
|
|
|
+ return R.ok().put("suc",toBeSentAll).put("err",areadyListAll);
|
|
}
|
|
}
|
|
|
|
|
|
@Override
|
|
@Override
|