| | |
| | | Velocity.init(prop); |
| | | |
| | | //生成menu.xml文件 |
| | | Map<String, Map<String, List<MpkFileDTO>>> collect = entities.stream().collect(Collectors.groupingBy(MpkFileDTO::getMenuName, Collectors.groupingBy(e -> StringUtils.isNotBlank(e.getGroupName()) ? e.getGroupName() : "default_group"))); |
| | | LinkedHashMap<String, LinkedHashMap<String, List<MpkFileDTO>>> collect = entities.stream().collect(Collectors.groupingBy(MpkFileDTO::getMenuName, LinkedHashMap::new, Collectors.groupingBy(e -> StringUtils.isNotBlank(e.getGroupName()) ? e.getGroupName() : "default_group",LinkedHashMap::new,Collectors.toList()))); |
| | | Map<String, Object> map1 = new HashMap<>(); |
| | | map1.put("collects", collect); |
| | | File xmlFile = new File(dirPath.getAbsolutePath() + File.separator + "menu.xml"); |
| | |
| | | LEFT JOIN t_mpk_model_method b ON a.id = b.mpk_file_id |
| | | LEFT JOIN t_mpk_method_setting c ON b.id = c.method_id |
| | | LEFT JOIN t_mpk_setting_select d ON c.id = d.setting_id |
| | | LEFT JOIN t_mpk_file_menu e ON e.name = a.menu_name |
| | | LEFT JOIN t_mpk_file_group f ON f.menu_id = e.id and f.name = a.group_name |
| | | WHERE a.id in |
| | | <foreach collection="ids" item="item" open="(" close=")" separator=","> |
| | | #{item} |
| | | </foreach> |
| | | ORDER BY e.sort,f.sort,a.create_date |
| | | </select> |
| | | <select id="getProjectModelCount" resultType="java.lang.Integer" parameterType="java.lang.String"> |
| | | SELECT |