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