| | |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComMngPopulationService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | @Resource |
| | | private ComMngPopulationService comMngPopulationService; |
| | | |
| | | @PostMapping("list/app") |
| | | @PostMapping("/list/app") |
| | | public R pagePopulationList(@RequestBody PagePopulationListDTO populationListDTO) { |
| | | return comMngPopulationService.pagePopulationListApp(populationListDTO); |
| | | } |
| | | |
| | | @GetMapping("/detail/app") |
| | | public R getPopulationDetail(@RequestParam("populationId") Long populationId) { |
| | | return comMngPopulationService.getPopulationDetailApp(populationId); |
| | | } |
| | | |
| | | @GetMapping("/repair") |
| | | public R repair() { |
| | | return comMngPopulationService.getPopulationRepairByApp(); |
| | | } |
| | | |
| | | |
| | | |
| | | } |