| | |
| | | |
| | | |
| | | /** |
| | | * 【请填写功能名称】Service业务层处理 |
| | | * 【档案分配】Service业务层处理 |
| | | * |
| | | * @author ruoyi |
| | | * @date 2025-07-20 |
| | |
| | | private ISysUserService iSysUserService; |
| | | private LambdaQueryWrapper<Archiverecordstouser> buildCondition(Archiverecordstouser archiverecordstouser) { |
| | | LambdaQueryWrapper<Archiverecordstouser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(!StringUtils.isEmpty(archiverecordstouser.getArchiveRecordsId()),Archiverecordstouser::getArchiveRecordsId, archiverecordstouser.getArchiveRecordsId()); |
| | | lqw.eq(archiverecordstouser.getArchiveRecordsId()!=null,Archiverecordstouser::getArchiveRecordsId, archiverecordstouser.getArchiveRecordsId()); |
| | | |
| | | //保存相关用户的userId |
| | | List<Long> arr = new ArrayList<>(); |
| | |
| | | |
| | | |
| | | @Override |
| | | public int insertRecordToUsers(String recordId, Long[] userIds) { |
| | | public int insertRecordToUsers(Long recordId, Long[] userIds) { |
| | | // 新增用户与案卷记录 |
| | | List<Archiverecordstouser> list = new ArrayList<Archiverecordstouser>(); |
| | | for (Long userId : userIds) |
| | |
| | | return AjaxResult.success(data); } |
| | | |
| | | /** |
| | | * 查询【请填写功能名称】 |
| | | * 查询【档案分配】 |
| | | * |
| | | * @param id 【请填写功能名称】主键 |
| | | * @return 【请填写功能名称】 |
| | | * @param id 【档案分配】主键 |
| | | * @return 【档案分配】 |
| | | */ |
| | | @Override |
| | | public Archiverecordstouser selectArchiverecordstouserById(Long id) |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean selectArchiveRecordUsers(String recordId) { |
| | | public boolean selectArchiveRecordUsers(Long recordId) { |
| | | LambdaQueryWrapper<Archiverecordstouser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(!StringUtils.isEmpty(recordId),Archiverecordstouser::getArchiveRecordsId, recordId); |
| | | lqw.eq(recordId!=null,Archiverecordstouser::getArchiveRecordsId, recordId); |
| | | List<Archiverecordstouser> lis = list(lqw); |
| | | return !lis.isEmpty(); |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询【请填写功能名称】列表 |
| | | * 查询【档案分配】列表 |
| | | * |
| | | * @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 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int deleteArchiverecordstouserByRecordId(String recordId, Long userId) { |
| | | public int deleteArchiverecordstouserByRecordId(Long recordId, Long userId) { |
| | | |
| | | LambdaQueryWrapper<Archiverecordstouser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(!StringUtils.isEmpty(recordId), Archiverecordstouser::getArchiveRecordsId, recordId) |
| | | lqw.eq(recordId!=null, Archiverecordstouser::getArchiveRecordsId, recordId) |
| | | .eq(userId!=null, Archiverecordstouser::getUserId, userId); |
| | | if(this.remove(lqw)) |
| | | return 1; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public int queryArchiverecordstouserByRecordId(String recordId, Long userId) { |
| | | public int queryArchiverecordstouserByRecordId(Long recordId, Long userId) { |
| | | LambdaQueryWrapper<Archiverecordstouser> lqw = new LambdaQueryWrapper<>(); |
| | | lqw.eq(!StringUtils.isEmpty(recordId), Archiverecordstouser::getArchiveRecordsId, recordId) |
| | | lqw.eq(recordId!=null, Archiverecordstouser::getArchiveRecordsId, recordId) |
| | | .eq(userId!=null, Archiverecordstouser::getUserId, userId); |
| | | |
| | | List<Archiverecordstouser> lis = list(lqw); |