mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-09 20:57:21 +08:00
chore: 修复部分错误规范代码
This commit is contained in:
@@ -100,6 +100,8 @@ public interface JobBatchApi {
|
||||
*
|
||||
* @param jobId 任务 ID
|
||||
* @param taskBatchId 任务批次 ID
|
||||
* @param taskId 任务实例ID
|
||||
* @param startId 起始 ID
|
||||
* @param fromIndex 起始索引
|
||||
* @param size 每页条数
|
||||
* @return 响应信息
|
||||
|
@@ -69,6 +69,7 @@ public interface UserService extends BaseService<UserResp, UserDetailResp, UserQ
|
||||
* @param avatar 头像文件
|
||||
* @param id ID
|
||||
* @return 新头像路径
|
||||
* @throws IOException /
|
||||
*/
|
||||
String updateAvatar(MultipartFile avatar, Long id) throws IOException;
|
||||
|
||||
@@ -141,12 +142,17 @@ public interface UserService extends BaseService<UserResp, UserDetailResp, UserQ
|
||||
|
||||
/**
|
||||
* 下载用户导入模板
|
||||
*
|
||||
* @param response 响应对象
|
||||
* @throws IOException /
|
||||
*/
|
||||
void downloadImportUserTemplate(HttpServletResponse response) throws IOException;
|
||||
|
||||
/**
|
||||
* 导入用户
|
||||
*
|
||||
* @param req 导入信息
|
||||
* @return 导入结果
|
||||
*/
|
||||
UserImportResp importUser(UserImportReq req);
|
||||
|
||||
|
@@ -75,7 +75,7 @@ public class MessageServiceImpl implements MessageService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void delete(List<Long> ids) {
|
||||
baseMapper.deleteBatchIds(ids);
|
||||
baseMapper.deleteByIds(ids);
|
||||
messageUserService.deleteByMessageIds(ids);
|
||||
}
|
||||
}
|
@@ -75,7 +75,7 @@ public class OptionServiceImpl implements OptionService {
|
||||
public void update(List<OptionReq> options) {
|
||||
// 非空校验
|
||||
List<Long> idList = options.stream().map(OptionReq::getId).toList();
|
||||
List<OptionDO> optionList = baseMapper.selectBatchIds(idList);
|
||||
List<OptionDO> optionList = baseMapper.selectByIds(idList);
|
||||
Map<String, OptionDO> optionMap = optionList.stream()
|
||||
.collect(Collectors.toMap(OptionDO::getCode, Function.identity(), (existing, replacement) -> existing));
|
||||
for (OptionReq req : options) {
|
||||
|
Reference in New Issue
Block a user