Merge remote-tracking branch 'origin/develop_master' into develop_master
This commit is contained in:
@@ -138,7 +138,7 @@ stand.edit.file.path = /data/slrs/file/
|
|||||||
file.downloadUrl=https://srms.foton.com.cn/file/
|
file.downloadUrl=https://srms.foton.com.cn/file/
|
||||||
|
|
||||||
#上传文件白名单-以,分隔
|
#上传文件白名单-以,分隔
|
||||||
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg,pptx,ppt
|
upload.file.white.lists = doc,docx,xls,xlsx,pdf,PDF,png,jpg,pptx,ppt,pdg
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# elasticsearch 配置
|
# elasticsearch 配置
|
||||||
|
|||||||
+18
-18
@@ -151,12 +151,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
|||||||
qw.isNull("PARENT_ID");
|
qw.isNull("PARENT_ID");
|
||||||
List<TsResource> children = iTsResourceService.list(qw);
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
// List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||||
if (!getMenuIdList.isEmpty()) {
|
// if (!getMenuIdList.isEmpty()) {
|
||||||
page.setMenuRoleList(getMenuIdList);
|
// page.setMenuRoleList(getMenuIdList);
|
||||||
} else {
|
// } else {
|
||||||
page.setMenuRoleList(null);
|
// page.setMenuRoleList(null);
|
||||||
}
|
// }
|
||||||
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
if (ids != null && !ids.isEmpty()) {
|
if (ids != null && !ids.isEmpty()) {
|
||||||
page.setMenuAllChildrenIdList(ids);
|
page.setMenuAllChildrenIdList(ids);
|
||||||
@@ -180,12 +180,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
|||||||
qw.isNull("PARENT_ID");
|
qw.isNull("PARENT_ID");
|
||||||
List<TsResource> children = iTsResourceService.list(qw);
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
// List<String> getMenuIdList = tsUserService.getResourceUserId(userId);
|
||||||
if (!getMenuIdList.isEmpty()) {
|
// if (!getMenuIdList.isEmpty()) {
|
||||||
page.setMenuRoleList(getMenuIdList);
|
// page.setMenuRoleList(getMenuIdList);
|
||||||
} else {
|
// } else {
|
||||||
page.setMenuRoleList(null);
|
// page.setMenuRoleList(null);
|
||||||
}
|
// }
|
||||||
List<String> ids = iTsResourceService.getChildMenuList(userId);
|
List<String> ids = iTsResourceService.getChildMenuList(userId);
|
||||||
if (ids != null && !ids.isEmpty()) {
|
if (ids != null && !ids.isEmpty()) {
|
||||||
page.setMenuAllChildrenIdList(ids);
|
page.setMenuAllChildrenIdList(ids);
|
||||||
@@ -429,12 +429,12 @@ public class SarLawsStandInfoServiceImpl extends ServiceImpl<SarLawsStandInfoDao
|
|||||||
qw.isNull("PARENT_ID");
|
qw.isNull("PARENT_ID");
|
||||||
List<TsResource> children = iTsResourceService.list(qw);
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
// List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
// if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
page.setMenuRoleList(getMenuIdList);
|
// page.setMenuRoleList(getMenuIdList);
|
||||||
} else {
|
// } else {
|
||||||
page.setMenuRoleList(null);
|
// page.setMenuRoleList(null);
|
||||||
}
|
// }
|
||||||
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
if (ids != null && !ids.isEmpty()) {
|
if (ids != null && !ids.isEmpty()) {
|
||||||
page.setMenuAllChildrenIdList(ids);
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
|||||||
+3
-6
@@ -13,10 +13,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.Arrays;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.UUID;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* <p>
|
* <p>
|
||||||
@@ -44,7 +41,7 @@ public class WgCommitteeServiceImpl extends ServiceImpl<WgCommitteeDao, WgCommit
|
|||||||
wgCommittee.setCommitteer(id);
|
wgCommittee.setCommitteer(id);
|
||||||
List<WgCommitteeUser> list=new ArrayList<>();
|
List<WgCommitteeUser> list=new ArrayList<>();
|
||||||
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()) {
|
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()) {
|
||||||
List<String> res=new ArrayList<>(Arrays.asList(wgCommittee.getCommitteeIds().split(",")));
|
List<String> res=new ArrayList<>(Collections.singletonList(wgCommittee.getCommitteeIds()));
|
||||||
res.stream().forEach(s -> list.add(new WgCommitteeUser().setCommitterId(s).setId(wgCommittee.getCommitteer())));
|
res.stream().forEach(s -> list.add(new WgCommitteeUser().setCommitterId(s).setId(wgCommittee.getCommitteer())));
|
||||||
iWgCommitteeUserService.saveOrUpdateBatch(list);
|
iWgCommitteeUserService.saveOrUpdateBatch(list);
|
||||||
}
|
}
|
||||||
@@ -61,7 +58,7 @@ public class WgCommitteeServiceImpl extends ServiceImpl<WgCommitteeDao, WgCommit
|
|||||||
iWgCommitteeService.updateById(wgCommittee);
|
iWgCommitteeService.updateById(wgCommittee);
|
||||||
List<WgCommitteeUser> save=new ArrayList<>();
|
List<WgCommitteeUser> save=new ArrayList<>();
|
||||||
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()){
|
if (null!=wgCommittee.getCommitteeIds() && !wgCommittee.getCommitteeIds().isEmpty()){
|
||||||
List<String> res=new ArrayList<>(Arrays.asList(wgCommittee.getCommitteeIds()));
|
List<String> res=new ArrayList<>(Collections.singletonList(wgCommittee.getCommitteeIds()));
|
||||||
res.forEach(s ->
|
res.forEach(s ->
|
||||||
save.add(new WgCommitteeUser().setId(wgCommittee.getCommitteer()).setCommitterId(s))
|
save.add(new WgCommitteeUser().setId(wgCommittee.getCommitteer()).setCommitterId(s))
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user