Your ROOT_URL in app.ini is http://git.zky.com/ but you are visiting http://61.178.84.89:8998/wangxy/work-portal/commit/63890e5fb3a793782f10166259ab82c155c4fc87?style=split&whitespace=ignore-all
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
31 additions and
0 deletions
@ -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" ) ;