diff --git a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java index c6f02a0c..b4b2b930 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/controller/ResourceController.java @@ -203,6 +203,7 @@ public class ResourceController { List ids = jdbcTemplate.queryForList("SELECT id FROM tb_data_resource", Long.class); ids.forEach(id -> { ResourceDTO data = resourceService.selectWithAttrs(id); + data.setUpdateDate(new Date()); resourceService.update(data); }); }, executor); diff --git a/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java index b1aaf7fb..e300c07f 100644 --- a/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/sys/service/impl/SysUserServiceImpl.java @@ -97,6 +97,8 @@ public class SysUserServiceImpl extends BaseServiceImpl list(Map params) { + //转换成like + paramsToLike(params, "username", "real_name"); // 普通管理员,只能查询所属部门及子部门的数据 UserDetail user = SecurityUser.getUser(); if (user.getSuperAdmin() == SuperAdminEnum.NO.value()) { diff --git a/renren-admin/src/main/resources/application.yml b/renren-admin/src/main/resources/application.yml index be426500..18f68411 100644 --- a/renren-admin/src/main/resources/application.yml +++ b/renren-admin/src/main/resources/application.yml @@ -18,7 +18,7 @@ big_date: assignee_meet_role_id: 1576849766277849089 # 需要进行统计数目的资源 type/需要进行统计申请的资源类型 applyType census: - type: 组件服务,应用资源,基础设施,数据资源,知识库 + type: 应用资源,组件服务,基础设施,数据资源,知识库 applyType: 应用资源,业务组件,图层服务,开发组件,智能算法 # 海信网关 hisense: diff --git a/renren-admin/src/main/resources/mapper/notice/SysNoticeDao.xml b/renren-admin/src/main/resources/mapper/notice/SysNoticeDao.xml index a8fedc1c..c8928bad 100644 --- a/renren-admin/src/main/resources/mapper/notice/SysNoticeDao.xml +++ b/renren-admin/src/main/resources/mapper/notice/SysNoticeDao.xml @@ -25,6 +25,7 @@ - update sys_notice set apply_state = #{applyState} where receiver_type_ids like concat('%', #{userId}, '%') and apply_id=#{applyId} + update sys_notice set apply_state = #{applyState} where receiver_type_ids like concat('%', #{userId}, '%') and + apply_id=#{applyId} \ No newline at end of file diff --git a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml index 2d2207bc..95346ade 100644 --- a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml +++ b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml @@ -1639,7 +1639,22 @@ SELECT - tdr.id, - tdr.NAME, - tdr.create_date + tdr.id, + tdr.NAME, + tdr.create_date FROM - tb_data_resource tdr + tb_data_resource tdr WHERE - 1 = 1 - AND tdr.del_flag = 0 - AND tdr.dept_id = #{deptId} - - AND tdr.name like CONCAT('%', #{key}, '%') - + 1 = 1 + AND tdr.del_flag = 0 + AND tdr.dept_id = #{deptId} + + AND tdr.name like CONCAT('%', #{key}, '%') + ORDER BY create_date DESC diff --git a/renren-admin/src/main/resources/mapper/sys/SysDeptDao.xml b/renren-admin/src/main/resources/mapper/sys/SysDeptDao.xml index f05608a6..54e7a2b0 100644 --- a/renren-admin/src/main/resources/mapper/sys/SysDeptDao.xml +++ b/renren-admin/src/main/resources/mapper/sys/SysDeptDao.xml @@ -7,7 +7,7 @@ select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1 where 1 = 1 AND name != '访客部门' - AND t1.id in + AND t1.id in #{id}