| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/saveOrUpdate") |
| | | public R saveOrUpdate(@Valid @RequestBody PropertyCompanyDistrictEntity propertyCompanyDistrict) { |
| | | public R saveOrUpdate(@Valid @RequestBody PropertyCompanyDistrictEntity propertyCompanyDistrict) throws Exception { |
| | | return R.status(propertyCompanyDistrictService.saveOrUpdatePropertyCompanyDistrict(propertyCompanyDistrict)); |
| | | } |
| | | |
| | |
| | | @ApiOperation(value = "逻辑删除", notes = "传入ids") |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(propertyCompanyDistrictService.removeByIds(Func.toIntList(ids))); |
| | | } |
| | | |
| | | /** |
| | | * 通过houseCod获取物业人员 |
| | | */ |
| | | @GetMapping("/getDistictUserByCode") |
| | | @ApiOperationSupport(order = 7) |
| | | @ApiOperation(value = "通过houseCod获取物业人员", notes = "houseCode") |
| | | public R getDistictUserByCode(@RequestParam("houseCode") String houseCode) { |
| | | return R.data(propertyCompanyDistrictService.getDistictUserByCode(houseCode)); |
| | | } |
| | | |
| | | |