| | |
| | | @PostMapping("/merchant/add") |
| | | public R addMerchant(@RequestBody @Validated(AddGroup.class) ConvenientMerchantDTO convenientMerchantDTO) { |
| | | convenientMerchantDTO.setCreatedBy(this.getUserId()); |
| | | convenientMerchantDTO.setAreaCode(this.getAreaCode()); |
| | | return communityService.addMerchant(convenientMerchantDTO); |
| | | } |
| | | |
| | |
| | | private String contactName; |
| | | |
| | | @ApiModelProperty("联系人电话") |
| | | @NotBlank(groups = AddGroup.class, message = "联系人电话不可为空") |
| | | private String contactPhone; |
| | | |
| | | @ApiModelProperty("是否签到 1 是 0否") |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | R getWestCommunityLists(String areaCode); |
| | | R getWestCommunityLists(@RequestParam("areaCode")String areaCode); |
| | | |
| | | /** |
| | | * 综治app-小区列表 |
| | |
| | | @ApiOperation(value = "分页查询所有数据",response = ComPropertyVO.class) |
| | | @PostMapping("queryAll") |
| | | public R selectAll(@RequestBody CommonPage commonPage) { |
| | | commonPage.setParamId(this.getCommunityId()); |
| | | return this.propertyService.comPropertyHelpSelectAll(commonPage); |
| | | } |
| | | |
| | |
| | | * @return 社区列表 |
| | | */ |
| | | @GetMapping("/eventgrid/community/westList") |
| | | public R getWestCommunityLists(String areaCode) { |
| | | public R getWestCommunityLists(@RequestParam("areaCode")String areaCode) { |
| | | return comActService.getWestCommunityLists(areaCode); |
| | | } |
| | | |
| | |
| | | "HAVING distance >= 0 and distance <= #{communityDTO.distance} ORDER BY distance ASC") |
| | | List<CommunitySwitchAllAppletsVO> getCommunityListByNearby(@Param("communityDTO") SearchCommunityDTO communityDTO); |
| | | |
| | | @Select("select community_id,name,lng,lat from com_act where state = 0 <if test='areaCode !=null'> and area_code = #{areaCode} </if> ") |
| | | @Select("<script> select community_id,name,lng,lat from com_act where state = 0 <if test='areaCode !=null'> and area_code = #{areaCode} </if> </script>") |
| | | List<EventGridCommunityAdminVO> getWestCommunityLists(@Param("areaCode") String areCode); |
| | | |
| | | @Select("select account,plaintext_password as password from com_act where community_id = ${communityId}") |
| | |
| | | List<ComMngCarDO> existList = comMngCarDAO.selectList( |
| | | new QueryWrapper<ComMngCarDO>().lambda().eq(ComMngCarDO::getPlateNum, comMngCarSaveDTO.getPlateNum())); |
| | | if (!existList.isEmpty()) { |
| | | return R.ok("车辆已存在"); |
| | | return R.fail("车辆已存在"); |
| | | } |
| | | } |
| | | ComMngVillageDO comMngVillageDO = comMngVillageDAO.selectById(comMngCarSaveDTO.getAreaId()); |
| | |
| | | queryWrapper.orderByDesc(SysRoleDO::getCreateAt); |
| | | IPage<SysRoleDO> sysRoleDOIPage=this.roleDAO.selectPage(new Page<>(pageNum,pageSize),queryWrapper); |
| | | if (ObjectUtils.isEmpty(sysRoleDOIPage.getRecords())) { |
| | | return R.fail("角色列表为空"); |
| | | return R.ok("角色列表为空"); |
| | | } |
| | | return R.ok(sysRoleDOIPage); |
| | | } |