| | |
| | | import com.ard.common.enums.BusinessType; |
| | | import com.ard.common.utils.poi.ExcelUtil; |
| | | import com.ard.route.domain.route.ArdRouteGroup; |
| | | import com.ard.route.domain.vo.ArdRouteGroupVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | */ |
| | | @Api(tags = "分组管理") |
| | | @RestController |
| | | @RequestMapping("/route/grouping") |
| | | @RequestMapping("/route/group") |
| | | public class ArdRouteGroupController extends BaseController { |
| | | |
| | | @Autowired |
| | |
| | | try { |
| | | Map<String, Integer> result = ardRouteGroupService.deleteArdRouteGroupByIds(ids); |
| | | if (!result.isEmpty()) { |
| | | return AjaxResult.success("删除成功:分组删除" + result.get("groupingCount") + ",航线删除" + result.get("informationCount")); |
| | | return AjaxResult.success("删除成功:分组删除" + result.get("groupCount") + ",航线删除" + result.get("infoCount")); |
| | | } else { |
| | | return AjaxResult.success("没有删除分组信息。"); |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 分组列表 |
| | | */ |
| | | @ApiOperation("分组列表") |
| | | @GetMapping("/groupList") |
| | | public TableDataInfo groupList(ArdRouteGroup ardRouteGroup) { |
| | | List<ArdRouteGroupVo> list = ardRouteGroupService.selectGroupList(ardRouteGroup); |
| | | return getDataTable(list); |
| | | } |
| | | |
| | | } |