feat(): 更改信息

1127/donghongyang
donghongyang 2024-12-01 10:18:34 +08:00
parent 917e764c38
commit b4c8992164
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@ package com.muyu.product.controller;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
@ -108,4 +109,15 @@ public class CommentInfoController extends BaseController {
public Result<String> remove(@PathVariable List<Long> ids) { public Result<String> remove(@PathVariable List<Long> ids) {
return toAjax(commentInfoService.removeBatchByIds(ids)); return toAjax(commentInfoService.removeBatchByIds(ids));
} }
/**
*
*/
@GetMapping("/commentId/{projectId}")
public Result commentInfoList(@PathVariable("projectId") Long id){
LambdaQueryWrapper<CommentInfo> lambdaQueryWrapper = new LambdaQueryWrapper<>();
lambdaQueryWrapper.eq(CommentInfo::getParentId,id);
List<CommentInfo> list = commentInfoService.list(lambdaQueryWrapper);
return Result.success(list);
}
} }