diff --git a/config/db/V7.0__enke_hostinfo_add_table.sql b/config/db/V7.0__enke_hostinfo_add_table.sql index 9a4b6e86..e966f635 100644 --- a/config/db/V7.0__enke_hostinfo_add_table.sql +++ b/config/db/V7.0__enke_hostinfo_add_table.sql @@ -39,6 +39,16 @@ VALUES (11, '市公安局', '市公安局', '127.0.0.1', '127.0.0.1', '2022-09-1 INSERT INTO `enke_hostinfo` VALUES (12, '市交通运输局', '市交通运输局', '127.0.0.1', '127.0.0.1', '2022-09-11 09:20:07'); INSERT INTO `enke_hostinfo` -VALUES (13, '一网统揽平台组', '一网统揽平台组', '127.0.0.1', '127.0.0.1', '2022-09-10 09:20:07'); +VALUES (13, '一网统揽平台组', '一网统揽平台组', '127.0.0.1', '127.0.0.1', '2022-09-29 09:20:07'); INSERT INTO `enke_hostinfo` -VALUES (14, '青岛市一网统揽项目组', '青岛市一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-09 09:20:07'); +VALUES (14, '青岛市一网统揽项目组', '青岛市一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-30 09:20:07'); +INSERT INTO `enke_hostinfo` +VALUES (15, '市北区一网统揽项目组', '市北区一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-28 09:20:07'); +INSERT INTO `enke_hostinfo` +VALUES (16, '李沧区一网统揽项目组', '李沧区一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-27 09:20:07'); +INSERT INTO `enke_hostinfo` +VALUES (17, '崂山区一网统揽项目组', '崂山区一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-26 09:20:07'); +INSERT INTO `enke_hostinfo` +VALUES (18, ' 西海岸新区一网统揽项目组', ' 西海岸新区一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-25 09:20:07'); +INSERT INTO `enke_hostinfo` +VALUES (19, ' 城阳区一网统揽项目组', ' 城阳区一网统揽项目组', '127.0.0.1', '127.0.0.1', '2022-09-24 09:20:07'); diff --git a/renren-admin/src/main/java/io/renren/modules/activiti/service/impl/ActivitiServiceImpl.java b/renren-admin/src/main/java/io/renren/modules/activiti/service/impl/ActivitiServiceImpl.java index 692a59cf..e0db8444 100644 --- a/renren-admin/src/main/java/io/renren/modules/activiti/service/impl/ActivitiServiceImpl.java +++ b/renren-admin/src/main/java/io/renren/modules/activiti/service/impl/ActivitiServiceImpl.java @@ -93,16 +93,16 @@ public class ActivitiServiceImpl extends BaseServiceImpl 0) { - builder.append(duration.toDays() + "d "); - builder.append(duration.minus(Duration.ofDays(duration.toDays())).toHours() + "h"); + builder.append(duration.toDays() + "天 "); + builder.append(duration.minus(Duration.ofDays(duration.toDays())).toHours() + "时"); } else if (duration.toHours() > 0) { - builder.append(duration.toHours() + "h "); - builder.append(duration.minus(Duration.ofHours(duration.toHours())).toMinutes() + "m"); + builder.append(duration.toHours() + "时 "); + builder.append(duration.minus(Duration.ofHours(duration.toHours())).toMinutes() + "分"); } else if (duration.toMinutes() > 0) { - builder.append(duration.toMinutes() + "m "); - builder.append(duration.minus(Duration.ofMinutes(duration.toMinutes())).getSeconds() + "s"); + builder.append(duration.toMinutes() + "分 "); + builder.append(duration.minus(Duration.ofMinutes(duration.toMinutes())).getSeconds() + "秒"); } else { - builder.append(second + "s"); + builder.append(second + "秒"); } return builder.toString(); } diff --git a/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java b/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java index 29ff7cbb..e3f09ccc 100644 --- a/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java +++ b/renren-admin/src/main/java/io/renren/modules/demanData/listener/DemandDataListener.java @@ -146,6 +146,7 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti logger.error("未查到该部门对应的{} ", roleName); taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } else { // 填入大数据审批人 logger.error("大数据局名称:{}", bigDateDeptName); @@ -157,10 +158,12 @@ public class DemandDataListener implements TaskListener, ExecutionListener, Acti logger.error("大数据审批人id:{}", userDTO.getId()); taskService.setAssignee(delegateTask.getId(), userDTO.getId().toString()); assignee = userDTO.getId().toString(); + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } else { taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); logger.error("未查到大数据部门对应 {}", roleName); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } diff --git a/renren-admin/src/main/java/io/renren/modules/demandComment/listener/CommentListener.java b/renren-admin/src/main/java/io/renren/modules/demandComment/listener/CommentListener.java index b5a0511f..17013a27 100644 --- a/renren-admin/src/main/java/io/renren/modules/demandComment/listener/CommentListener.java +++ b/renren-admin/src/main/java/io/renren/modules/demandComment/listener/CommentListener.java @@ -142,6 +142,7 @@ public class CommentListener implements TaskListener, ExecutionListener, Activit delegateTask.setAssignee(defaultAssigneeRoleId); logger.error("未查到该部门对应 {}", roleName); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } Map kv = delegateTask.getVariables(); diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/listener/DataCenterListener.java b/renren-admin/src/main/java/io/renren/modules/processForm/listener/DataCenterListener.java index 7b511222..9a0f253f 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/listener/DataCenterListener.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/listener/DataCenterListener.java @@ -113,6 +113,7 @@ public class DataCenterListener implements TaskListener, ExecutionListener, Acti logger.error("审批人id:" + userDTO.getId()); taskService.setAssignee(delegateTask.getId(), userDTO.getId().toString()); assignee = userDTO.getId().toString(); + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } else { delegateTask.setAssignee(defaultAssigneeRoleId); logger.error("未查到该部门对应 " + roleName); diff --git a/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java b/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java index 20f90c07..4daec746 100644 --- a/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java +++ b/renren-admin/src/main/java/io/renren/modules/processForm/listener/v2/CorrectionListenerV2.java @@ -185,6 +185,7 @@ public class CorrectionListenerV2 implements TaskListener, ExecutionListener, Ac logger.error("未查到该部门 {} 对应的 {}", deptId, roleName); taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } if (kv.containsKey("tAbilityApplicationDTOList")) { List dtoList = (List) kv.get("tAbilityApplicationDTOList"); 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 ac0403a3..6b3d82bb 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 @@ -636,8 +636,8 @@ public class ResourceController { @GetMapping("/getCountByFuzzyQuery") @ApiOperation("获取各类资源模糊查询总数") @LogOperation("获取各类资源模糊查询总数") - public Result getCountByFuzzyQuery(@RequestParam String keyWorld) { - return new Result<>().ok(resourceService.getCountByFuzzyQuery(keyWorld)); + public Result getCountByFuzzyQuery(@RequestParam String keyWorld, @RequestParam String nonChinese) { + return new Result<>().ok(resourceService.getCountByFuzzyQuery(keyWorld, nonChinese)); } diff --git a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java index 5eaa24d4..47a3b5b6 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/dao/ResourceDao.java @@ -26,7 +26,9 @@ public interface ResourceDao extends BaseDao { @Cacheable(value = "selectWithAttrs", key = "#p0+'-'+#orderField+'-'+#orderType") List selectWithAttrs(@Param("dto") ResourceDTO resourceDTO, @Param("orderField") String orderField, - @Param("orderType") String orderType); + @Param("orderType") String orderType, + @Param("nonChinese") Boolean nonChinese + ); List selectTypeCount(String type); @@ -39,7 +41,8 @@ public interface ResourceDao extends BaseDao { @Param("pageSize") Integer pageSize, @Param("orderField") String orderField, @Param("orderType") String orderType, - @Param("ids") List ids + @Param("ids") List ids, + @Param("nonChinese") Boolean nonChinese ); /** @@ -173,9 +176,9 @@ public interface ResourceDao extends BaseDao { List selectAppList(@Param("pageNum") int pageNum, @Param("type") Integer type, @Param("area") String area); - String selectPicByResId(@Param("id") String id); + String selectPicByResId(@Param("id") String id, @Param("resourceType") String resourceType); - List selectTypeCountByName(@Param("keyWorld") String keyWorld); + List selectTypeCountByName(@Param("keyWorld") String keyWorld, @Param("nonChinese") Boolean nonChinese); List countByCIMType(@Param("deptId") Long deptId); diff --git a/renren-admin/src/main/java/io/renren/modules/resource/listener/ResourceUndercarriageListener.java b/renren-admin/src/main/java/io/renren/modules/resource/listener/ResourceUndercarriageListener.java index 16ddcc66..33aa24bc 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/listener/ResourceUndercarriageListener.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/listener/ResourceUndercarriageListener.java @@ -143,9 +143,11 @@ public class ResourceUndercarriageListener implements TaskListener, ExecutionLis } else { logger.error("未查到该部门对应的 " + roleName + " 将使用大数据部门审核人"); assignee = defaultUser(delegateTask.getId(), roleDTO); + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } else { assignee = defaultUser(delegateTask.getId(), roleDTO); + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } if (StringUtils.isNotEmpty(assignee) diff --git a/renren-admin/src/main/java/io/renren/modules/resource/service/ResourceService.java b/renren-admin/src/main/java/io/renren/modules/resource/service/ResourceService.java index a6caed9b..db38453c 100644 --- a/renren-admin/src/main/java/io/renren/modules/resource/service/ResourceService.java +++ b/renren-admin/src/main/java/io/renren/modules/resource/service/ResourceService.java @@ -140,7 +140,7 @@ public interface ResourceService extends CrudService getWrapper(Map params) { @@ -404,6 +409,7 @@ public class ResourceServiceImpl extends CrudServiceImpl common(Page resultPage, List selectDTOPageSpecilTotal, ResourceDTO resourceDTO, String orderField, String orderType, Integer pageNum, Integer pageSize) { + private Page common(Page resultPage, List selectDTOPageSpecilTotal, ResourceDTO resourceDTO, String orderField, String orderType, Integer pageNum, Integer pageSize, Boolean nonChinese) { if (resourceDTO.getInfoList().isEmpty()) { List resourceDTOS; if (orderField.equals("total")) { // 对总体评价特殊处理 @@ -514,7 +520,7 @@ public class ResourceServiceImpl extends CrudServiceImpl { ResourceDTO index = (ResourceDTO) x; @@ -544,13 +550,13 @@ public class ResourceServiceImpl extends CrudServiceImpl resourceDTOS = resourceDao.selectWithAttrs(resourceDTO, orderField, orderType); + List resourceDTOS = resourceDao.selectWithAttrs(resourceDTO, orderField, orderType, nonChinese); if (resourceDTOS.isEmpty()) { resultPage.setRecords(new ArrayList<>()); resultPage.setTotal(0); @@ -1499,9 +1505,9 @@ public class ResourceServiceImpl extends CrudServiceImpl maps = resourceDao.selectAppList((pageNum - 1) * 9, type, area); - maps.forEach(x -> x.put("pic", resourceDao.selectPicByResId(x.get("id").toString()))); + maps.forEach(x -> x.put("pic", resourceDao.selectPicByResId(x.get("id").toString(), "应用资源"))); return new HashMap() {{ - put("appList",maps); + put("appList", maps); put("total", resourceDao.selectAppListCount(type, area)); }}; } @@ -1876,14 +1882,33 @@ public class ResourceServiceImpl extends CrudServiceImpl resultMap = new HashMap<>(); - Map map = (Map) selectTotal(); - List> list = (List>) map.get("total"); - list.forEach(index -> { - if ("基础设施".equals(index.get("type").toString())) { - resultMap.put("视频资源", Integer.parseInt(index.get("count").toString())); - } - }); resultMap.put("云资源", 0); + //视频资源 + CompletableFuture jcss = CompletableFuture.runAsync(() -> { + Map map = (Map) selectTotal(); + List> list = (List>) map.get("total"); + list.forEach(index -> { + if ("基础设施".equals(index.get("type").toString())) { + resultMap.put("视频资源", Integer.parseInt(index.get("count").toString())); + } + }); + }, executor); + + //新增会客厅和视频会议统计 + //会客厅 + CompletableFuture hkt = CompletableFuture.runAsync(() -> { + QueryWrapper wrapper = new QueryWrapper<>(); + resultMap.put("会客厅", tMeetingroomMapper.selectCount(wrapper)); + + }, executor); + + //视频会议 + CompletableFuture sphy = CompletableFuture.runAsync(() -> { + resultMap.put("视频会议", enkeService.page(new HashMap<>()).getTotal()); + }, executor); + CompletableFuture all = CompletableFuture.allOf(jcss, hkt, sphy); + all.join(); + return resultMap; } @@ -1976,9 +2001,10 @@ public class ResourceServiceImpl extends CrudServiceImpl resultList = new ArrayList<>(); - CompletableFuture DBresourceCount = CompletableFuture.runAsync(() -> resultList.addAll(resourceDao.selectTypeCountByName(keyWorld))); + Boolean nonChinese_ = Boolean.getBoolean(nonChinese);// 不传默认为中文走全文索引 + CompletableFuture DBresourceCount = CompletableFuture.runAsync(() -> resultList.addAll(resourceDao.selectTypeCountByName(keyWorld, nonChinese_))); final Integer[] meetCountNew = new Integer[1]; switch (Constant.ProjectPlace.getByFlag(projectPlace)) { case TSINGTAO: { @@ -2402,7 +2428,6 @@ public class ResourceServiceImpl extends CrudServiceImpl maps = resourceDao.getSquareList(type, deptType, area, i, pageSize); + maps.forEach(x -> x.put("pic", resourceDao.selectPicByResId(x.get("id").toString(), type))); return new HashMap() {{ - put("list", resourceDao.getSquareList(type, deptType, area, i, pageSize)); + put("list", maps); put("total", resourceDao.getSquareListCount(type, deptType, area)); }}; } diff --git a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java index 803a2247..1464eed4 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/controller/TResourceMountApplyController.java @@ -68,11 +68,13 @@ public class TResourceMountApplyController { // @RequiresPermissions("resourceMountApply:tresourcemountapply:info") public Result get(@PathVariable("id") Long id) { TResourceMountApplyDTO data = tResourceMountApplyService.get(id); - SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId())); - if (sysDeptDTO != null) { - ResourceDTO resourceDTO = data.getResourceDTO(); - resourceDTO.setDeptName(sysDeptDTO.getName()); - data.setResourceDTO(resourceDTO); + if (data.getDeptId() != null) { + SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId())); + if (sysDeptDTO != null) { + ResourceDTO resourceDTO = data.getResourceDTO(); + resourceDTO.setDeptName(sysDeptDTO.getName()); + data.setResourceDTO(resourceDTO); + } } return new Result().ok(data); } diff --git a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java index c859ca37..1c54410f 100644 --- a/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java +++ b/renren-admin/src/main/java/io/renren/modules/resourceMountApply/listener/ResourceOwnerListener.java @@ -215,6 +215,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A logger.error("未查到该部门对应的 " + roleName); taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } else if (resourceMountApplyDTO.getDeptId() != null) { SysUserDTO userDTO = sysUserService.getByDeptIdAndRoleId(Long.valueOf(resourceMountApplyDTO.getDeptId()), roleDTO.getId()); @@ -226,6 +227,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); logger.error("未查到部门对应 " + resourceMountApplyDTO.getDeptId()); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } else { logger.error("大数据局名称:" + bigDateDeptName); @@ -241,6 +243,7 @@ public class ResourceOwnerListener implements TaskListener, ExecutionListener, A taskService.setAssignee(delegateTask.getId(), defaultAssigneeRoleId); logger.error("未查到大数据部门对应 " + roleName); assignee = defaultAssigneeRoleId; + taskService.setVariable(delegateTask.getId(), "allowEntrust", Boolean.TRUE); // 允许被委托 } } diff --git a/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java b/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java index 0eec36a3..7965f2f6 100644 --- a/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java +++ b/renren-admin/src/main/java/io/renren/modules/security/config/ShiroConfig.java @@ -85,6 +85,7 @@ public class ShiroConfig { filterMap.put("/census/center/**", "anon"); // 全局各类统计 包含 /census/center/v2 filterMap.put("/metrics/**", "anon"); filterMap.put("/gateway-monitor/**", "anon"); + filterMap.put("/enke/**", "anon"); filterMap.put("/**", "oauth2"); shiroFilter.setFilterChainDefinitionMap(filterMap); diff --git a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml index 9763fa3c..52404ca8 100644 --- a/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml +++ b/renren-admin/src/main/resources/mapper/resource/ResourceDao.xml @@ -157,9 +157,12 @@ AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) - + AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) + + AND tdr.name LIKE CONCAT( '%', #{dto.name}, '%' ) + AND tdr.district_id = #{dto.districtId} @@ -210,7 +213,6 @@ ORDER BY ${orderField} ${orderType} - @@ -280,7 +282,7 @@ AND tdr.type != '知识库' AND tdr.type != '赋能案例' - AND MATCH (tdr.type) AGAINST ( #{type} IN BOOLEAN MODE) + AND tdr.type = #{type} AND MATCH (tdr.name) AGAINST ( #{name} IN BOOLEAN MODE) @@ -442,11 +444,14 @@ AND tdr.type != '赋能案例' - + AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) + + AND tdr.name LIKE CONCAT( '%', #{dto.name}, '%' ) + - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} @@ -506,7 +511,7 @@ AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} AND tdr.district_id = #{dto.districtId} @@ -538,7 +543,7 @@ AND MATCH (tdr.name) AGAINST ( #{dto.name} IN BOOLEAN MODE) - AND MATCH (tdr.type) AGAINST ( #{dto.type} IN BOOLEAN MODE) + AND tdr.type = #{dto.type} AND tdr.district_id = #{dto.districtId} @@ -658,7 +663,7 @@ sys_dept sd LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE) + AND type = #{resourceType} GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id ) temp1 @@ -699,7 +704,7 @@ LEFT JOIN ( SELECT dept_id, COUNT( id ) AS "deptCount" FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{resourceType} IN BOOLEAN MODE) + AND type = #{resourceType} GROUP BY dept_id ) tdr ON sd.id = tdr.dept_id LEFT JOIN sys_region sr ON sd.district = sr.id @@ -1071,7 +1076,7 @@ FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - AND MATCH (type) AGAINST ( #{type} IN BOOLEAN MODE) + AND type = #{type} AND type != '赋能案例' @@ -1601,7 +1606,8 @@ AND sd.type = #{type} - AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%' ) + AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, + '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%' ) ORDER BY sd.type, sr.sort, sd.sort, tdr.dept_id, tdr.visitor DESC, tdr.id DESC @@ -1614,8 +1620,16 @@ FROM tb_data_attr tda LEFT JOIN tb_data_resource tdr ON tda.data_resource_id = tdr.id - WHERE - tda.attr_type = '应用图片' + WHERE 1 = 1 + + AND tda.attr_type = '应用图片' + + + AND tda.attr_type = '图层缩略图' + + + AND tda.attr_type = '应用场景' + AND tdr.id = #{id} AND tda.del_flag = 0 @@ -1626,9 +1640,12 @@ FROM tb_data_resource WHERE 1 = 1 AND del_flag = 0 - + AND MATCH (name) AGAINST ( #{keyWorld} IN BOOLEAN MODE) + + AND name LIKE CONCAT( '%', #{keyWorld}, '%' ) + AND type != '赋能案例' GROUP BY type ORDER BY type @@ -1838,16 +1855,16 @@ tdr.type = '业务组件') - AND tdr.del_flag in (0, 5) + AND tdr.del_flag=0 - AND tdr.del_flag not in (0, 1, 5, 6) + AND tdr.del_flag in (2, 3, 4) AND tdr.del_flag=6 - AND tdr.del_flag != 1 + AND tdr.del_flag in (0, 2, 3, 4, 6) @@ -1868,7 +1885,8 @@ @@ -2201,12 +2220,14 @@ 1 = 1 AND MATCH ( tdr.type ) AGAINST ( '组件服务' IN BOOLEAN MODE ) AND tdr.del_flag = 0 - AND tdr.id IN ( SELECT data_resource_id FROM tb_data_attr WHERE attr_type = '组件类型' AND attr_value = #{type} AND del_flag = 0 ) - + AND tdr.id IN ( SELECT data_resource_id FROM tb_data_attr WHERE attr_type = '组件类型' AND attr_value = #{type} + AND del_flag = 0 ) + AND sd.type = #{deptType} - - AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%') + + AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, + '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%') ORDER BY sd.type, @@ -2226,12 +2247,14 @@ 1 = 1 AND MATCH ( tdr.type ) AGAINST ( '组件服务' IN BOOLEAN MODE ) AND tdr.del_flag = 0 - AND tdr.id IN ( SELECT data_resource_id FROM tb_data_attr WHERE attr_type = '组件类型' AND attr_value = #{type} AND del_flag = 0 ) - + AND tdr.id IN ( SELECT data_resource_id FROM tb_data_attr WHERE attr_type = '组件类型' AND attr_value = #{type} + AND del_flag = 0 ) + AND sd.type = #{deptType} - - AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%') + + AND JSON_EXTRACT( info_list, JSON_UNQUOTE( REPLACE ( JSON_SEARCH( info_list, 'all', '应用领域', NULL, + '$[*].attrType' ), 'attrType', 'attrValue' ) ) ) LIKE CONCAT( '%', #{area}, '%')