feat:修改专题活动service

special-20250331
wangxy 5 days ago
parent d205fa4900
commit 63890e5fb3

@ -66,6 +66,21 @@ public class ColumnTreeController extends BaseController {
return R.ok(tagTreeVOList); return R.ok(tagTreeVOList);
} }
@ApiOperation("专题活动树")
@GetMapping("/getSpecialTree")
public R<List<SysColumnVO>> getSpecialTree(@RequestParam(required = false) String columnId) {
LambdaQueryWrapper<SysColumn> tagWrapper = new LambdaQueryWrapper<>();
tagWrapper.eq(SysColumn::getColumnId, columnId)
.eq(SysColumn::getColumnGrade, COLUMN_GRADE)
.eq(SysColumn::getStatus,STATUS)
.orderByAsc(SysColumn::getOrderNum);
List<SysColumn> datas = columnService.list(tagWrapper);
List<SysColumnVO> tagTreeVOList = new ArrayList<>(Convert.toList(SysColumnVO.class, datas));
tagTreeVOList.forEach(this::buildChildren);
return R.ok(tagTreeVOList);
}
/** /**
* *
* *

@ -328,6 +328,21 @@ public class HomeController {
} }
@ApiOperation("专题活动列表")
@GetMapping("/special_list.html")
public String specialList(ModelMap mmap,
@RequestParam(required = false, defaultValue = "2") String columnType) {
LambdaQueryWrapper<SysColumn> queryWrapper= new LambdaQueryWrapper<>();
queryWrapper.eq(SysColumn::getColumnType, columnType);
queryWrapper.eq(SysColumn::getColumnGrade, COLUMN_GRADE);
queryWrapper.eq(SysColumn::getStatus,STATUS);
queryWrapper.orderByAsc(SysColumn::getOrderNum);
List<SysColumn> columnList = columnService.list(queryWrapper);
mmap.put("columnList", columnList);
return "home/special_list";
}
@ApiOperation("详情") @ApiOperation("详情")
@GetMapping("/public_view.html") @GetMapping("/public_view.html")
public String notice(ModelMap mmap,@RequestParam(required = false) String type, @RequestParam String id) { public String notice(ModelMap mmap,@RequestParam(required = false) String type, @RequestParam String id) {

@ -312,6 +312,7 @@ public class ShiroConfig
filterChainDefinitionMap.put("/business_view.html", "anon"); filterChainDefinitionMap.put("/business_view.html", "anon");
filterChainDefinitionMap.put("/special_view.html", "anon"); filterChainDefinitionMap.put("/special_view.html", "anon");
filterChainDefinitionMap.put("/public_view.html", "anon"); filterChainDefinitionMap.put("/public_view.html", "anon");
filterChainDefinitionMap.put("/special_list.html", "anon");
filterChainDefinitionMap.put("/profile/**", "anon"); filterChainDefinitionMap.put("/profile/**", "anon");
filterChainDefinitionMap.put("/search", "anon"); filterChainDefinitionMap.put("/search", "anon");
filterChainDefinitionMap.put("/columnTree/**", "anon"); filterChainDefinitionMap.put("/columnTree/**", "anon");

Loading…
Cancel
Save