| | |
| | | */ |
| | | @RequestMapping(value = "/page/list" ,method = RequestMethod.POST) |
| | | private ResultVO<List<AccidentExpressPageRespDTO>> list (@RequestBody PageQuery<AccidentExpressQuery> pageQuery){ |
| | | PageUtils.checkCheck(pageQuery.getPageIndex(), pageQuery.getPageSize()); |
| | | PageUtils.checkCheck(pageQuery); |
| | | return accidentExpressService.selectAccidentExpressList(pageQuery); |
| | | } |
| | | |
| | |
| | | @RequestMapping(value = "/add",method = RequestMethod.POST) |
| | | public ResultVO addAccidentExpress(Authentication authentication, @RequestBody AccidentExpressReqDTO AccidentExpressReqDTO) { |
| | | ContextCacheUser currentUser = (ContextCacheUser) authentication.getPrincipal(); |
| | | return accidentExpressService.addAccidentExpress(currentUser.getUid(), AccidentExpressReqDTO); |
| | | return accidentExpressService.addAccidentExpress(currentUser, AccidentExpressReqDTO); |
| | | } |
| | | |
| | | /** |