| | |
| | | @ApiOperation(value = "根据日期查询值班领导") |
| | | @GetMapping("/app/getRotaLeaderByDate") |
| | | public R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return communityService.getRotaLeaderByDate(rotaDate); |
| | | return communityService.getRotaLeaderByDate(rotaDate,this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping("/patrolRecord/rota/getRotaLeaderByDate") |
| | | R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate); |
| | | R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate,@RequestParam("communityId")Long communityId); |
| | | |
| | | /** |
| | | * 批量导入值班表 |
| | |
| | | @ApiOperation(value = "根据日期查询值班领导") |
| | | @GetMapping("/getRotaLeaderByDate") |
| | | public R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return communityService.getRotaLeaderByDate(rotaDate); |
| | | return communityService.getRotaLeaderByDate(rotaDate,this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping("/rota/getRotaLeaderByDate") |
| | | public R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return comSwRotaService.getRotaLeaderByDate(rotaDate); |
| | | public R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate,@RequestParam("communityId")Long communityId) { |
| | | return comSwRotaService.getRotaLeaderByDate(rotaDate,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * |
| | | * @return 查询结果 |
| | | */ |
| | | R getRotaLeaderByDate(String rotaDate); |
| | | R getRotaLeaderByDate(String rotaDate,Long communityId); |
| | | |
| | | /** |
| | | * 选择人员 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R getRotaLeaderByDate(String rotaDate) { |
| | | public R getRotaLeaderByDate(String rotaDate,Long communityId) { |
| | | ComSwRotaDO comSwRotaDO = new ComSwRotaDO(); |
| | | try { |
| | | comSwRotaDO = comSwRotaDAO.selectOne(new QueryWrapper<ComSwRotaDO>().lambda().eq(ComSwRotaDO::getRotaDate, |
| | | new SimpleDateFormat("yyyy-MM-dd").parse(rotaDate))); |
| | | new SimpleDateFormat("yyyy-MM-dd").parse(rotaDate)).eq(ComSwRotaDO::getCommunityId,communityId)); |
| | | } catch (ParseException e) { |
| | | e.printStackTrace(); |
| | | } |