@ -217,6 +217,9 @@ public class UserController {
@RequestMapping ( "/getApplication" )
@RequestMapping ( "/getApplication" )
public List < ApplicationIconVo > getApplication ( String orgId ) throws SQLException {
public List < ApplicationIconVo > getApplication ( String orgId ) throws SQLException {
Connection conn = null ;
Connection conn = null ;
PreparedStatement ps = null ;
PreparedStatement ps = null ;
List < ApplicationIconVo > list = new ArrayList ( ) ;
List < ApplicationIconVo > list = new ArrayList ( ) ;
@ -225,6 +228,19 @@ public class UserController {
String sql = "SELECT * from resources_application as a inner join (select type_id from universities_colleges_jurisdiction_experimental_system where org_id='" + orgId + "' and type=1) as b on a.resources_application_id=b.type_id" ;
String sql = "SELECT * from resources_application as a inner join (select type_id from universities_colleges_jurisdiction_experimental_system where org_id='" + orgId + "' and type=1) as b on a.resources_application_id=b.type_id" ;
ps = conn . prepareStatement ( sql ) ;
ps = conn . prepareStatement ( sql ) ;
ResultSet resultSet = ps . executeQuery ( ) ;
ResultSet resultSet = ps . executeQuery ( ) ;
if ( resultSet ! = null )
{
//查到3.0对应图标和链接
QueryWrapper < Application > select = new QueryWrapper < > ( ) ;
select . lambda ( ) . eq ( Application : : getAppName , "智云数字金融综合平台" ) ;
Application applicationByMain = applicationMapper . selectOne ( select ) ;
ApplicationIconVo applicationIconVo = new ApplicationIconVo ( ) ;
applicationIconVo . setAppIcon ( applicationByMain . getAppIcon ( ) ) ;
applicationIconVo . setAppUrl ( applicationByMain . getAppUrl ( ) ) ;
applicationIconVo . setAppName ( applicationByMain . getAppName ( ) ) ;
list . add ( applicationIconVo ) ;
}
int j = 31 ;
int j = 31 ;
while ( resultSet . next ( ) ) {
while ( resultSet . next ( ) ) {
QueryWrapper < Application > qwa = new QueryWrapper < > ( ) ;
QueryWrapper < Application > qwa = new QueryWrapper < > ( ) ;