|
|
@@ -158,12 +158,13 @@ public class NewAdminServiceImpl extends BaseMybatisDao<AdminMapper> implements
|
|
|
|
|
|
private void updatePublicReviewer(String aid ,String reviewerIds,Integer type) {
|
|
|
String[] split = reviewerIds.split(",");
|
|
|
- if (split.length==0){
|
|
|
- adminPublicReviewerMapper.deleteByAid(aid,type);
|
|
|
+ if (split.length==1){
|
|
|
+ if (split[0].isEmpty()){
|
|
|
+ adminPublicReviewerMapper.deleteByAid(aid,type);
|
|
|
+ }
|
|
|
}else {
|
|
|
List<AdminPublicReviewerBo> list = adminPublicReviewerMapper.selectByAid(aid);
|
|
|
- if (type==0)list=list.stream().filter(e -> e.getType() == 0).collect(Collectors.toList());
|
|
|
- else list=list.stream().filter(e -> e.getType() == 1).collect(Collectors.toList());
|
|
|
+ list=list.stream().filter(e -> e.getType() == type).collect(Collectors.toList());
|
|
|
//
|
|
|
for (AdminPublicReviewerBo e : list) {
|
|
|
boolean flag = false;
|