feat: There is no way the
This commit is contained in:
+2
@@ -21,6 +21,8 @@ public interface ISarStandardsInfoService extends IService<SarStandardsInfo> {
|
|||||||
|
|
||||||
List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception;
|
List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception;
|
||||||
|
|
||||||
|
List<SarStandardsInfo> getSarStandardsInfoPageBak(SarStandardsInfoEOPage page) throws Exception;
|
||||||
|
|
||||||
void createSarStandardsInfo(SarStandardsInfo sarStandardsInfoEO) throws Exception;
|
void createSarStandardsInfo(SarStandardsInfo sarStandardsInfoEO) throws Exception;
|
||||||
|
|
||||||
int updateSarStandardsInfo(SarStandardsInfo sarStandardsInfoEO) throws Exception;
|
int updateSarStandardsInfo(SarStandardsInfo sarStandardsInfoEO) throws Exception;
|
||||||
|
|||||||
+29
@@ -284,6 +284,7 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
* @Param: [page]
|
* @Param: [page]
|
||||||
* @Return: java.util.List<com.adc.da.lawss.entity.SarStandardsInfoEO>
|
* @Return: java.util.List<com.adc.da.lawss.entity.SarStandardsInfoEO>
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception {
|
public List<SarStandardsInfo> getSarStandardsInfoPage(SarStandardsInfoEOPage page) throws Exception {
|
||||||
//查询当前登录人角色拥有权限的菜单
|
//查询当前登录人角色拥有权限的菜单
|
||||||
if(page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())){
|
if(page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())){
|
||||||
@@ -311,6 +312,34 @@ public class SarStandardsInfoServiceImpl extends ServiceImpl<SarStandardsInfoDao
|
|||||||
return sarlist;
|
return sarlist;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<SarStandardsInfo> getSarStandardsInfoPageBak(SarStandardsInfoEOPage page) throws Exception {
|
||||||
|
//查询当前登录人角色拥有权限的菜单
|
||||||
|
if(page.getMenuId() != null && page.getUserId() != null && StringUtils.isNotBlank(page.getUserId())){
|
||||||
|
QueryWrapper<TsResource> qw = new QueryWrapper<>();
|
||||||
|
qw.eq("ID",page.getMenuId());
|
||||||
|
qw.isNull("PARENT_ID");
|
||||||
|
List<TsResource> children = iTsResourceService.list(qw);
|
||||||
|
if(children.isEmpty() && !page.getMenuId().equals("nomenu")){
|
||||||
|
List<String> getMenuIdList = tsUserService.getResourceUserId(page.getUserId());
|
||||||
|
if (getMenuIdList != null && !getMenuIdList.isEmpty()) {
|
||||||
|
page.setMenuRoleList(getMenuIdList);
|
||||||
|
} else {
|
||||||
|
page.setMenuRoleList(null);
|
||||||
|
}
|
||||||
|
List<String> ids = iTsResourceService.getChildMenuList(page.getMenuId());
|
||||||
|
if (ids != null && !ids.isEmpty()) {
|
||||||
|
page.setMenuAllChildrenIdList(ids);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Integer rowCount = dao.getSarStandardsInfoCount(page);
|
||||||
|
page.getPager().setRowCount(rowCount);
|
||||||
|
List<SarStandardsInfo> sarlist = dao.getSarStandardsInfoPage(page);
|
||||||
|
attrInfo(sarlist);
|
||||||
|
return sarlist;
|
||||||
|
}
|
||||||
|
|
||||||
public void attrInfo(List<SarStandardsInfo> sarlist) throws Exception {
|
public void attrInfo(List<SarStandardsInfo> sarlist) throws Exception {
|
||||||
for (SarStandardsInfo row : sarlist) {
|
for (SarStandardsInfo row : sarlist) {
|
||||||
attrInfoDetails(row);
|
attrInfoDetails(row);
|
||||||
|
|||||||
Reference in New Issue
Block a user