首页统计
parent
ededca0cff
commit
7f84d5bfe7
2
pom.xml
2
pom.xml
|
|
@ -89,7 +89,7 @@
|
|||
<id>prod</id>
|
||||
<properties>
|
||||
<profiles.active>prod</profiles.active>
|
||||
<logging.level>warn</logging.level>
|
||||
<logging.level>info</logging.level>
|
||||
<monitor.username>ruoyi</monitor.username>
|
||||
<monitor.password>123456</monitor.password>
|
||||
<!-- 打包 prod 时自动跳过测试 -->
|
||||
|
|
|
|||
|
|
@ -46,31 +46,31 @@ public class HomeController {
|
|||
public R<HashMap> index(PageQuery pageQuery) {
|
||||
HashMap result = new HashMap();
|
||||
LoginUser user = LoginHelper.getLoginUser();
|
||||
BizStatCateBo cateBo = new BizStatCateBo();
|
||||
Map<String, Object> params = cateBo.getParams();
|
||||
|
||||
params.put("beginTime", "");
|
||||
params.put("endTime", "");
|
||||
bizStatCateService.statByDate(cateBo);
|
||||
// BizStatCateBo cateBo = new BizStatCateBo();
|
||||
// Map<String, Object> params = cateBo.getParams();
|
||||
//
|
||||
// params.put("beginTime", "");
|
||||
// params.put("endTime", "");
|
||||
// bizStatCateService.statByDate(cateBo);
|
||||
|
||||
|
||||
if (user.getRolePermission().contains("report_manager")){
|
||||
// if (user.getRolePermission().contains("report_manager")){
|
||||
BizReportInfoBo bo = new BizReportInfoBo();
|
||||
bo.setOldType("dcl");
|
||||
bo.setOldTable("xxbs");
|
||||
result.put("dbxxbslist", bizReportInfoService.queryPageList(bo, pageQuery));
|
||||
}else{
|
||||
result.put("dbxxbslist", null);
|
||||
}
|
||||
// }else{
|
||||
// result.put("dbxxbslist", null);
|
||||
// }
|
||||
|
||||
if (user.getRolePermission().contains("report_user")){
|
||||
// if (user.getRolePermission().contains("report_user")){
|
||||
BizReportInfoBo bo2 = new BizReportInfoBo();
|
||||
bo2.setOldType("dcl");
|
||||
bo2.setOldTable("xxcl");
|
||||
result.put("dbxxcllist", bizReportInfoService.queryPageList(bo2, pageQuery));
|
||||
}else{
|
||||
result.put("dbxxcllist", null);
|
||||
}
|
||||
// }else{
|
||||
// result.put("dbxxcllist", null);
|
||||
// }
|
||||
|
||||
return R.ok(result);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -119,6 +119,12 @@ public class SysUserController extends BaseController {
|
|||
shortName = shortName.equals("") ? deptName : shortName;
|
||||
user.setDeptShortName(shortName);
|
||||
|
||||
SysDeptVo wdept = deptService.selectDeptById(user.getWorkDeptId());
|
||||
String wshortName = Helper.NStr(wdept.getShortName());
|
||||
String wdeptName = Helper.NStr(wdept.getDeptName());
|
||||
wshortName = wshortName.equals("") ? wdeptName : wshortName;
|
||||
user.setDeptShortName(wshortName);
|
||||
|
||||
if (ObjectUtil.isNull(user)) {
|
||||
return R.fail("没有权限访问用户数据!");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -156,6 +156,10 @@ public class SysUserVo implements Serializable {
|
|||
* 部门简称
|
||||
*/
|
||||
private String deptShortName;
|
||||
/**
|
||||
* 工作部门简称
|
||||
*/
|
||||
private String workDeptShortName;
|
||||
|
||||
/**
|
||||
* 显示顺序
|
||||
|
|
|
|||
Loading…
Reference in New Issue