update code

dev_xds
haha 2023-08-10 23:37:19 +08:00
parent f7e9210a38
commit e370203b13
8 changed files with 31 additions and 3 deletions

View File

@ -84,7 +84,11 @@ public class LogAspect
try try
{ {
// 获取当前的用户 // 获取当前的用户
LoginUser loginUser = SecurityUtils.getLoginUser(); LoginUser loginUser = null;
if(!SecurityUtils.getAuthentication().getPrincipal().equals("anonymousUser")) {
loginUser = SecurityUtils.getLoginUser();
}
// *========数据库日志=========*// // *========数据库日志=========*//
SysOperLog operLog = new SysOperLog(); SysOperLog operLog = new SysOperLog();

View File

@ -112,7 +112,7 @@
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="200" fixed="right">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button v-if="1==2"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"

View File

@ -44,4 +44,13 @@ public class ProjectController {
return AjaxResult.success(list); return AjaxResult.success(list);
} }
/**
*
* @return
*/
@GetMapping("getProgressProjects")
public AjaxResult getProgressProjects(){
return AjaxResult.success(isurProjectService.selectProgressProjects());
}
} }

View File

@ -73,5 +73,7 @@ public interface SurProjectMapper
* @return * @return
*/ */
public List<SurProject> groupByLevel(SurProject surProject); public List<SurProject> groupByLevel(SurProject surProject);
public List<SurProject> selectProgressProjects();
} }

View File

@ -58,4 +58,6 @@ public interface ISurProjectService
* @return * @return
*/ */
public int deleteSurProjectById(Long id); public int deleteSurProjectById(Long id);
public List<SurProject> selectProgressProjects();
} }

View File

@ -94,4 +94,9 @@ public class SurProjectServiceImpl implements ISurProjectService
{ {
return surProjectMapper.deleteSurProjectById(id); return surProjectMapper.deleteSurProjectById(id);
} }
@Override
public List<SurProject> selectProgressProjects() {
return surProjectMapper.selectProgressProjects();
}
} }

View File

@ -309,4 +309,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
GROUP BY dict_value,dict_label GROUP BY dict_value,dict_label
) a RIGHT JOIN sys_dict_data b ON a.dict_value=b.dict_value WHERE b.dict_type='project_level' ORDER BY cnt DESC ) a RIGHT JOIN sys_dict_data b ON a.dict_value=b.dict_value WHERE b.dict_type='project_level' ORDER BY cnt DESC
</select> </select>
<select id="selectProgressProjects" parameterType="SurProject" resultMap="SurProjectResult">
<include refid="selectSurProjectVo"/>
where progressVisible = 0
order by projectSort,projectName
</select>
</mapper> </mapper>

View File

@ -209,7 +209,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
) AND infotype=#{infoType} ) AND infotype=#{infoType}
<if test="roleType > 0">AND roletype=#{roleType}</if> <if test="roleType > 0">AND roletype=#{roleType}</if>
GROUP BY danger_type) b GROUP BY danger_type) b
ON a.dict_value=b.danger_type ORDER BY cnt DESC,a.dict_value ON a.dict_value=b.danger_type ORDER BY cnt DESC,a.dict_value+0
</select> </select>
<select id="selectSummaryByProject" parameterType="SmzSspProblemmodify" resultMap="SmzSspProblemmodifyResult"> <select id="selectSummaryByProject" parameterType="SmzSspProblemmodify" resultMap="SmzSspProblemmodifyResult">