| | |
| | | configServiceById.setLegalInstitution(vo.getLegalInstitution()); |
| | | configServiceById.setCopyrightInfo(vo.getCopyrightInfo()); |
| | | configServiceById.setCodeUrl(vo.getCodeUrl()); |
| | | configServiceById.setCustomerServiceUrl(vo.getCustomerServiceUrl()); |
| | | configServiceById.setAboutUs(vo.getAboutUs()); |
| | | configServiceById.setPaymentSwitch(vo.getPaymentSwitch()); |
| | | groupWelcomeConfigService.updateById(configServiceById); |
| | | return AjaxResult.success("保存成功!"); |
| | | } |
| | |
| | | */ |
| | | // @PreAuthorize("@ss.hasPermi('im:group:list')") |
| | | @GetMapping("/list") |
| | | public TableDataInfo list(@RequestParam(value = "keyword", required = false) String keyword) |
| | | public TableDataInfo list(@RequestParam(value = "keywords", required = false) String keywords) |
| | | { |
| | | // 创建查询条件包装器 |
| | | LambdaQueryWrapper<IpBlacklist> queryWrapper = new LambdaQueryWrapper<>(); |
| | | |
| | | // 只有当 keyword 不为空时才添加 OR 条件 |
| | | if (ObjectUtil.isNotEmpty(keyword)) { |
| | | queryWrapper.and(wrapper -> wrapper.eq(IpBlacklist::getIpAddress,keyword) |
| | | if (ObjectUtil.isNotEmpty(keywords)) { |
| | | queryWrapper.and(wrapper -> wrapper.eq(IpBlacklist::getIpAddress,keywords) |
| | | ); |
| | | } |
| | | |