| | |
| | | import com.iailab.module.model.mpk.service.PackService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import org.apache.commons.io.IOUtils; |
| | | import org.apache.commons.lang.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import org.springframework.util.CollectionUtils; |
| | |
| | | public CommonResult<MpkFileDTO> info(@PathVariable("id") String id) { |
| | | MpkFileDTO schedule = mpkFileService.get(id); |
| | | List<String> menuAndGroup = new ArrayList<>(); |
| | | menuAndGroup.add(schedule.getMenuName()); |
| | | menuAndGroup.add(schedule.getGroupName()); |
| | | if (StringUtils.isNotBlank(schedule.getMenuName())) { |
| | | menuAndGroup.add(schedule.getMenuName()); |
| | | } |
| | | if (StringUtils.isNotBlank(schedule.getGroupName())) { |
| | | menuAndGroup.add(schedule.getGroupName()); |
| | | } |
| | | schedule.setMenuAndGroup(menuAndGroup); |
| | | return success(schedule); |
| | | } |