| | |
| | | package com.panzhihua.service_community.api; |
| | | |
| | | import com.panzhihua.common.model.dtos.community.PageComOpsHouseDTO; |
| | | import com.panzhihua.common.exceptions.ServiceException; |
| | | import com.panzhihua.common.model.dtos.community.*; |
| | | import com.panzhihua.common.model.dtos.elders.ComEldersAuthGetResultDTO; |
| | | import com.panzhihua.common.model.dtos.elders.ComEldersAuthPageDTO; |
| | | import com.panzhihua.common.model.dtos.elders.ComEldersAuthUserAddAppDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.elders.ComElderAuthUserDetailVO; |
| | | import com.panzhihua.common.model.dtos.community.EldersAuthTypeQueryDTO; |
| | | import com.panzhihua.common.model.vos.community.SysConfVO; |
| | | import com.panzhihua.common.model.dtos.community.PageComEldersRecordsDTO; |
| | | import com.panzhihua.service_community.model.dos.ComEldersAuthUserDO; |
| | | import com.panzhihua.service_community.model.dos.EldersAuthDO; |
| | | import com.panzhihua.common.model.vos.community.ComEldersAuthElderlyDetailsVO; |
| | |
| | | */ |
| | | @PostMapping("/add/auth") |
| | | public R addAuth(@RequestBody ComEldersAuthGetResultDTO authGetResultDTO){ |
| | | return eldersAuthService.addAuthByEldersApp(authGetResultDTO); |
| | | try { |
| | | return eldersAuthService.addAuthByEldersApp(authGetResultDTO); |
| | | } catch (Exception e) { |
| | | throw new ServiceException(e.getMessage()); |
| | | } |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @PostMapping("/page/auth") |
| | | public R pageEldersByApp(@RequestBody ComEldersAuthPageDTO authPageDTO){ |
| | | public R pageEldersByApp(@RequestBody ComEldersAuthPageDTO authPageDTO) throws Exception{ |
| | | return eldersAuthService.pageEldersByApp(authPageDTO); |
| | | } |
| | | |
| | |
| | | return eldersAuthService.communityAuthType(eldersAuthTypeQueryDTO); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 分页查询生存认证记录 |
| | | * @param pageEldersAuthElderlyDTO |
| | | * @return |
| | | */ |
| | | @PostMapping("/records/page") |
| | | R pageQueryEldersAuthRecord(@RequestBody PageEldersAuthRecordDTO pageEldersAuthElderlyDTO){ |
| | | return eldersAuthService.pageQueryEldersAuthRecord(pageEldersAuthElderlyDTO); |
| | | } |
| | | |
| | | @PostMapping("/getAuthHistoryList") |
| | | public R getAuthHistoryList(@RequestBody PageEldersAuthHistoryDTO pageEldersAuthElderlyDTO){ |
| | | return eldersAuthService.getAuthHistoryList(pageEldersAuthElderlyDTO); |
| | | } |
| | | |
| | | @PostMapping("/getAuthHistoryExport") |
| | | public R getAuthHistoryExport(@RequestBody PageEldersAuthHistoryDTO pageEldersAuthElderlyDTO){ |
| | | return eldersAuthService.getAuthHistoryExport(pageEldersAuthElderlyDTO); |
| | | } |
| | | |
| | | |
| | | } |