基于云平台系统功能调整
This commit is contained in:
@@ -72,6 +72,7 @@
|
||||
sys_dict_type sys_dict_type
|
||||
WHERE sys_dict_data.type_id = sys_dict_type.id
|
||||
AND sys_dict_type.code = #{dictTypeCode}
|
||||
and sys_dict_type.state = 1
|
||||
and sys_dict_data.state = 1
|
||||
order by sort
|
||||
</select>
|
||||
|
||||
@@ -37,7 +37,7 @@ public class PqDashboardPageServiceImpl extends ServiceImpl<PqDashboardPageMappe
|
||||
@Override
|
||||
public Boolean addDashboard(PqDashboardPageParam pqDashboardPageParam) {
|
||||
PqDashboardPage pqDashboardPage = new PqDashboardPage();
|
||||
// checkName(pqDashboardPageParam,false);
|
||||
checkName(pqDashboardPageParam,false);
|
||||
|
||||
BeanUtils.copyProperties(pqDashboardPageParam,pqDashboardPage);
|
||||
//根据前端传递状态赋值
|
||||
@@ -50,7 +50,7 @@ public class PqDashboardPageServiceImpl extends ServiceImpl<PqDashboardPageMappe
|
||||
@Override
|
||||
public Boolean updateDashboard(PqDashboardPageParam.UpdatePqDashboardPageParam updatePqDashboardPageParam) {
|
||||
PqDashboardPage pqDashboardPage = new PqDashboardPage();
|
||||
// checkName(updatePqDashboardPageParam,true);
|
||||
checkName(updatePqDashboardPageParam,true);
|
||||
BeanUtils.copyProperties(updatePqDashboardPageParam,pqDashboardPage);
|
||||
this.updateById(pqDashboardPage);
|
||||
|
||||
@@ -122,7 +122,8 @@ public class PqDashboardPageServiceImpl extends ServiceImpl<PqDashboardPageMappe
|
||||
private void checkName(PqDashboardPageParam pqDashboardPageParam, boolean isExcludeSelf) {
|
||||
LambdaQueryWrapper<PqDashboardPage> queryWrapper = new LambdaQueryWrapper<>();
|
||||
queryWrapper
|
||||
.eq(PqDashboardPage::getPageName, pqDashboardPageParam.getPageName());
|
||||
.eq(PqDashboardPage::getPageName, pqDashboardPageParam.getPageName())
|
||||
.eq(PqDashboardPage::getUserId, RequestUtil.getUserIndex());
|
||||
//更新的时候,需排除当前记录
|
||||
if (isExcludeSelf) {
|
||||
if (pqDashboardPageParam instanceof PqDashboardPageParam.UpdatePqDashboardPageParam) {
|
||||
|
||||
Reference in New Issue
Block a user