| | |
| | | sql.append(" a.nav_bar_name, "); |
| | | sql.append(" a.module_category, "); |
| | | sql.append(" b.route_name, "); |
| | | sql.append(" concat( '/', b.uuid ) path, "); |
| | | sql.append(" concat( '/', b.uuid ) path, "); |
| | | sql.append(" a.uuid, "); |
| | | sql.append(" a.sequence,a.module_sequence "); |
| | | sql.append(" FROM "); |
| | |
| | | sql.append(" a.nav_bar_name, "); |
| | | sql.append(" a.module_category, "); |
| | | sql.append(" a.uuid ,"); |
| | | sql.append(" b.uuid ,"); |
| | | sql.append(" concat( '/', b.uuid ) ,"); |
| | | sql.append(" a.sequence, "); |
| | | sql.append(" b.route_name,a.module_sequence "); |
| | | sql.append(" order by a.module_sequence,a.sequence"); |
| | |
| | | String file_uuid = dt.getString(i, MobileCoreConst.NAV_BAR_IMG); |
| | | try { |
| | | byte[] fileContent = fileManagerService.getFileContent(file_uuid); |
| | | if(fileContent==null || fileContent.length==0){ |
| | | dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, null); |
| | | navBarEntities.add(new NavBarEntity(dt.getFieldSetEntity(i))); |
| | | continue; |
| | | } |
| | | String bytes = Base64.encodeBase64String(fileContent); |
| | | dt.setFieldValue(i, MobileCoreConst.NAV_BAR_IMG, bytes); |
| | | } catch (Exception e) { |