@CacheConfig(cacheNames="RightResCache") @Service @Transactional(rollbackFor=java.lang.Exception.class) public class CoreResServiceImpl extends BaseServiceImpl<CoreRes> implements CoreResService
构造器和说明 |
---|
CoreResServiceImpl() |
限定符和类型 | 方法和说明 |
---|---|
CoreRes |
addEntity(CoreRes coreRes)
新增实体并返回实体
|
void |
delAndInsertCoreresmx(CoreRes coreRes)
先删除后插入
|
void |
delCoreresmx(CoreRes coreRes)
删除明细表,需要传资源id,orgid
|
(专用程序包) void |
doPageModelRightItem(com.alibaba.fastjson.JSONObject right,
java.lang.String menuId,
java.lang.String functionId)
处理单个权限,不存在就新增,存在就更新
|
void |
doPageModelRights(java.util.Map<java.lang.String,java.lang.Object> map)
处理表单模型的权限标签
|
java.util.List<CoreRes> |
findByIds(java.util.List<java.lang.String> modelList)
通过ids查询资源
|
java.util.List<java.lang.String> |
findByParents(java.lang.String id)
通过parents查询资源
|
int |
findMaxFloatSort()
查询最大的float
|
java.util.List<CoreRes> |
findMenuData(java.util.Map<java.lang.String,java.lang.Object> map)
查询菜单
|
java.util.List<CoreRes> |
findMenuLinkModel(java.util.Map<java.lang.String,java.lang.Object> map)
查询菜单资源与单位的树形数据
|
java.util.List<CoreRes> |
findNotLoginFunctions(java.lang.String url)
查询路径对应的不用登录的能资源
|
java.util.List<CoreRes> |
findSystem()
查询系统
|
CoreRes |
getEntity(java.lang.String id)
根据Id获取实体
|
int |
modify(CoreRes coreRes)
更新实体
|
void |
removeById(CoreRes coreRes)
删除资源
|
void |
updCoreresmx(CoreRes coreRes)
更新资源明细
|
add, confirm, findAll, findList, removeById, removeByIds, saveJdbc, startProcess, startProcess
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, confirm, findAll, findList, removeById, removeByIds, startProcess, startProcess
@Transactional(propagation=REQUIRED) public java.util.List<CoreRes> findMenuData(java.util.Map<java.lang.String,java.lang.Object> map)
CoreResService
findMenuData
在接口中 CoreResService
map
- 查询参数@CacheEvict(allEntries=true) public void removeById(CoreRes coreRes) throws java.lang.Exception
CoreResService
removeById
在接口中 CoreResService
coreRes
- 资源实体实例java.lang.Exception
- 出错会抛出异常@CacheEvict(allEntries=true) public int modify(CoreRes coreRes)
BaseService
modify
在接口中 BaseService<CoreRes>
modify
在类中 BaseServiceImpl<CoreRes>
coreRes
- 实体对象@Cacheable(key="#id") public CoreRes getEntity(java.lang.String id) throws java.lang.Exception
BaseService
getEntity
在接口中 BaseService<CoreRes>
getEntity
在类中 BaseServiceImpl<CoreRes>
id
- 实体idjava.lang.Exception
- 出错会抛出异常@Caching(evict=@CacheEvict(cacheNames="RightResCache",allEntries=true)) public void doPageModelRights(java.util.Map<java.lang.String,java.lang.Object> map)
doPageModelRights
在接口中 CoreResService
map
- 过滤参数map MODELD_VALUE,MENUID,FUNCTIONIDvoid doPageModelRightItem(com.alibaba.fastjson.JSONObject right, java.lang.String menuId, java.lang.String functionId)
right
- menuId
- 菜单资源idfunctionId
- 功能资源idpublic void updCoreresmx(CoreRes coreRes)
CoreResService
updCoreresmx
在接口中 CoreResService
coreRes
- 资源实体实例public void delCoreresmx(CoreRes coreRes)
CoreResService
delCoreresmx
在接口中 CoreResService
coreRes
- 资源实体实例public void delAndInsertCoreresmx(CoreRes coreRes)
CoreResService
delAndInsertCoreresmx
在接口中 CoreResService
coreRes
- 资源实例@CacheEvict(allEntries=true) public CoreRes addEntity(CoreRes coreRes) throws java.lang.Exception
BaseService
addEntity
在接口中 BaseService<CoreRes>
addEntity
在类中 BaseServiceImpl<CoreRes>
coreRes
- 实体对象java.lang.Exception
- 出错会抛出异常@Transactional(propagation=REQUIRED) public int findMaxFloatSort()
CoreResService
findMaxFloatSort
在接口中 CoreResService
@Transactional(propagation=REQUIRED) public java.util.List<CoreRes> findSystem()
CoreResService
findSystem
在接口中 CoreResService
@Transactional(propagation=REQUIRED) public java.util.List<CoreRes> findMenuLinkModel(java.util.Map<java.lang.String,java.lang.Object> map)
CoreResService
findMenuLinkModel
在接口中 CoreResService
map
- 查询参数map@Transactional(propagation=REQUIRED) public java.util.List<CoreRes> findByIds(java.util.List<java.lang.String> modelList)
CoreResService
findByIds
在接口中 CoreResService
modelList
- id List@Transactional(propagation=REQUIRED) public java.util.List<java.lang.String> findByParents(java.lang.String id)
CoreResService
findByParents
在接口中 CoreResService
id
- 需要与like SYS_PARENTS@Cacheable(key="#url") @Transactional(propagation=REQUIRED) public java.util.List<CoreRes> findNotLoginFunctions(java.lang.String url)
CoreResService
findNotLoginFunctions
在接口中 CoreResService
url
- 功能资源的请求url