| | |
| | | package com.ruoyi.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Collections; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | |
| | | import com.ruoyi.common.utils.MapUtils; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.domain.ArchiveRecords; |
| | | import com.ruoyi.domain.Archiverecordstouser; |
| | | import com.ruoyi.domain.vo.RecordToUserCount; |
| | | import com.ruoyi.mapper.ArchiverecordstouserMapper; |
| | | import com.ruoyi.service.IArchiverecordstouserService; |
| | | import com.ruoyi.system.mapper.SysUserMapper; |
| | |
| | | |
| | | |
| | | /** |
| | | * 【请填写功能名称】Service业务层处理 |
| | | * 【档案分配】Service业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-07-20 |
| | |
| | | ur.setArchiveRecordsId(recordId); |
| | | ur.setUserId(userId); |
| | | list.add(ur); |
| | | break; |
| | | } |
| | | boolean res = this.saveBatch(list); |
| | | if(res) |
| | |
| | | return AjaxResult.success(data); } |
| | | |
| | | /** |
| | | * 查询【请填写功能名称】 |
| | | * 查询【档案分配】 |
| | | * |
| | | * @param id 【请填写功能名称】主键 |
| | | * @return 【请填写功能名称】 |
| | | * @param id 【档案分配】主键 |
| | | * @return 【档案分配】 |
| | | */ |
| | | @Override |
| | | public Archiverecordstouser selectArchiverecordstouserById(Long id) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean selectArchiveRecordUsers(String recordId) { |
| | | LambdaQueryWrapper<Archiverecordstouser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(!StringUtils.isEmpty(recordId),Archiverecordstouser::getArchiveRecordsId, recordId); |
| | | List<Archiverecordstouser> lis = list(lqw); |
| | | return !lis.isEmpty(); |
| | | } |
| | | |
| | | @Override |
| | | public List<Archiverecordstouser> selectArchiverecordstouserList(Archiverecordstouser archiverecordstouser) { |
| | | return null; |
| | | return this.list(); |
| | | } |
| | | |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | * 查询【档案分配】列表 |
| | | * |
| | | * @param archiverecordstouser 【请填写功能名称】 |
| | | * @return 【请填写功能名称】 |
| | | * @param archiverecordstouser 【档案分配】 |
| | | * @return 【档案分配】 |
| | | */ |
| | | |
| | | |
| | | /** |
| | | * 新增【请填写功能名称】 |
| | | * 新增【档案分配】 |
| | | * |
| | | * @param archiverecordstouser 【请填写功能名称】 |
| | | * @param archiverecordstouser 【档案分配】 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | |
| | | } |
| | | |
| | | /** |
| | | * 修改【请填写功能名称】 |
| | | * 修改【档案分配】 |
| | | * |
| | | * @param archiverecordstouser 【请填写功能名称】 |
| | | * @param archiverecordstouser 【档案分配】 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | |
| | | } |
| | | |
| | | /** |
| | | * 批量删除【请填写功能名称】 |
| | | * 批量删除【档案分配】 |
| | | * |
| | | * @param ids 需要删除的【请填写功能名称】主键 |
| | | * @param ids 需要删除的【档案分配】主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除【请填写功能名称】信息 |
| | | * 删除【档案分配】信息 |
| | | * |
| | | * @param id 【请填写功能名称】主键 |
| | | * @param id 【档案分配】主键 |
| | | * @return 结果 |
| | | */ |
| | | @Override |
| | |
| | | else |
| | | return 0; |
| | | } |
| | | |
| | | @Override |
| | | public AjaxResult countStatistic(String username, int pageNum, int pageSize) { |
| | | LambdaQueryWrapper<RecordToUserCount> lqw = new LambdaQueryWrapper<>(); |
| | | |
| | | if(username!=null) |
| | | lqw.like(!StringUtils.isEmpty(username), RecordToUserCount::getUserName, username); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | Page<RecordToUserCount> page = new Page<>(pageNum, pageSize); |
| | | |
| | | // 使用自定义的分页查询方法,先连接再分页 |
| | | Page<RecordToUserCount> pageResult = this.baseMapper.selectRecordToUserPage(page, lqw); |
| | | |
| | | List<RecordToUserCount> beanRecords = pageResult.getRecords();//得到查询出来的数据 |
| | | |
| | | HashMap<String, Object> data = MapUtils.getResult(pageResult, beanRecords); |
| | | |
| | | |
| | | return AjaxResult.success(data); |
| | | |
| | | } |
| | | |
| | | @Override |
| | | public List<RecordToUserCount> findAllRecordToUserCont() { |
| | | return this.baseMapper.selectRecordToUserAll(); |
| | | } |
| | | } |