1.能力使用申请应用系统查询增加查询自己部门上架应用限制
2.能力使用统计时间错误bug 3.部门列表查询bug修复
This commit is contained in:
parent
ddd1c3196a
commit
6375d433c6
|
@ -678,4 +678,12 @@ public class ResourceController {
|
|||
return new Result().ok(resourceService.getSquareList(jsonObject));
|
||||
}
|
||||
|
||||
@GetMapping("/getAppListByDept")
|
||||
@ApiOperation("/根据部门查询部门上架应用列表")
|
||||
@LogOperation("/根据部门查询部门上架应用列表")
|
||||
public Result getAppListByDept(String key) {
|
||||
return new Result().ok(resourceService.getAppListByDept(key));
|
||||
}
|
||||
|
||||
|
||||
}
|
|
@ -215,4 +215,6 @@ public interface ResourceDao extends BaseDao<ResourceEntity> {
|
|||
@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);
|
||||
|
||||
Integer getSquareListCount(@Param("type") String type, @Param("deptType") Integer deptType, @Param("area") String area);
|
||||
|
||||
List<Map> getAppListByDept(@Param("deptId") Long deptId, @Param("key") String key);
|
||||
}
|
|
@ -159,4 +159,7 @@ public interface ResourceService extends CrudService<ResourceEntity, ResourceDTO
|
|||
Object getPotentialList();
|
||||
|
||||
Object getSquareList(JSONObject jsonObject);
|
||||
|
||||
Object getAppListByDept(String key);
|
||||
|
||||
}
|
|
@ -2542,4 +2542,11 @@ public class ResourceServiceImpl extends CrudServiceImpl<ResourceDao, ResourceEn
|
|||
}};
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getAppListByDept(String key) {
|
||||
Long deptId = SecurityUser.getUser().getDeptId();
|
||||
|
||||
return resourceDao.getAppListByDept(deptId, key);
|
||||
}
|
||||
|
||||
}
|
|
@ -1938,7 +1938,7 @@
|
|||
tdr.NAME AS resourceName,
|
||||
dept.`name` AS resourceDeptName,
|
||||
tdr.type,
|
||||
DATE_FORMAT(tdr.create_date,'%Y-%m-%d %T') AS createDate,
|
||||
DATE_FORMAT(taa.create_date,'%Y-%m-%d %T') AS createDate,
|
||||
taa.approve_status AS approveStatus,
|
||||
taa.apply_flag AS applyNumber
|
||||
FROM
|
||||
|
@ -2270,4 +2270,21 @@
|
|||
</if>
|
||||
</select>
|
||||
|
||||
<select id="getAppListByDept" resultType="java.util.Map">
|
||||
SELECT
|
||||
tdr.id,
|
||||
tdr.NAME,
|
||||
tdr.create_date
|
||||
FROM
|
||||
tb_data_resource tdr
|
||||
WHERE
|
||||
1 = 1
|
||||
AND tdr.del_flag = 0
|
||||
AND tdr.dept_id = #{deptId}
|
||||
<if test="key != null and key != ''">
|
||||
AND tdr.name like CONCAT('%', #{key}, '%')
|
||||
</if>
|
||||
ORDER BY create_date DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
|
@ -7,12 +7,11 @@
|
|||
select t1.*,(select t2.name from sys_dept t2 where t2.id=t1.pid)parentName from sys_dept t1
|
||||
where 1 = 1 AND name != '访客部门'
|
||||
<if test="deptIdList != null">
|
||||
t1.id in
|
||||
AND t1.id in
|
||||
<foreach item="id" collection="deptIdList" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
order by t1.sort asc
|
||||
</select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue