许鹏程
2023-08-21 1738593e6df795389747c53b15d136ea85b0f03d
src/main/java/com/product/mobile/core/service/NavBarManagerService.java
@@ -138,7 +138,7 @@
        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 ");
@@ -160,7 +160,7 @@
        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");
@@ -177,6 +177,11 @@
                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) {