| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.model.*; |
| | | import com.ruoyi.system.service.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.stream.Collectors; |
| | | |
| | | @Api(tags = "数据大屏") |
| | | @RestController |
| | | @RequestMapping("/statistics") |
| | | public class DataStatisticsController { |
| | | |
| | | private final TAppealServicesService appealServicesService; |
| | | private final TOldsterWarningService oldsterWarningService; |
| | | private final THtmlConfigService htmlConfigService; |
| | | private final TLargeDeptService largeDeptService; |
| | | private final TLargeUserService largeUserService; |
| | | private final TLargeOrganizationService largeOrganizationService; |
| | | private final TLargeResourceService largeResourceService; |
| | | private final TLargeSocialWorkerService largeSocialWorkerService; |
| | | private final TLargeVolunteerService largeVolunteerService; |
| | | private final TLargeKeyGridUserService largeKeyGridUserService; |
| | | private final TLargeKeyPersonnelTypeService largeKeyPersonnelTypeService; |
| | | @Autowired |
| | | public DataStatisticsController(TAppealServicesService appealServicesService, TOldsterWarningService oldsterWarningService, THtmlConfigService htmlConfigService, TLargeDeptService largeDeptService, TLargeUserService largeUserService, TLargeOrganizationService largeOrganizationService, TLargeResourceService largeResourceService, TLargeSocialWorkerService largeSocialWorkerService, TLargeVolunteerService largeVolunteerService, TLargeKeyGridUserService largeKeyGridUserService, TLargeKeyPersonnelTypeService largeKeyPersonnelTypeService) { |
| | | this.appealServicesService = appealServicesService; |
| | | this.oldsterWarningService = oldsterWarningService; |
| | | this.htmlConfigService = htmlConfigService; |
| | | this.largeDeptService = largeDeptService; |
| | | this.largeUserService = largeUserService; |
| | | this.largeOrganizationService = largeOrganizationService; |
| | | this.largeResourceService = largeResourceService; |
| | | this.largeSocialWorkerService = largeSocialWorkerService; |
| | | this.largeVolunteerService = largeVolunteerService; |
| | | this.largeKeyGridUserService = largeKeyGridUserService; |
| | | this.largeKeyPersonnelTypeService = largeKeyPersonnelTypeService; |
| | | } |
| | | |
| | | /** |
| | | * 获取组织部门管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织部门列表") |
| | | @GetMapping(value = "/deptList") |
| | | public R<List<TLargeDept>> deptList() { |
| | | return R.ok(largeDeptService.list(Wrappers.lambdaQuery(TLargeDept.class).orderByDesc(TLargeDept::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 获取组织人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织人员分页列表") |
| | | @GetMapping(value = "/largeUserList") |
| | | public R<List<TLargeUser>> largeUserList(@RequestParam String deptId) { |
| | | List<TLargeUser> list = largeUserService.list(Wrappers.lambdaQuery(TLargeUser.class) |
| | | .eq(TLargeUser::getDeptId, deptId) |
| | | .orderByDesc(TLargeUser::getCreateTime)); |
| | | return R.ok(list); |
| | | } |
| | | |
| | | /** |
| | | * 事件中心 |
| | | */ |
| | | @ApiOperation(value = "事件中心",notes = "appealServicesCount:居民上报事件,warningCount:养老告警事件") |
| | | @GetMapping(value = "/eventCenter") |
| | | public R<Map<String,Long>> eventCenter() { |
| | | // 居民上报事件 |
| | | long appealServicesCount = appealServicesService.count(); |
| | | // 养老告警事件 |
| | | long warningCount = oldsterWarningService.count(); |
| | | Map<String,Long> map = new HashMap<>(); |
| | | map.put("appealServicesCount",appealServicesCount); |
| | | map.put("warningCount",warningCount); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | /** |
| | | * 社区地图-社区概况 |
| | | */ |
| | | @ApiOperation(value = "社区地图-社区概况",notes = "14=社区地图 15=社区概况") |
| | | @GetMapping(value = "/communityProfile") |
| | | public R<THtmlConfig> communityProfile(@RequestParam Integer configType) { |
| | | THtmlConfig sysConfig = htmlConfigService.getOne(Wrappers.<THtmlConfig>lambdaQuery().eq(THtmlConfig::getConfigType, configType) |
| | | .last("LIMIT 1")); |
| | | return R.ok(sysConfig); |
| | | } |
| | | |
| | | /** |
| | | * 五社联动 |
| | | */ |
| | | @ApiOperation(value = "五社联动",notes = "resourceCount:社区资源,socialWorkerCount:社区工作者,volunteerCount:社区志愿者,organizationCount:社区组织") |
| | | @GetMapping(value = "/fiveSocietyLinkage") |
| | | public R<Map<String,Long>> fiveSocietyLinkage() { |
| | | // 社区资源 |
| | | long resourceCount = largeResourceService.count(); |
| | | // 社区工作者 |
| | | long socialWorkerCount = largeSocialWorkerService.count(); |
| | | // 社区志愿者 |
| | | long volunteerCount = largeVolunteerService.count(); |
| | | // 社区组织 |
| | | long organizationCount = largeOrganizationService.count(); |
| | | |
| | | Map<String,Long> map = new HashMap<>(); |
| | | map.put("resourceCount",resourceCount); |
| | | map.put("socialWorkerCount",socialWorkerCount); |
| | | map.put("volunteerCount",volunteerCount); |
| | | map.put("organizationCount",organizationCount); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | /** |
| | | * 网格-重点人数 |
| | | */ |
| | | @ApiOperation(value = "网格-重点人数",notes = "keyCount:重点人数,gridCount:网格人数") |
| | | @GetMapping(value = "/keyGridUserCount") |
| | | public R<Map<String,Long>> keyGridUserCount() { |
| | | // 重点人数 |
| | | long keyCount = largeKeyGridUserService.count(Wrappers.lambdaQuery(TLargeKeyGridUser.class) |
| | | .eq(TLargeKeyGridUser::getUserType, 1)); |
| | | // 网格人数 |
| | | long gridCount = largeKeyGridUserService.count(Wrappers.lambdaQuery(TLargeKeyGridUser.class) |
| | | .eq(TLargeKeyGridUser::getUserType, 2)); |
| | | Map<String,Long> map = new HashMap<>(); |
| | | map.put("keyCount",keyCount); |
| | | map.put("gridCount",gridCount); |
| | | return R.ok(map); |
| | | } |
| | | |
| | | /** |
| | | * 重点人员情况 |
| | | */ |
| | | @ApiOperation(value = "重点人员情况",notes = "keyCount:重点人数,gridCount:网格人数") |
| | | @GetMapping(value = "/keyPersonnelSituation") |
| | | public R<List<TLargeKeyPersonnelType>> keyPersonnelSituation() { |
| | | List<TLargeKeyPersonnelType> list = largeKeyPersonnelTypeService.list(); |
| | | List<TLargeKeyGridUser> largeKeyGridUsers = largeKeyGridUserService.list(); |
| | | for (TLargeKeyPersonnelType largeKeyPersonnelType : list) { |
| | | if(largeKeyPersonnelType.getShowType() == 2 && !CollectionUtils.isEmpty(largeKeyGridUsers)){ |
| | | // 查询真实的汇总数据 |
| | | List<TLargeKeyGridUser> users = largeKeyGridUsers.stream().filter(largeKeyGridUser -> largeKeyGridUser.getTypeId().equals(largeKeyPersonnelType.getId())).collect(Collectors.toList()); |
| | | largeKeyPersonnelType.setShowNumber(users.size()); |
| | | } |
| | | } |
| | | return R.ok(list); |
| | | } |
| | | |
| | | } |
| | |
| | | public R<PageInfo<TAppealServicesVO>> pageList(@RequestBody TAppealServicesQuery query) { |
| | | return R.ok(appealServicesService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取诉求服务管理管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取诉求服务管理分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TAppealServicesVO>> pageListLarge(@RequestBody TAppealServicesQuery query) { |
| | | return R.ok(appealServicesService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取诉求服务管理管理列表 |
| | |
| | | /** |
| | | * 查看系统配置-协议管理详情 |
| | | */ |
| | | @ApiOperation(value = "查看系统配置-协议管理详情",notes = "配置类型 类型 1=托育服务 2=阅芽计划 3=办事指南图文指引 4=暖心服务图片 5=注册协议 6=隐私政策 7=学习申请书 8=安全告知书 9=购买支付说明 10=微心愿风险提示 11=群众诉求服务说明 12=随手拍说明") |
| | | @ApiOperation(value = "查看系统配置-协议管理详情",notes = "配置类型 类型 1=托育服务 2=阅芽计划 3=办事指南图文指引 4=暖心服务图片 5=注册协议 6=隐私政策 7=学习申请书 8=安全告知书 9=购买支付说明 10=微心愿风险提示 11=群众诉求服务说明 12=随手拍说明 13=康年年图文介绍 14=社区地图 15=社区概况") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<THtmlConfig> getDetailById(@RequestParam Integer configType) { |
| | | THtmlConfig sysConfig = htmlConfigService.getOne(Wrappers.<THtmlConfig>lambdaQuery().eq(THtmlConfig::getConfigType, configType) |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import com.ruoyi.system.service.TLargeDeptService; |
| | | import com.ruoyi.system.service.TLargeUserService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织部门 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-组织部门") |
| | | @RestController |
| | | @RequestMapping("/t-large-dept") |
| | | public class TLargeDeptController { |
| | | |
| | | private final TLargeDeptService largeDeptService; |
| | | private final TLargeUserService largeUserService; |
| | | @Autowired |
| | | public TLargeDeptController(TLargeDeptService largeDeptService, TLargeUserService largeUserService) { |
| | | this.largeDeptService = largeDeptService; |
| | | this.largeUserService = largeUserService; |
| | | } |
| | | |
| | | /** |
| | | * 获取组织部门管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织部门列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeDept>> list() { |
| | | return R.ok(largeDeptService.list(Wrappers.lambdaQuery(TLargeDept.class).orderByDesc(TLargeDept::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加组织部门管理 |
| | | */ |
| | | @Log(title = "组织部门信息-新增组织部门", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加组织部门") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeDept dto) { |
| | | if (largeDeptService.isExit(dto)) { |
| | | return R.fail("组织部门已存在"); |
| | | } |
| | | return R.ok(largeDeptService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改组织部门 |
| | | */ |
| | | @Log(title = "组织部门信息-修改组织部门", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改组织部门") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeDept dto) { |
| | | if (largeDeptService.isExit(dto)) { |
| | | return R.fail("组织部门已存在"); |
| | | } |
| | | return R.ok(largeDeptService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 删除组织部门 |
| | | */ |
| | | @Log(title = "组织部门信息-删除组织部门", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除组织部门") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | // 查询是否存在人员 |
| | | long count = largeUserService.count(Wrappers.lambdaQuery(TLargeUser.class) |
| | | .eq(TLargeUser::getDeptId, id)); |
| | | if (count > 0) { |
| | | return R.fail("组织部门下存在人员,请先删除人员"); |
| | | } |
| | | return R.ok(largeDeptService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除组织部门 |
| | | */ |
| | | @Log(title = "组织部门信息-删除组织部门", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除组织部门") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | // 查询是否存在人员 |
| | | long count = largeUserService.count(Wrappers.lambdaQuery(TLargeUser.class) |
| | | .in(TLargeUser::getDeptId, ids)); |
| | | if (count > 0) { |
| | | return R.fail("组织部门下存在人员,请先删除人员"); |
| | | } |
| | | return R.ok(largeDeptService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import com.ruoyi.system.query.TLargeKeyGridUserQuery; |
| | | import com.ruoyi.system.service.TLargeKeyGridUserService; |
| | | import com.ruoyi.system.vo.TLargeKeyGridUserVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员-网格人员 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-重点人员-网格人员") |
| | | @RestController |
| | | @RequestMapping("/t-large-key-grid-user") |
| | | public class TLargeKeyGridUserController { |
| | | |
| | | private final TLargeKeyGridUserService largeKeyGridUserService; |
| | | @Autowired |
| | | public TLargeKeyGridUserController(TLargeKeyGridUserService largeKeyGridUserService) { |
| | | this.largeKeyGridUserService = largeKeyGridUserService; |
| | | } |
| | | |
| | | /** |
| | | * 获取重点人员-网格人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员-网格人员分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeKeyGridUserVO>> pageList(@Validated @RequestBody TLargeKeyGridUserQuery query) { |
| | | return R.ok(largeKeyGridUserService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取重点人员-网格人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员-网格人员分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeKeyGridUserVO>> pageListLarge(@RequestBody TLargeKeyGridUserQuery query) { |
| | | return R.ok(largeKeyGridUserService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取重点人员-网格人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员-网格人员列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeKeyGridUser>> list() { |
| | | return R.ok(largeKeyGridUserService.list(Wrappers.lambdaQuery(TLargeKeyGridUser.class).orderByDesc(TLargeKeyGridUser::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加重点人员-网格人员管理 |
| | | */ |
| | | @Log(title = "重点人员-网格人员信息-新增重点人员-网格人员", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加重点人员-网格人员") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeKeyGridUser dto) { |
| | | return R.ok(largeKeyGridUserService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改重点人员-网格人员 |
| | | */ |
| | | @Log(title = "重点人员-网格人员信息-修改重点人员-网格人员", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改重点人员-网格人员") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeKeyGridUser dto) { |
| | | return R.ok(largeKeyGridUserService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看重点人员-网格人员详情 |
| | | */ |
| | | @ApiOperation(value = "查看重点人员-网格人员详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeKeyGridUser> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeKeyGridUserService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除重点人员-网格人员 |
| | | */ |
| | | @Log(title = "重点人员-网格人员信息-删除重点人员-网格人员", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除重点人员-网格人员") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeKeyGridUserService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除重点人员-网格人员 |
| | | */ |
| | | @Log(title = "重点人员-网格人员信息-删除重点人员-网格人员", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除重点人员-网格人员") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeKeyGridUserService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import com.ruoyi.system.model.TLargeKeyPersonnelType; |
| | | import com.ruoyi.system.service.TLargeKeyGridUserService; |
| | | import com.ruoyi.system.service.TLargeKeyPersonnelTypeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员分类 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "重点人员分类-重点人员分类") |
| | | @RestController |
| | | @RequestMapping("/t-large-key-personnel-type") |
| | | public class TLargeKeyPersonnelTypeController { |
| | | |
| | | private final TLargeKeyPersonnelTypeService largeKeyPersonnelTypeService; |
| | | private final TLargeKeyGridUserService largeKeyGridUserService; |
| | | @Autowired |
| | | public TLargeKeyPersonnelTypeController(TLargeKeyPersonnelTypeService largeKeyPersonnelTypeService, TLargeKeyGridUserService largeKeyGridUserService) { |
| | | this.largeKeyPersonnelTypeService = largeKeyPersonnelTypeService; |
| | | this.largeKeyGridUserService = largeKeyGridUserService; |
| | | } |
| | | |
| | | /** |
| | | * 获取重点人员分类管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员分类分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeKeyPersonnelType>> pageList(@RequestBody BasePage query) { |
| | | return R.ok(largeKeyPersonnelTypeService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取重点人员分类管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员分类分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeKeyPersonnelType>> pageListLarge(@RequestBody BasePage query) { |
| | | return R.ok(largeKeyPersonnelTypeService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取重点人员分类管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取重点人员分类列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeKeyPersonnelType>> list() { |
| | | return R.ok(largeKeyPersonnelTypeService.list(Wrappers.lambdaQuery(TLargeKeyPersonnelType.class).orderByDesc(TLargeKeyPersonnelType::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加重点人员分类管理 |
| | | */ |
| | | @Log(title = "重点人员分类信息-新增重点人员分类", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加重点人员分类") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeKeyPersonnelType dto) { |
| | | if (largeKeyPersonnelTypeService.isExit(dto)) { |
| | | return R.fail("人员分类已存在"); |
| | | } |
| | | return R.ok(largeKeyPersonnelTypeService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改重点人员分类 |
| | | */ |
| | | @Log(title = "重点人员分类信息-修改重点人员分类", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改重点人员分类") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeKeyPersonnelType dto) { |
| | | if (largeKeyPersonnelTypeService.isExit(dto)) { |
| | | return R.fail("人员分类已存在"); |
| | | } |
| | | return R.ok(largeKeyPersonnelTypeService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看重点人员分类详情 |
| | | */ |
| | | @ApiOperation(value = "查看重点人员分类详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeKeyPersonnelType> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeKeyPersonnelTypeService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除重点人员分类 |
| | | */ |
| | | @Log(title = "重点人员分类信息-删除重点人员分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除重点人员分类") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | // 判断分类是否被使用 |
| | | long count = largeKeyGridUserService.count(Wrappers.lambdaQuery(TLargeKeyGridUser.class) |
| | | .eq(TLargeKeyGridUser::getTypeId, id)); |
| | | if (count > 0) { |
| | | return R.fail("该分类被使用,请先删除该分类下的人员"); |
| | | } |
| | | return R.ok(largeKeyPersonnelTypeService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除重点人员分类 |
| | | */ |
| | | @Log(title = "重点人员分类信息-删除重点人员分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除重点人员分类") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | // 判断分类是否被使用 |
| | | long count = largeKeyGridUserService.count(Wrappers.lambdaQuery(TLargeKeyGridUser.class) |
| | | .in(TLargeKeyGridUser::getTypeId, ids)); |
| | | if (count > 0) { |
| | | return R.fail("该分类被使用,请先删除该分类下的人员"); |
| | | } |
| | | return R.ok(largeKeyPersonnelTypeService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeOrganization; |
| | | import com.ruoyi.system.query.TLargeOrganizationQuery; |
| | | import com.ruoyi.system.service.TLargeOrganizationService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会组织 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-社会组织") |
| | | @RestController |
| | | @RequestMapping("/t-large-organization") |
| | | public class TLargeOrganizationController { |
| | | |
| | | private final TLargeOrganizationService largeOrganizationService; |
| | | @Autowired |
| | | public TLargeOrganizationController(TLargeOrganizationService largeOrganizationService) { |
| | | this.largeOrganizationService = largeOrganizationService; |
| | | } |
| | | |
| | | /** |
| | | * 获取社会组织管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会组织分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeOrganization>> pageList(@RequestBody TLargeOrganizationQuery query) { |
| | | return R.ok(largeOrganizationService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取社会组织管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会组织分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeOrganization>> pageListLarge(@RequestBody TLargeOrganizationQuery query) { |
| | | return R.ok(largeOrganizationService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取社会组织管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会组织列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeOrganization>> list() { |
| | | return R.ok(largeOrganizationService.list(Wrappers.lambdaQuery(TLargeOrganization.class).orderByDesc(TLargeOrganization::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加社会组织管理 |
| | | */ |
| | | @Log(title = "社会组织信息-新增社会组织", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加社会组织") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeOrganization dto) { |
| | | if (largeOrganizationService.isExit(dto)) { |
| | | return R.fail("组织名称已存在"); |
| | | } |
| | | return R.ok(largeOrganizationService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改社会组织 |
| | | */ |
| | | @Log(title = "社会组织信息-修改社会组织", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改社会组织") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeOrganization dto) { |
| | | if (largeOrganizationService.isExit(dto)) { |
| | | return R.fail("组织名称已存在"); |
| | | } |
| | | return R.ok(largeOrganizationService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看社会组织详情 |
| | | */ |
| | | @ApiOperation(value = "查看社会组织详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeOrganization> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeOrganizationService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除社会组织 |
| | | */ |
| | | @Log(title = "社会组织信息-删除社会组织", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除社会组织") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeOrganizationService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除社会组织 |
| | | */ |
| | | @Log(title = "社会组织信息-删除社会组织", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除社会组织") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeOrganizationService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import com.ruoyi.system.query.TLargeResourceQuery; |
| | | import com.ruoyi.system.service.TLargeResourceService; |
| | | import com.ruoyi.system.vo.TLargeResourceVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-社区资源") |
| | | @RestController |
| | | @RequestMapping("/t-large-resource") |
| | | public class TLargeResourceController { |
| | | |
| | | private final TLargeResourceService largeResourceService; |
| | | @Autowired |
| | | public TLargeResourceController(TLargeResourceService largeResourceService) { |
| | | this.largeResourceService = largeResourceService; |
| | | } |
| | | |
| | | /** |
| | | * 获取社区资源管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区资源分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeResourceVO>> pageList(@RequestBody TLargeResourceQuery query) { |
| | | return R.ok(largeResourceService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取社区资源管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区资源分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeResourceVO>> pageListLarge(@RequestBody TLargeResourceQuery query) { |
| | | return R.ok(largeResourceService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取社区资源管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区资源列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeResource>> list() { |
| | | return R.ok(largeResourceService.list(Wrappers.lambdaQuery(TLargeResource.class).orderByDesc(TLargeResource::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加社区资源管理 |
| | | */ |
| | | @Log(title = "社区资源信息-新增社区资源", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加社区资源") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeResource dto) { |
| | | return R.ok(largeResourceService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改社区资源 |
| | | */ |
| | | @Log(title = "社区资源信息-修改社区资源", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改社区资源") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeResource dto) { |
| | | return R.ok(largeResourceService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看社区资源详情 |
| | | */ |
| | | @ApiOperation(value = "查看社区资源详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeResource> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeResourceService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除社区资源 |
| | | */ |
| | | @Log(title = "社区资源信息-删除社区资源", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除社区资源") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeResourceService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除社区资源 |
| | | */ |
| | | @Log(title = "社区资源信息-删除社区资源", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除社区资源") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeResourceService.removeByIds(ids)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import com.ruoyi.system.model.TLargeResourceType; |
| | | import com.ruoyi.system.service.TLargeResourceService; |
| | | import com.ruoyi.system.service.TLargeResourceTypeService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源分类 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-社区资源分类") |
| | | @RestController |
| | | @RequestMapping("/t-large-resource-type") |
| | | public class TLargeResourceTypeController { |
| | | |
| | | private final TLargeResourceTypeService largeResourceTypeService; |
| | | private final TLargeResourceService largeResourceService; |
| | | @Autowired |
| | | public TLargeResourceTypeController(TLargeResourceTypeService largeResourceTypeService, TLargeResourceService largeResourceService) { |
| | | this.largeResourceTypeService = largeResourceTypeService; |
| | | this.largeResourceService = largeResourceService; |
| | | } |
| | | |
| | | /** |
| | | * 获取社区资源分类管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区资源分类列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeResourceType>> list() { |
| | | List<TLargeResourceType> allList = largeResourceTypeService.list(Wrappers.lambdaQuery(TLargeResourceType.class).orderByDesc(TLargeResourceType::getCreateTime)); |
| | | |
| | | List<TLargeResourceType> parent = allList.stream().filter(item -> "0".equals(item.getParentId())).collect(Collectors.toList()); |
| | | |
| | | for (TLargeResourceType tLargeResourceType : parent) { |
| | | List<TLargeResourceType> children = allList.stream().filter(item -> tLargeResourceType.getId().equals(item.getParentId())).collect(Collectors.toList()); |
| | | tLargeResourceType.setChildren(children); |
| | | } |
| | | return R.ok(parent); |
| | | } |
| | | |
| | | /** |
| | | * 添加社区资源分类管理 |
| | | */ |
| | | @Log(title = "社区资源分类信息-新增社区资源分类", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加社区资源分类") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeResourceType dto) { |
| | | return R.ok(largeResourceTypeService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改社区资源分类 |
| | | */ |
| | | @Log(title = "社区资源分类信息-修改社区资源分类", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改社区资源分类") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeResourceType dto) { |
| | | return R.ok(largeResourceTypeService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看社区资源分类详情 |
| | | */ |
| | | @ApiOperation(value = "查看社区资源分类详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeResourceType> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeResourceTypeService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除社区资源分类 |
| | | */ |
| | | @Log(title = "社区资源分类信息-删除社区资源分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除社区资源分类") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | // 判断是否已有分类被使用 |
| | | long count = largeResourceService.count(Wrappers.lambdaQuery(TLargeResource.class) |
| | | .and(e -> e.eq(TLargeResource::getTypeParentId, id).or().eq(TLargeResource::getTypeChildrenId, id))); |
| | | if (count > 0) { |
| | | return R.fail("该分类已被使用,请先删除该分类下的资源"); |
| | | } |
| | | return R.ok(largeResourceTypeService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除社区资源分类 |
| | | */ |
| | | @Log(title = "社区资源分类信息-删除社区资源分类", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除社区资源分类") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | // 判断是否已有分类被使用 |
| | | long count = largeResourceService.count(Wrappers.lambdaQuery(TLargeResource.class) |
| | | .and(e -> e.in(TLargeResource::getTypeParentId, ids).or().in(TLargeResource::getTypeChildrenId, ids))); |
| | | if (count > 0) { |
| | | return R.fail("该分类已被使用,请先删除该分类下的资源"); |
| | | } |
| | | return R.ok(largeResourceTypeService.removeByIds(ids)); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeSocialWorker; |
| | | import com.ruoyi.system.query.TLargeSocialWorkerQuery; |
| | | import com.ruoyi.system.service.TLargeSocialWorkerService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会工作者 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-社会工作者") |
| | | @RestController |
| | | @RequestMapping("/t-large-social-worker") |
| | | public class TLargeSocialWorkerController { |
| | | |
| | | private final TLargeSocialWorkerService largeSocialWorkerService; |
| | | @Autowired |
| | | public TLargeSocialWorkerController(TLargeSocialWorkerService largeSocialWorkerService) { |
| | | this.largeSocialWorkerService = largeSocialWorkerService; |
| | | } |
| | | |
| | | /** |
| | | * 获取社会工作者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会工作者分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeSocialWorker>> pageList(@RequestBody TLargeSocialWorkerQuery query) { |
| | | return R.ok(largeSocialWorkerService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取社会工作者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会工作者分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeSocialWorker>> pageListLarge(@RequestBody TLargeSocialWorkerQuery query) { |
| | | return R.ok(largeSocialWorkerService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取社会工作者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社会工作者列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeSocialWorker>> list() { |
| | | return R.ok(largeSocialWorkerService.list(Wrappers.lambdaQuery(TLargeSocialWorker.class).orderByDesc(TLargeSocialWorker::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加社会工作者管理 |
| | | */ |
| | | @Log(title = "社会工作者信息-新增社会工作者", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加社会工作者") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeSocialWorker dto) { |
| | | return R.ok(largeSocialWorkerService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改社会工作者 |
| | | */ |
| | | @Log(title = "社会工作者信息-修改社会工作者", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改社会工作者") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeSocialWorker dto) { |
| | | return R.ok(largeSocialWorkerService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看社会工作者详情 |
| | | */ |
| | | @ApiOperation(value = "查看社会工作者详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeSocialWorker> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeSocialWorkerService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除社会工作者 |
| | | */ |
| | | @Log(title = "社会工作者信息-删除社会工作者", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除社会工作者") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeSocialWorkerService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除社会工作者 |
| | | */ |
| | | @Log(title = "社会工作者信息-删除社会工作者", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除社会工作者") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeSocialWorkerService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import com.ruoyi.system.query.TLargeUserQuery; |
| | | import com.ruoyi.system.service.TLargeUserService; |
| | | import com.ruoyi.system.vo.TLargeUserVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织人员 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | |
| | | @Api(tags = "大屏-组织人员") |
| | | @RestController |
| | | @RequestMapping("/t-large-user") |
| | | public class TLargeUserController { |
| | | |
| | | private final TLargeUserService largeUserService; |
| | | @Autowired |
| | | public TLargeUserController(TLargeUserService largeUserService) { |
| | | this.largeUserService = largeUserService; |
| | | } |
| | | |
| | | /** |
| | | * 获取组织人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织人员分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeUserVO>> pageList(@RequestBody TLargeUserQuery query) { |
| | | return R.ok(largeUserService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取组织人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织人员分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeUserVO>> pageListLarge(@RequestBody TLargeUserQuery query) { |
| | | return R.ok(largeUserService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取组织人员管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取组织人员列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeUser>> list() { |
| | | return R.ok(largeUserService.list(Wrappers.lambdaQuery(TLargeUser.class).orderByDesc(TLargeUser::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加组织人员管理 |
| | | */ |
| | | @Log(title = "组织人员信息-新增组织人员", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加组织人员") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeUser dto) { |
| | | return R.ok(largeUserService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改组织人员 |
| | | */ |
| | | @Log(title = "组织人员信息-修改组织人员", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改组织人员") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeUser dto) { |
| | | return R.ok(largeUserService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看组织人员详情 |
| | | */ |
| | | @ApiOperation(value = "查看组织人员详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeUser> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeUserService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除组织人员 |
| | | */ |
| | | @Log(title = "组织人员信息-删除组织人员", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除组织人员") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeUserService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除组织人员 |
| | | */ |
| | | @Log(title = "组织人员信息-删除组织人员", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除组织人员") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeUserService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| New file |
| | |
| | | package com.ruoyi.web.controller.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.annotation.Log; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.system.model.TLargeVolunteer; |
| | | import com.ruoyi.system.query.TLargeVolunteerQuery; |
| | | import com.ruoyi.system.service.TLargeVolunteerService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区志愿者 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Api(tags = "大屏-社区志愿者") |
| | | @RestController |
| | | @RequestMapping("/t-large-volunteer") |
| | | public class TLargeVolunteerController { |
| | | |
| | | private final TLargeVolunteerService largeVolunteerService; |
| | | @Autowired |
| | | public TLargeVolunteerController(TLargeVolunteerService largeVolunteerService) { |
| | | this.largeVolunteerService = largeVolunteerService; |
| | | } |
| | | |
| | | /** |
| | | * 获取社区志愿者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区志愿者分页列表") |
| | | @PostMapping(value = "/pageList") |
| | | public R<PageInfo<TLargeVolunteer>> pageList(@RequestBody TLargeVolunteerQuery query) { |
| | | return R.ok(largeVolunteerService.pageList(query)); |
| | | } |
| | | /** |
| | | * 获取社区志愿者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区志愿者分页列表-大屏使用") |
| | | @PostMapping(value = "/pageListLarge") |
| | | public R<PageInfo<TLargeVolunteer>> pageListLarge(@RequestBody TLargeVolunteerQuery query) { |
| | | return R.ok(largeVolunteerService.pageList(query)); |
| | | } |
| | | |
| | | /** |
| | | * 获取社区志愿者管理列表 |
| | | */ |
| | | @ApiOperation(value = "获取社区志愿者列表") |
| | | @PostMapping(value = "/list") |
| | | public R<List<TLargeVolunteer>> list() { |
| | | return R.ok(largeVolunteerService.list(Wrappers.lambdaQuery(TLargeVolunteer.class).orderByDesc(TLargeVolunteer::getCreateTime))); |
| | | } |
| | | |
| | | /** |
| | | * 添加社区志愿者管理 |
| | | */ |
| | | @Log(title = "社区志愿者信息-新增社区志愿者", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "添加社区志愿者") |
| | | @PostMapping(value = "/add") |
| | | public R<Boolean> add(@Validated @RequestBody TLargeVolunteer dto) { |
| | | return R.ok(largeVolunteerService.save(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 修改社区志愿者 |
| | | */ |
| | | @Log(title = "社区志愿者信息-修改社区志愿者", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改社区志愿者") |
| | | @PostMapping(value = "/update") |
| | | public R<Boolean> update(@Validated @RequestBody TLargeVolunteer dto) { |
| | | return R.ok(largeVolunteerService.updateById(dto)); |
| | | } |
| | | |
| | | /** |
| | | * 查看社区志愿者详情 |
| | | */ |
| | | @ApiOperation(value = "查看社区志愿者详情") |
| | | @GetMapping(value = "/getDetailById") |
| | | public R<TLargeVolunteer> getDetailById(@RequestParam String id) { |
| | | return R.ok(largeVolunteerService.getById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 删除社区志愿者 |
| | | */ |
| | | @Log(title = "社区志愿者信息-删除社区志愿者", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除社区志愿者") |
| | | @DeleteMapping(value = "/deleteById") |
| | | public R<Boolean> deleteById(@RequestParam String id) { |
| | | return R.ok(largeVolunteerService.removeById(id)); |
| | | } |
| | | |
| | | /** |
| | | * 批量删除社区志愿者 |
| | | */ |
| | | @Log(title = "社区志愿者信息-删除社区志愿者", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "批量删除社区志愿者") |
| | | @DeleteMapping(value = "/deleteByIds") |
| | | public R<Boolean> deleteByIds(@RequestBody List<String> ids) { |
| | | return R.ok(largeVolunteerService.removeByIds(ids)); |
| | | } |
| | | |
| | | } |
| | | |
| | |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.enums.BusinessType; |
| | | import com.ruoyi.framework.web.service.TokenService; |
| | | import com.ruoyi.system.model.TPartyBuilding; |
| | | import com.ruoyi.system.query.TPartyBuildingQuery; |
| | | import com.ruoyi.system.service.TPartyBuildingService; |
| | |
| | | public class TPartyBuildingController { |
| | | |
| | | private final TPartyBuildingService partyBuildingService; |
| | | private final TokenService tokenService; |
| | | @Autowired |
| | | public TPartyBuildingController(TPartyBuildingService partyBuildingService) { |
| | | public TPartyBuildingController(TPartyBuildingService partyBuildingService, TokenService tokenService) { |
| | | this.partyBuildingService = partyBuildingService; |
| | | this.tokenService = tokenService; |
| | | } |
| | | |
| | | /** |
| | |
| | | if (partyBuildingService.isExit(dto)) { |
| | | return R.fail("党建引领管理标题已存在"); |
| | | } |
| | | String nickName = tokenService.getLoginUser().getUser().getNickName(); |
| | | dto.setReleasePerson(nickName); |
| | | return R.ok(partyBuildingService.save(dto)); |
| | | } |
| | | |
| | |
| | | * @return 结果 |
| | | */ |
| | | @ApiOperation(value = "账号密码登录",notes = "账号密码登录") |
| | | @PostMapping("/api/login") |
| | | @PostMapping("/login") |
| | | public AjaxResult login(@RequestBody String param) |
| | | { |
| | | LoginBody loginBody = JSON.parseObject(param, LoginBody.class); |
| | |
| | | // @PreAuthorize("@ss.hasPermi('system:role:edit')") |
| | | @ApiOperation(value = "编辑角色",response = SysRoleDTO.class) |
| | | @Log(title = "角色信息-编辑角色", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/api/system/role/edit") |
| | | @PostMapping("/system/role/edit") |
| | | public R<String> edit(@RequestBody String param) |
| | | { |
| | | SysRoleDTO dto = JSON.parseObject(param, SysRoleDTO.class); |
| | |
| | | // @PreAuthorize("@ss.hasPermi('system:user:edit')") |
| | | @ApiOperation(value = "修改用户签名") |
| | | @Log(title = "用户信息-修改用户签名", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/api/system/user/editSignPicture") |
| | | @PostMapping("/system/user/editSignPicture") |
| | | public R editSignPicture(@RequestBody String param) |
| | | { |
| | | Long userId = tokenService.getLoginUser().getUserId(); |
| | |
| | | // 用ApiInfoBuilder进行定制 |
| | | return new ApiInfoBuilder() |
| | | // 设置标题 |
| | | .title("标题:智能派单管理系统_接口文档") |
| | | .title("标题:移动社区管理系统_接口文档") |
| | | // 描述 |
| | | .description("智能派单接口文档") |
| | | .description("移动社区接口文档") |
| | | // 作者信息 |
| | | .contact(new Contact(ruoyiConfig.getName(), null, null)) |
| | | // 版本 |
| | |
| | | // 用ApiInfoBuilder进行定制 |
| | | return new ApiInfoBuilder() |
| | | // 设置标题 |
| | | .title("标题:智能派单管理系统_接口文档") |
| | | .title("标题:移动社区管理系统_接口文档") |
| | | // 描述 |
| | | .description("智能派单接口文档") |
| | | .description("移动社区接口文档") |
| | | // 作者信息 |
| | | .contact(new Contact(ruoyiConfig.getName(), null, null)) |
| | | // 版本 |
| | |
| | | } |
| | | String TimeDir =new SimpleDateFormat("yyyy-MM-dd").format(new Date()); |
| | | // String realPath = fileUploadConfig.getLocation() + TimeDir; |
| | | String realPath = "F:\\file\\laboratory\\" + TimeDir; |
| | | String realPath = "F:\\file\\mobile\\" + TimeDir; |
| | | File file = new File(realPath); |
| | | // 没有目录就创建 |
| | | if (!file.exists()) { |
| | |
| | | @Configuration |
| | | public class RequestFilterConfig { |
| | | |
| | | @Bean |
| | | public FilterRegistrationBean<SmCryptoFilter> loggingFilter(){ |
| | | FilterRegistrationBean<SmCryptoFilter> registrationBean = new FilterRegistrationBean<>(); |
| | | |
| | | registrationBean.setFilter(new SmCryptoFilter()); |
| | | registrationBean.addUrlPatterns("/api/*"); // 根据实际需求调整URL模式 |
| | | // registrationBean.addInitParameter("excludedUrls","/api/*"); |
| | | |
| | | return registrationBean; |
| | | } |
| | | // @Bean |
| | | // public FilterRegistrationBean<SmCryptoFilter> loggingFilter(){ |
| | | // FilterRegistrationBean<SmCryptoFilter> registrationBean = new FilterRegistrationBean<>(); |
| | | // |
| | | // registrationBean.setFilter(new SmCryptoFilter()); |
| | | // registrationBean.addUrlPatterns("/api/*"); // 根据实际需求调整URL模式 |
| | | //// registrationBean.addInitParameter("excludedUrls","/api/*"); |
| | | // |
| | | // return registrationBean; |
| | | // } |
| | | } |
| | |
| | | .authorizeRequests() |
| | | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 |
| | | .antMatchers("/getPrivacyAgreement/{agreementType}", |
| | | "/applet/queryProtocolConfigByType","/api/loginApp", |
| | | "/api/login","/open/login","/applet/queryProtocolConfigByType", |
| | | "/applet/queryProtocolConfigByType","/loginApp", |
| | | "/login","/open/login","/applet/queryProtocolConfigByType", |
| | | "/register","/applet/getCode","/applet/loginCode", |
| | | "/applet/changepwd", "/captchaImage","/getCode","/loginCode", |
| | | "/operations/getBySingleNum/**", |
| | | "/user/getUserInfoByNumber/**", |
| | | |
| | | "/index/**", |
| | | "/employment/**", |
| | | "/partyBuilding/**", |
| | | "/convenience/**", |
| | | "/merchant/**" |
| | | "/merchant/**", |
| | | "/t-appeal-services/pageListLarge","/t-large-dept/list", |
| | | "/t-large-key-grid-user/pageListLarge","/t-large-key-personnel-type/pageListLarge", |
| | | "/t-large-organization/pageListLarge","/t-large-resource/pageListLarge", |
| | | "/t-large-resource-type/list","/t-large-social-worker/pageListLarge", |
| | | "/t-large-user/pageListLarge","/t-large-volunteer/pageListLarge", |
| | | "/statistics/**" |
| | | ).permitAll() |
| | | // 静态资源,可匿名访问 |
| | | .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**").permitAll() |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织部门 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeDeptMapper extends BaseMapper<TLargeDept> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import com.ruoyi.system.query.TLargeKeyGridUserQuery; |
| | | import com.ruoyi.system.vo.TLargeKeyGridUserVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员-网格人员 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeKeyGridUserMapper extends BaseMapper<TLargeKeyGridUser> { |
| | | |
| | | /** |
| | | * 获取重点人员-网格人员列表 |
| | | * @param query |
| | | * @param pageInfo |
| | | * @return |
| | | */ |
| | | List<TLargeKeyGridUserVO> pageList(@Param("query") TLargeKeyGridUserQuery query, @Param("pageInfo")PageInfo<TLargeKeyGridUserVO> pageInfo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import com.ruoyi.system.model.TLargeKeyPersonnelType; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员分类 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeKeyPersonnelTypeMapper extends BaseMapper<TLargeKeyPersonnelType> { |
| | | |
| | | /** |
| | | * 获取重点人员分类管理列表 |
| | | */ |
| | | List<TLargeKeyPersonnelType> pageList(@Param("query")BasePage query, @Param("pageInfo")PageInfo<TLargeKeyPersonnelType> pageInfo); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeOrganization; |
| | | import com.ruoyi.system.query.TLargeOrganizationQuery; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会组织 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeOrganizationMapper extends BaseMapper<TLargeOrganization> { |
| | | |
| | | /** |
| | | * 获取社会组织管理列表 |
| | | */ |
| | | List<TLargeOrganization> pageList(@Param("query") TLargeOrganizationQuery query, @Param("pageInfo")PageInfo<TLargeOrganization> pageInfo); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import com.ruoyi.system.query.TLargeResourceQuery; |
| | | import com.ruoyi.system.vo.TLargeResourceVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeResourceMapper extends BaseMapper<TLargeResource> { |
| | | |
| | | /** |
| | | * 获取社区资源列表 |
| | | */ |
| | | List<TLargeResourceVO> pageList(@Param("query") TLargeResourceQuery query, @Param("pageInfo")PageInfo<TLargeResourceVO> pageInfo); |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.system.model.TLargeResourceType; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源分类 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeResourceTypeMapper extends BaseMapper<TLargeResourceType> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeSocialWorker; |
| | | import com.ruoyi.system.query.TLargeSocialWorkerQuery; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会工作者 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeSocialWorkerMapper extends BaseMapper<TLargeSocialWorker> { |
| | | |
| | | /** |
| | | * 获取社会工作者分页列表 |
| | | */ |
| | | List<TLargeSocialWorker> pageList(@Param("query") TLargeSocialWorkerQuery query, @Param("pageInfo")PageInfo<TLargeSocialWorker> pageInfo); |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import com.ruoyi.system.query.TLargeUserQuery; |
| | | import com.ruoyi.system.vo.TLargeUserVO; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织人员 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeUserMapper extends BaseMapper<TLargeUser> { |
| | | |
| | | /** |
| | | * 获取组织人员管理列表 |
| | | */ |
| | | List<TLargeUserVO> pageList(@Param("query") TLargeUserQuery query, @Param("pageInfo")PageInfo<TLargeUserVO> pageInfo); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeVolunteer; |
| | | import com.ruoyi.system.query.TLargeVolunteerQuery; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区志愿者 Mapper 接口 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeVolunteerMapper extends BaseMapper<TLargeVolunteer> { |
| | | |
| | | /** |
| | | * 获取社区志愿者管理列表 |
| | | */ |
| | | List<TLargeVolunteer> pageList(@Param("query") TLargeVolunteerQuery query, @Param("pageInfo")PageInfo<TLargeVolunteer> pageInfo); |
| | | } |
| | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "类型 1=托育服务 2=阅芽计划 3=办事指南图文指引 4=暖心服务图片 5=注册协议 6=隐私政策 7=学习申请书 8=安全告知书 9=购买支付说明 10=微心愿风险提示 11=群众诉求服务说明 12=随手拍说明 13=康年年图文介绍") |
| | | @ApiModelProperty(value = "类型 1=托育服务 2=阅芽计划 3=办事指南图文指引 4=暖心服务图片 5=注册协议 6=隐私政策 7=学习申请书 8=安全告知书 9=购买支付说明 10=微心愿风险提示 11=群众诉求服务说明 12=随手拍说明 13=康年年图文介绍 14=社区地图 15=社区概况") |
| | | @TableField("config_type") |
| | | private Integer configType; |
| | | |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织部门 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_dept") |
| | | @ApiModel(value="TLargeDept对象", description="大屏-组织部门") |
| | | public class TLargeDept extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @TableField("dept_name") |
| | | private String deptName; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员-网格人员 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_key_grid_user") |
| | | @ApiModel(value="TLargeKeyGridUser对象", description="大屏-重点人员-网格人员") |
| | | public class TLargeKeyGridUser extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "网格") |
| | | @TableField("grid_info") |
| | | private String gridInfo; |
| | | |
| | | @ApiModelProperty(value = "小区名称") |
| | | @TableField("community_name") |
| | | private String communityName; |
| | | |
| | | @ApiModelProperty(value = "楼栋信息") |
| | | @TableField("building_info") |
| | | private String buildingInfo; |
| | | |
| | | @ApiModelProperty(value = "单元号") |
| | | @TableField("unit_number") |
| | | private String unitNumber; |
| | | |
| | | @ApiModelProperty(value = "门牌号") |
| | | @TableField("house_number") |
| | | private String houseNumber; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "性别 1=男 2=女") |
| | | @TableField("user_sex") |
| | | private Integer userSex; |
| | | |
| | | @ApiModelProperty(value = "身份证号") |
| | | @TableField("id_card") |
| | | private String idCard; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | @TableField("contact_number") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty(value = "类型id") |
| | | @TableField("type_id") |
| | | private String typeId; |
| | | |
| | | @ApiModelProperty(value = "人员类型 1=重点人员 2=网格人员") |
| | | @TableField("user_type") |
| | | private Integer userType; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员分类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_key_personnel_type") |
| | | @ApiModel(value="TLargeKeyPersonnelType对象", description="大屏-重点人员分类") |
| | | public class TLargeKeyPersonnelType extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "分类名称") |
| | | @TableField("type_name") |
| | | private String typeName; |
| | | |
| | | @ApiModelProperty(value = "显示方式 1=仅显示汇总 2=显示详细人员") |
| | | @TableField("show_type") |
| | | private Integer showType; |
| | | |
| | | @ApiModelProperty(value = "显示数量") |
| | | @TableField("show_number") |
| | | private Integer showNumber; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会组织 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_organization") |
| | | @ApiModel(value="TLargeOrganization对象", description="大屏-社会组织") |
| | | public class TLargeOrganization extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "组织名称") |
| | | @TableField("organization_name") |
| | | private String organizationName; |
| | | |
| | | @ApiModelProperty(value = "组织负责人") |
| | | @TableField("organization_person") |
| | | private String organizationPerson; |
| | | |
| | | @ApiModelProperty(value = "地址") |
| | | @TableField("address") |
| | | private String address; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | @TableField("contact_number") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty(value = "业务范围") |
| | | @TableField("business_scope") |
| | | private String businessScope; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_resource") |
| | | @ApiModel(value="TLargeResource对象", description="大屏-社区资源") |
| | | public class TLargeResource extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "类型一级id") |
| | | @TableField("type_parent_id") |
| | | private String typeParentId; |
| | | |
| | | @ApiModelProperty(value = "类型二级id") |
| | | @TableField("type_children_id") |
| | | private String typeChildrenId; |
| | | |
| | | @ApiModelProperty(value = "资源单位") |
| | | @TableField("resource_unit") |
| | | private String resourceUnit; |
| | | |
| | | @ApiModelProperty(value = "资源名称描述") |
| | | @TableField("resource_name_desc") |
| | | private String resourceNameDesc; |
| | | |
| | | @ApiModelProperty(value = "资源来源") |
| | | @TableField("resource_source") |
| | | private String resourceSource; |
| | | |
| | | @ApiModelProperty(value = "数量规模") |
| | | @TableField("quantity_scale") |
| | | private String quantityScale; |
| | | |
| | | @ApiModelProperty(value = "联系人") |
| | | @TableField("contact_person") |
| | | private String contactPerson; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | @TableField("contact_number") |
| | | private String contactNumber; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源分类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_resource_type") |
| | | @ApiModel(value="TLargeResourceType对象", description="大屏-社区资源分类") |
| | | public class TLargeResourceType extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "父级id 默认0") |
| | | @TableField("parent_id") |
| | | private String parentId; |
| | | |
| | | @ApiModelProperty(value = "分类名称") |
| | | @TableField("type_name") |
| | | private String typeName; |
| | | |
| | | @ApiModelProperty(value = "单位名称") |
| | | @TableField("unit_name") |
| | | private String unitName; |
| | | |
| | | @ApiModelProperty(value = "子项") |
| | | @TableField(exist = false) |
| | | private List<TLargeResourceType> children; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会工作者 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_social_worker") |
| | | @ApiModel(value="TLargeSocialWorker对象", description="大屏-社会工作者") |
| | | public class TLargeSocialWorker extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "性别 1=男 2=女") |
| | | @TableField("user_sex") |
| | | private Integer userSex; |
| | | |
| | | @ApiModelProperty(value = "出生日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @TableField("birth_date") |
| | | private LocalDate birthDate; |
| | | |
| | | @ApiModelProperty(value = "文化程度") |
| | | @TableField("educational_level") |
| | | private String educationalLevel; |
| | | |
| | | @ApiModelProperty(value = "政治面貌") |
| | | @TableField("political_status") |
| | | private String politicalStatus; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | @TableField("contact_number") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty(value = "工作单位及职务") |
| | | @TableField("employer_position") |
| | | private String employerPosition; |
| | | |
| | | @ApiModelProperty(value = "职业资格等级 1=初级 2=中级 3=高级") |
| | | @TableField("qualification_level") |
| | | private Integer qualificationLevel; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织人员 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_user") |
| | | @ApiModel(value="TLargeUser对象", description="大屏-组织人员") |
| | | public class TLargeUser extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "部门id") |
| | | @TableField("dept_id") |
| | | private String deptId; |
| | | |
| | | @ApiModelProperty(value = "头像") |
| | | @TableField("avatar") |
| | | private String avatar; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "手机号") |
| | | @TableField("user_phone") |
| | | private String userPhone; |
| | | |
| | | @ApiModelProperty(value = "职位") |
| | | @TableField("user_position") |
| | | private String userPosition; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.*; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.ruoyi.common.core.domain.BaseModel; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | |
| | | import java.io.Serializable; |
| | | import java.math.BigDecimal; |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区志愿者 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @TableName("t_large_volunteer") |
| | | @ApiModel(value="TLargeVolunteer对象", description="大屏-社区志愿者") |
| | | public class TLargeVolunteer extends BaseModel { |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @TableId(value = "id", type = IdType.ASSIGN_ID) |
| | | private String id; |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | @TableField("user_name") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "性别 1=男 2=女") |
| | | @TableField("user_sex") |
| | | private Integer userSex; |
| | | |
| | | @ApiModelProperty(value = "出生日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | @TableField("birth_date") |
| | | private LocalDate birthDate; |
| | | |
| | | @ApiModelProperty(value = "服务区域") |
| | | @TableField("service_area") |
| | | private String serviceArea; |
| | | |
| | | @ApiModelProperty(value = "注册日期") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @TableField("register_date") |
| | | private LocalDateTime registerDate; |
| | | |
| | | @ApiModelProperty(value = "总服务时长") |
| | | @TableField("total_service_duration") |
| | | private BigDecimal totalServiceDuration; |
| | | |
| | | @ApiModelProperty(value = "加入队伍时间") |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |
| | | @TableField("join_team_date") |
| | | private LocalDateTime joinTeamDate; |
| | | |
| | | } |
| | |
| | | @TableField("party_detail") |
| | | private String partyDetail; |
| | | |
| | | @ApiModelProperty(value = "发布人") |
| | | @TableField("release_person") |
| | | private String releasePerson; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | import javax.validation.constraints.NotNull; |
| | | |
| | | @Data |
| | | @ApiModel(value = "TLargeKeyGridUserQuery对象", description = "重点人员-网格人员查询参数") |
| | | public class TLargeKeyGridUserQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty(value = "类型名称") |
| | | private String typeName; |
| | | |
| | | @ApiModelProperty(value = "类型id") |
| | | private String typeId; |
| | | |
| | | @NotNull(message = "人员类型不能为空") |
| | | @ApiModelProperty(value = "人员类型 1=重点人员 2=网格人员") |
| | | private Integer userType; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "社会组织查询TLargeOrganizationQuery") |
| | | public class TLargeOrganizationQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "组织名称") |
| | | private String organizationName; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "社区资源查询参数TLargeResourceQuery") |
| | | public class TLargeResourceQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "类型一级id") |
| | | private String typeParentId; |
| | | |
| | | @ApiModelProperty(value = "类型二级id") |
| | | private String typeChildrenId; |
| | | |
| | | @ApiModelProperty(value = "资源名称描述") |
| | | private String resourceNameDesc; |
| | | |
| | | @ApiModelProperty(value = "资源来源") |
| | | private String resourceSource; |
| | | |
| | | @ApiModelProperty(value = "联系人") |
| | | private String contactPerson; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String contactNumber; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "大屏-社会工作者查询TLargeSocialWorkerQuery") |
| | | public class TLargeSocialWorkerQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "联系电话") |
| | | private String contactNumber; |
| | | |
| | | @ApiModelProperty(value = "职业资格等级 1=初级 2=中级 3=高级") |
| | | private Integer qualificationLevel; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "组织人员铲鲟参数TLargeUserQuery") |
| | | public class TLargeUserQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "姓名或者电话") |
| | | private String nameOrPhone; |
| | | |
| | | @ApiModelProperty(value = "部门id") |
| | | private String deptId; |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.query; |
| | | |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "大屏-志愿者查询TLargeVolunteerQuery") |
| | | public class TLargeVolunteerQuery extends BasePage { |
| | | |
| | | @ApiModelProperty(value = "姓名") |
| | | private String userName; |
| | | |
| | | @ApiModelProperty(value = "服务区域") |
| | | private String serviceArea; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织部门 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeDeptService extends IService<TLargeDept> { |
| | | |
| | | /** |
| | | * 判断是否存在 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | boolean isExit(TLargeDept dto); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import com.ruoyi.system.query.TLargeKeyGridUserQuery; |
| | | import com.ruoyi.system.vo.TLargeKeyGridUserVO; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员-网格人员 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeKeyGridUserService extends IService<TLargeKeyGridUser> { |
| | | |
| | | /** |
| | | * 获取重点人员-网格人员分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeKeyGridUserVO> pageList(TLargeKeyGridUserQuery query); |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import com.ruoyi.system.model.TLargeKeyPersonnelType; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员分类 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeKeyPersonnelTypeService extends IService<TLargeKeyPersonnelType> { |
| | | |
| | | /** |
| | | * 判断是否存在 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | boolean isExit(TLargeKeyPersonnelType dto); |
| | | |
| | | /** |
| | | * 获取重点人员分类列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeKeyPersonnelType> pageList(BasePage query); |
| | | |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeOrganization; |
| | | import com.ruoyi.system.query.TLargeOrganizationQuery; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会组织 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeOrganizationService extends IService<TLargeOrganization> { |
| | | |
| | | /** |
| | | * 判断是否存在 |
| | | * @param dto |
| | | * @return |
| | | */ |
| | | boolean isExit(TLargeOrganization dto); |
| | | |
| | | /** |
| | | * 获取社会组织分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeOrganization> pageList(TLargeOrganizationQuery query); |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import com.ruoyi.system.query.TLargeResourceQuery; |
| | | import com.ruoyi.system.vo.TLargeResourceVO; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeResourceService extends IService<TLargeResource> { |
| | | |
| | | /** |
| | | * 获取社区资源分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeResourceVO> pageList(TLargeResourceQuery query); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.system.model.TLargeResourceType; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源分类 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeResourceTypeService extends IService<TLargeResourceType> { |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeSocialWorker; |
| | | import com.ruoyi.system.query.TLargeSocialWorkerQuery; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会工作者 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeSocialWorkerService extends IService<TLargeSocialWorker> { |
| | | |
| | | /** |
| | | * 获取社会工作者分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeSocialWorker> pageList(TLargeSocialWorkerQuery query); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import com.ruoyi.system.query.TLargeUserQuery; |
| | | import com.ruoyi.system.vo.TLargeUserVO; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织人员 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeUserService extends IService<TLargeUser> { |
| | | |
| | | /** |
| | | * 获取组织人员分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeUserVO> pageList(TLargeUserQuery query); |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.model.TLargeVolunteer; |
| | | import com.ruoyi.system.query.TLargeVolunteerQuery; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区志愿者 服务类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | public interface TLargeVolunteerService extends IService<TLargeVolunteer> { |
| | | |
| | | /** |
| | | * 获取社区志愿者分页列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | PageInfo<TLargeVolunteer> pageList(TLargeVolunteerQuery query); |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.TLargeDeptMapper; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | import com.ruoyi.system.service.TLargeDeptService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织部门 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeDeptServiceImpl extends ServiceImpl<TLargeDeptMapper, TLargeDept> implements TLargeDeptService { |
| | | |
| | | @Override |
| | | public boolean isExit(TLargeDept dto) { |
| | | if(StringUtils.isNotEmpty(dto.getId())){ |
| | | // 修改 |
| | | return this.count(Wrappers.lambdaQuery(TLargeDept.class).ne(TLargeDept::getId, dto.getId()).eq(TLargeDept::getDeptName, dto.getDeptName())) > 0; |
| | | }else { |
| | | // 新增 |
| | | return this.count(Wrappers.lambdaQuery(TLargeDept.class).eq(TLargeDept::getDeptName, dto.getDeptName())) > 0; |
| | | } |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TLargeKeyGridUserMapper; |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import com.ruoyi.system.query.TLargeKeyGridUserQuery; |
| | | import com.ruoyi.system.service.TLargeKeyGridUserService; |
| | | import com.ruoyi.system.vo.TCourseVO; |
| | | import com.ruoyi.system.vo.TLargeKeyGridUserVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员-网格人员 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeKeyGridUserServiceImpl extends ServiceImpl<TLargeKeyGridUserMapper, TLargeKeyGridUser> implements TLargeKeyGridUserService { |
| | | |
| | | @Override |
| | | public PageInfo<TLargeKeyGridUserVO> pageList(TLargeKeyGridUserQuery query) { |
| | | PageInfo<TLargeKeyGridUserVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeKeyGridUserVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords(list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.core.domain.BasePage; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.TLargeKeyPersonnelTypeMapper; |
| | | import com.ruoyi.system.model.TAssistedDining; |
| | | import com.ruoyi.system.model.TLargeKeyPersonnelType; |
| | | import com.ruoyi.system.model.TLargeKeyPersonnelType; |
| | | import com.ruoyi.system.service.TLargeKeyPersonnelTypeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-重点人员分类 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeKeyPersonnelTypeServiceImpl extends ServiceImpl<TLargeKeyPersonnelTypeMapper, TLargeKeyPersonnelType> implements TLargeKeyPersonnelTypeService { |
| | | |
| | | @Override |
| | | public boolean isExit(TLargeKeyPersonnelType dto) { |
| | | if(StringUtils.isNotEmpty(dto.getId())){ |
| | | // 修改 |
| | | return this.count(Wrappers.lambdaQuery(TLargeKeyPersonnelType.class).ne(TLargeKeyPersonnelType::getId, dto.getId()).eq(TLargeKeyPersonnelType::getTypeName, dto.getTypeName())) > 0; |
| | | }else { |
| | | // 新增 |
| | | return this.count(Wrappers.lambdaQuery(TLargeKeyPersonnelType.class).eq(TLargeKeyPersonnelType::getTypeName, dto.getTypeName())) > 0; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<TLargeKeyPersonnelType> pageList(BasePage query) { |
| | | PageInfo<TLargeKeyPersonnelType> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeKeyPersonnelType> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.mapper.TLargeOrganizationMapper; |
| | | import com.ruoyi.system.model.TAppUser; |
| | | import com.ruoyi.system.model.TLargeOrganization; |
| | | import com.ruoyi.system.model.TLargeOrganization; |
| | | import com.ruoyi.system.query.TLargeOrganizationQuery; |
| | | import com.ruoyi.system.service.TLargeOrganizationService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会组织 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeOrganizationServiceImpl extends ServiceImpl<TLargeOrganizationMapper, TLargeOrganization> implements TLargeOrganizationService { |
| | | |
| | | @Override |
| | | public boolean isExit(TLargeOrganization dto) { |
| | | if(StringUtils.isNotEmpty(dto.getId())){ |
| | | // 修改 |
| | | return this.count(Wrappers.lambdaQuery(TLargeOrganization.class).ne(TLargeOrganization::getId, dto.getId()).eq(TLargeOrganization::getOrganizationName, dto.getOrganizationName())) > 0; |
| | | }else { |
| | | // 新增 |
| | | return this.count(Wrappers.lambdaQuery(TLargeOrganization.class).eq(TLargeOrganization::getOrganizationName, dto.getOrganizationName())) > 0; |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public PageInfo<TLargeOrganization> pageList(TLargeOrganizationQuery query) { |
| | | PageInfo<TLargeOrganization> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeOrganization> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TLargeResourceMapper; |
| | | import com.ruoyi.system.mapper.TLargeResourceTypeMapper; |
| | | import com.ruoyi.system.model.TAppUser; |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import com.ruoyi.system.model.TLargeResourceType; |
| | | import com.ruoyi.system.query.TLargeResourceQuery; |
| | | import com.ruoyi.system.service.TLargeResourceService; |
| | | import com.ruoyi.system.vo.TLargeResourceVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeResourceServiceImpl extends ServiceImpl<TLargeResourceMapper, TLargeResource> implements TLargeResourceService { |
| | | |
| | | @Autowired |
| | | private TLargeResourceTypeMapper largeResourceTypeMapper; |
| | | |
| | | @Override |
| | | public PageInfo<TLargeResourceVO> pageList(TLargeResourceQuery query) { |
| | | PageInfo<TLargeResourceVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeResourceVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | if(CollectionUtils.isEmpty(list)){ |
| | | return pageInfo; |
| | | } |
| | | |
| | | List<String> ids = list.stream().map(TLargeResourceVO::getTypeParentId).collect(Collectors.toList()); |
| | | List<String> childrenIds = list.stream().map(TLargeResourceVO::getTypeChildrenId).collect(Collectors.toList()); |
| | | ids.addAll(childrenIds); |
| | | |
| | | List<TLargeResourceType> largeResourceTypes = largeResourceTypeMapper.selectList(Wrappers.lambdaQuery(TLargeResourceType.class).in(TLargeResourceType::getId, ids)); |
| | | |
| | | for (TLargeResourceVO tLargeResourceVO : list) { |
| | | List<TLargeResourceType> resourceTypeParentList = largeResourceTypes.stream().filter(largeResourceType -> largeResourceType.getId().equals(tLargeResourceVO.getTypeParentId())).collect(Collectors.toList()); |
| | | if(!CollectionUtils.isEmpty(resourceTypeParentList)){ |
| | | tLargeResourceVO.setTypeParentName(resourceTypeParentList.get(0).getTypeName()); |
| | | } |
| | | List<TLargeResourceType> resourceTypeChildrenList = largeResourceTypes.stream().filter(largeResourceType -> largeResourceType.getId().equals(tLargeResourceVO.getTypeChildrenId())).collect(Collectors.toList()); |
| | | if(!CollectionUtils.isEmpty(resourceTypeChildrenList)){ |
| | | tLargeResourceVO.setTypeChildrenName(resourceTypeChildrenList.get(0).getTypeName()); |
| | | } |
| | | } |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.system.mapper.TLargeResourceTypeMapper; |
| | | import com.ruoyi.system.model.TLargeResourceType; |
| | | import com.ruoyi.system.service.TLargeResourceTypeService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区资源分类 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeResourceTypeServiceImpl extends ServiceImpl<TLargeResourceTypeMapper, TLargeResourceType> implements TLargeResourceTypeService { |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TLargeSocialWorkerMapper; |
| | | import com.ruoyi.system.model.TAppUser; |
| | | import com.ruoyi.system.model.TLargeSocialWorker; |
| | | import com.ruoyi.system.query.TLargeSocialWorkerQuery; |
| | | import com.ruoyi.system.service.TLargeSocialWorkerService; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社会工作者 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeSocialWorkerServiceImpl extends ServiceImpl<TLargeSocialWorkerMapper, TLargeSocialWorker> implements TLargeSocialWorkerService { |
| | | |
| | | @Override |
| | | public PageInfo<TLargeSocialWorker> pageList(TLargeSocialWorkerQuery query) { |
| | | PageInfo<TLargeSocialWorker> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeSocialWorker> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TLargeDeptMapper; |
| | | import com.ruoyi.system.mapper.TLargeUserMapper; |
| | | import com.ruoyi.system.model.TAppUser; |
| | | import com.ruoyi.system.model.TLargeDept; |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import com.ruoyi.system.query.TLargeUserQuery; |
| | | import com.ruoyi.system.service.TLargeUserService; |
| | | import com.ruoyi.system.vo.TLargeUserVO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-组织人员 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeUserServiceImpl extends ServiceImpl<TLargeUserMapper, TLargeUser> implements TLargeUserService { |
| | | |
| | | @Override |
| | | public PageInfo<TLargeUserVO> pageList(TLargeUserQuery query) { |
| | | PageInfo<TLargeUserVO> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeUserVO> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.common.basic.PageInfo; |
| | | import com.ruoyi.system.mapper.TLargeVolunteerMapper; |
| | | import com.ruoyi.system.model.TLargeVolunteer; |
| | | import com.ruoyi.system.query.TLargeVolunteerQuery; |
| | | import com.ruoyi.system.service.TLargeVolunteerService; |
| | | import com.ruoyi.system.vo.TLargeUserVO; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | | * 大屏-社区志愿者 服务实现类 |
| | | * </p> |
| | | * |
| | | * @author xiaochen |
| | | * @since 2025-11-11 |
| | | */ |
| | | @Service |
| | | public class TLargeVolunteerServiceImpl extends ServiceImpl<TLargeVolunteerMapper, TLargeVolunteer> implements TLargeVolunteerService { |
| | | |
| | | @Override |
| | | public PageInfo<TLargeVolunteer> pageList(TLargeVolunteerQuery query) { |
| | | PageInfo<TLargeVolunteer> pageInfo = new PageInfo<>(query.getPageNum(), query.getPageSize()); |
| | | List<TLargeVolunteer> list = this.baseMapper.pageList(query,pageInfo); |
| | | pageInfo.setRecords( list); |
| | | return pageInfo; |
| | | } |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.vo; |
| | | |
| | | import com.ruoyi.system.model.TLargeKeyGridUser; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value="TLargeKeyGridUser对象", description="大屏-重点人员-网格人员") |
| | | public class TLargeKeyGridUserVO extends TLargeKeyGridUser { |
| | | |
| | | @ApiModelProperty(value = "人员类别") |
| | | private String typeName; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.vo; |
| | | |
| | | import com.ruoyi.system.model.TLargeResource; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "TLargeResourceVO对象", description = "大屏-社区资源VO对象") |
| | | public class TLargeResourceVO extends TLargeResource { |
| | | |
| | | @ApiModelProperty(value = "类型一级名称") |
| | | private String typeParentName; |
| | | @ApiModelProperty(value = "类型二级名称") |
| | | private String typeChildrenName; |
| | | |
| | | } |
| New file |
| | |
| | | package com.ruoyi.system.vo; |
| | | |
| | | import com.ruoyi.system.model.TLargeUser; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import lombok.Data; |
| | | |
| | | @Data |
| | | @ApiModel(value = "TLargeUserVO对象", description = "大屏-组织人员VO对象") |
| | | public class TLargeUserVO extends TLargeUser { |
| | | |
| | | @ApiModelProperty(value = "部门名称") |
| | | private String deptName; |
| | | |
| | | } |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeDeptMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeDept"> |
| | | <id column="id" property="id" /> |
| | | <result column="dept_name" property="deptName" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, dept_name, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeKeyGridUserMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeKeyGridUser"> |
| | | <id column="id" property="id" /> |
| | | <result column="grid_info" property="gridInfo" /> |
| | | <result column="community_name" property="communityName" /> |
| | | <result column="building_info" property="buildingInfo" /> |
| | | <result column="unit_number" property="unitNumber" /> |
| | | <result column="house_number" property="houseNumber" /> |
| | | <result column="user_name" property="userName" /> |
| | | <result column="user_sex" property="userSex" /> |
| | | <result column="id_card" property="idCard" /> |
| | | <result column="contact_number" property="contactNumber" /> |
| | | <result column="type_id" property="typeId" /> |
| | | <result column="user_type" property="userType" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, grid_info, community_name, building_info, unit_number, house_number, user_name, user_sex, id_card, contact_number, type_id, user_type, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TLargeKeyGridUserVO"> |
| | | select |
| | | tlkgu.id, tlkgu.grid_info, tlkgu.community_name, tlkgu.building_info, tlkgu.unit_number, tlkgu.house_number, |
| | | tlkgu.user_name, tlkgu.user_sex, tlkgu.id_card, tlkgu.contact_number, tlkgu.type_id, tlkgu.user_type, |
| | | tlkgu.create_time, tlkgu.update_time, tlkgu.create_by, tlkgu.update_by, tlkgu.disabled, |
| | | tlkpt.type_name |
| | | from t_large_key_grid_user tlkgu |
| | | left join t_large_key_personnel_type tlkpt on tlkgu.type_id = tlkpt.id |
| | | <where> |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | and tlkgu.user_name like concat('%', #{query.userName}, '%') |
| | | </if> |
| | | <if test="query.contactNumber != null and query.contactNumber != ''"> |
| | | and tlkgu.contact_number like concat('%', #{query.contactNumber}, '%') |
| | | </if> |
| | | <if test="query.typeName != null and query.typeName != ''"> |
| | | and tlkpt.type_name like concat('%', #{query.typeName}, '%') |
| | | </if> |
| | | <if test="query.typeId != null and query.typeId != ''"> |
| | | and tlkgu.type_id = #{query.typeId} |
| | | </if> |
| | | <if test="query.userType != null"> |
| | | and tlkgu.user_type = #{query.userType} |
| | | </if> |
| | | and tlkgu.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | order by tlkgu.create_time desc |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeKeyPersonnelTypeMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeKeyPersonnelType"> |
| | | <id column="id" property="id" /> |
| | | <result column="type_name" property="typeName" /> |
| | | <result column="show_type" property="showType" /> |
| | | <result column="show_number" property="showNumber" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, type_name, show_type, show_number, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TLargeKeyPersonnelType"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_large_key_personnel_type |
| | | where disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeOrganizationMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeOrganization"> |
| | | <id column="id" property="id" /> |
| | | <result column="organization_name" property="organizationName" /> |
| | | <result column="organization_person" property="organizationPerson" /> |
| | | <result column="address" property="address" /> |
| | | <result column="contact_number" property="contactNumber" /> |
| | | <result column="business_scope" property="businessScope" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, organization_name, organization_person, address, contact_number, business_scope, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TLargeOrganization"> |
| | | select |
| | | <include refid="Base_Column_List"/> |
| | | from t_large_organization |
| | | <where> |
| | | <if test="query.organizationName != null and query.organizationName != ''"> |
| | | and organization_name like concat('%',#{query.organizationName},'%') |
| | | </if> |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeResourceMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeResource"> |
| | | <id column="id" property="id" /> |
| | | <result column="type_parent_id" property="typeParentId" /> |
| | | <result column="type_children_id" property="typeChildrenId" /> |
| | | <result column="resource_unit" property="resourceUnit" /> |
| | | <result column="resource_name_desc" property="resourceNameDesc" /> |
| | | <result column="resource_source" property="resourceSource" /> |
| | | <result column="quantity_scale" property="quantityScale" /> |
| | | <result column="contact_person" property="contactPerson" /> |
| | | <result column="contact_number" property="contactNumber" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, type_parent_id, type_children_id, resource_unit, resource_name_desc, resource_source, quantity_scale, contact_person, contact_number, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TLargeResourceVO"> |
| | | SELECT |
| | | id, type_parent_id, type_children_id, resource_unit, resource_name_desc, resource_source, |
| | | quantity_scale, contact_person, contact_number, create_time, update_time, create_by, update_by, disabled |
| | | from t_large_resource |
| | | <where> |
| | | <if test="query.typeParentId != null and query.typeParentId != ''"> |
| | | and type_parent_id = #{query.typeParentId} |
| | | </if> |
| | | <if test="query.typeChildrenId != null and query.typeChildrenId != ''"> |
| | | and type_children_id = #{query.typeChildrenId} |
| | | </if> |
| | | <if test="query.resourceNameDesc != null and query.resourceNameDesc != ''"> |
| | | and resource_name_desc like concat('%',#{query.resourceNameDesc},'%') |
| | | </if> |
| | | <if test="query.resourceSource != null and query.resourceSource != ''"> |
| | | and resource_source like concat('%',#{query.resourceSource},'%') |
| | | </if> |
| | | <if test="query.contactPerson != null and query.contactPerson != ''"> |
| | | and contact_person like concat('%',#{query.contactPerson},'%') |
| | | </if> |
| | | <if test="query.contactNumber != null and query.contactNumber != ''"> |
| | | and contact_number like concat('%',#{query.contactNumber},'%') |
| | | </if> |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeResourceTypeMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeResourceType"> |
| | | <id column="id" property="id" /> |
| | | <result column="parent_id" property="parentId" /> |
| | | <result column="type_name" property="typeName" /> |
| | | <result column="unit_name" property="unitName" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, parent_id, type_name, unit_name, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeSocialWorkerMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeSocialWorker"> |
| | | <id column="id" property="id" /> |
| | | <result column="user_name" property="userName" /> |
| | | <result column="user_sex" property="userSex" /> |
| | | <result column="birth_date" property="birthDate" /> |
| | | <result column="educational_level" property="educationalLevel" /> |
| | | <result column="political_status" property="politicalStatus" /> |
| | | <result column="contact_number" property="contactNumber" /> |
| | | <result column="employer_position" property="employerPosition" /> |
| | | <result column="qualification_level" property="qualificationLevel" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, user_name, user_sex, birth_date, educational_level, political_status, contact_number, employer_position, qualification_level, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TLargeSocialWorker"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_large_social_worker |
| | | <where> |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | and user_name like concat('%',#{query.userName},'%') |
| | | </if> |
| | | <if test="query.contactNumber != null and query.contactNumber != ''"> |
| | | and contact_number like concat('%',#{query.contactNumber},'%') |
| | | </if> |
| | | <if test="query.qualificationLevel != null"> |
| | | and qualification_level = #{query.qualificationLevel} |
| | | </if> |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeUserMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeUser"> |
| | | <id column="id" property="id" /> |
| | | <result column="dept_id" property="deptId" /> |
| | | <result column="avatar" property="avatar" /> |
| | | <result column="user_name" property="userName" /> |
| | | <result column="user_phone" property="userPhone" /> |
| | | <result column="user_position" property="userPosition" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, dept_id, avatar, user_name, user_phone, user_position, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TLargeUserVO"> |
| | | select tlu.id, tlu.dept_id, tlu.avatar, tlu.user_name, tlu.user_phone, tlu.user_position, tlu.create_time, |
| | | tlu.update_time, tlu.create_by, tlu.update_by, tlu.disabled,tld.dept_name |
| | | from t_large_user tlu |
| | | left join t_large_dept tld on tld.id = tlu.dept_id |
| | | <where> |
| | | <if test="query.nameOrPhone != null and query.nameOrPhone != ''"> |
| | | and (tlu.user_name like concat('%',#{query.nameOrPhone},'%') |
| | | or tlu.user_phone like concat('%',#{query.nameOrPhone},'%')) |
| | | </if> |
| | | <if test="query.deptId != null and query.deptId != ''"> |
| | | and tlu.dept_id = #{query.deptId} |
| | | </if> |
| | | and tlu.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY tlu.create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.ruoyi.system.mapper.TLargeVolunteerMapper"> |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ruoyi.system.model.TLargeVolunteer"> |
| | | <id column="id" property="id" /> |
| | | <result column="user_name" property="userName" /> |
| | | <result column="user_sex" property="userSex" /> |
| | | <result column="birth_date" property="birthDate" /> |
| | | <result column="service_area" property="serviceArea" /> |
| | | <result column="register_date" property="registerDate" /> |
| | | <result column="total_service_duration" property="totalServiceDuration" /> |
| | | <result column="join_team_date" property="joinTeamDate" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | | <result column="update_by" property="updateBy" /> |
| | | <result column="disabled" property="disabled" /> |
| | | </resultMap> |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, user_name, user_sex, birth_date, service_area, register_date, total_service_duration, join_team_date, create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.model.TLargeVolunteer"> |
| | | SELECT |
| | | <include refid="Base_Column_List"/> |
| | | FROM t_large_volunteer |
| | | <where> |
| | | <if test="query.userName != null and query.userName != ''"> |
| | | and user_name like concat('%',#{query.userName},'%') |
| | | </if> |
| | | <if test="query.serviceArea != null and query.serviceArea != ''"> |
| | | and service_area like concat('%',#{query.serviceArea},'%') |
| | | </if> |
| | | and disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | </where> |
| | | ORDER BY create_time DESC |
| | | </select> |
| | | |
| | | </mapper> |
| | |
| | | <result column="virtual_reading_count" property="virtualReadingCount" /> |
| | | <result column="read_count" property="readCount" /> |
| | | <result column="party_detail" property="partyDetail" /> |
| | | <result column="release_person" property="releasePerson" /> |
| | | <result column="create_time" property="createTime" /> |
| | | <result column="update_time" property="updateTime" /> |
| | | <result column="create_by" property="createBy" /> |
| | |
| | | |
| | | <!-- 通用查询结果列 --> |
| | | <sql id="Base_Column_List"> |
| | | id, party_title, party_type, party_cover, virtual_reading_count, read_count, party_detail, create_time, update_time, create_by, update_by, disabled |
| | | id, party_title, party_type, party_cover, virtual_reading_count, read_count, party_detail, release_person,create_time, update_time, create_by, update_by, disabled |
| | | </sql> |
| | | <select id="pageList" resultType="com.ruoyi.system.vo.TPartyBuildingVO"> |
| | | SELECT |