| | |
| | | @ApiOperation(value = "根据日期查询值班人员") |
| | | @GetMapping("/app/getRotaPersonByDate") |
| | | public R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return communityService.getRotaPersonByDate(rotaDate); |
| | | return communityService.getRotaPersonByDate(rotaDate,this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | @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/getRotaPersonByDate") |
| | | R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate); |
| | | R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate,@RequestParam("communityId")Long communityId); |
| | | |
| | | /** |
| | | * 根据日期查询值班领导 |
| | |
| | | * @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("/getRotaPersonByDate") |
| | | public R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return communityService.getRotaPersonByDate(rotaDate); |
| | | return communityService.getRotaPersonByDate(rotaDate,this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | @ApiOperation(value = "根据日期查询值班领导") |
| | | @GetMapping("/getRotaLeaderByDate") |
| | | public R getRotaLeaderByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return communityService.getRotaLeaderByDate(rotaDate); |
| | | return communityService.getRotaLeaderByDate(rotaDate,this.getCommunityId()); |
| | | } |
| | | |
| | | /** |
| | |
| | | if (photo1.size() != 0 && null != photo1) { |
| | | List<Object> list=new ArrayList<>(); |
| | | for (int i = 0; i < photo1.size(); i++) { |
| | | downloadPicture(photo1.get(i), comSwDangerReportVO.getId() + "_find_" + i, "d:/dangerReport/file/"); |
| | | list.add(getImageStr("d:/dangerReport/file/" + comSwDangerReportVO.getId() + "_find_" + i + ".jpg")); |
| | | downloadPicture(photo1.get(i), comSwDangerReportVO.getId() + "_step_" + i, "d:/dangerReport/file/"); |
| | | list.add(getImageStr("d:/dangerReport/file/" + comSwDangerReportVO.getId() + "_step_" + i + ".jpg")); |
| | | } |
| | | dataMap.put("imgList",list); |
| | | } |
| | |
| | | * @return 查询结果 |
| | | */ |
| | | @GetMapping("/rota/getRotaPersonByDate") |
| | | public R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate) { |
| | | return comSwRotaService.getRotaPersonByDate(rotaDate); |
| | | public R getRotaPersonByDate(@RequestParam(value = "rotaDate") String rotaDate,@RequestParam("communityId")Long communityId) { |
| | | return comSwRotaService.getRotaPersonByDate(rotaDate,communityId); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @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 getRotaPersonByDate(String rotaDate); |
| | | R getRotaPersonByDate(String rotaDate,Long communityId); |
| | | |
| | | /** |
| | | * 查询当天值班领导 |
| | | * |
| | | * @return 查询结果 |
| | | */ |
| | | R getRotaLeaderByDate(String rotaDate); |
| | | R getRotaLeaderByDate(String rotaDate,Long communityId); |
| | | |
| | | /** |
| | | * 选择人员 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public R getRotaPersonByDate(String rotaDate) { |
| | | public R getRotaPersonByDate(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(); |
| | | } |
| | |
| | | } |
| | | |
| | | @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(); |
| | | } |