| | |
| | | package com.zy.acs.manager.manager.controller; |
| | | |
| | | import com.zy.acs.framework.common.Cools; |
| | | import com.zy.acs.framework.common.R; |
| | | import com.zy.acs.manager.common.domain.BaseParam; |
| | | import com.zy.acs.manager.common.domain.PageParam; |
| | | import com.zy.acs.manager.manager.entity.Route; |
| | | import com.zy.acs.manager.manager.service.MissionService; |
| | | import com.zy.acs.manager.manager.service.SegmentService; |
| | | import com.zy.acs.manager.system.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | public class MissionController extends BaseController { |
| | | |
| | | @Autowired |
| | | private MissionService missionService; |
| | | private MissionService missionService; |
| | | @Autowired |
| | | private SegmentService segmentService; |
| | | |
| | | @PreAuthorize("hasAuthority('manager:mission:list')") |
| | | @PostMapping("/mission/page") |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<Route, BaseParam> pageParam = new PageParam<>(baseParam, Route.class); |
| | | |
| | | return R.ok().add(null); |
| | | return R.ok().add(Cools.add("total", Integer.MAX_VALUE).add("records", missionService.getList())); |
| | | } |
| | | |
| | | } |