| | |
| | | |
| | | private final StateHouseholdOwnerService householdOwnerService; |
| | | |
| | | |
| | | //查询权利人 |
| | | @GetMapping(UrlConstants.STATE_HOUSEHOLD_OWNER_LIST_BY_SATE_HOUSEHOLD_ID) |
| | | public AjaxResult<Object> listPersons(@RequestParam String stateHouseholdId) { |
| | | JSONObject jsonObject = householdOwnerService.getPersonsInfo(stateHouseholdId); |
| | | return AjaxResult.success(jsonObject); |
| | | } |
| | | |
| | | //新增权利人 |
| | | @PostMapping(UrlConstants.STATE_HOUSEHOLD_OWNER_SAVE) |
| | | public AjaxResult<Boolean> savePerson(@RequestBody StateHouseholdOwnerBO person) { |
| | | List<StateHouseholdOwner> ownerBOList = person.getOwnerBOList(); |
| | |
| | | ); |
| | | return AjaxResult.success(householdOwnerService.saveOrUpdateBatch(ownerBOList)); |
| | | } |
| | | |
| | | //修改权利人信息 |
| | | @PostMapping(UrlConstants.STATE_HOUSEHOLD_OWNER_UPDATE) |
| | | public AjaxResult<Boolean> updatePerson(@RequestBody StateHouseholdOwner stateHouseholdOwner) { |
| | | //查询当前项目下所有的 |
| | |
| | | householdOwnerService.saveOrUpdate(stateHouseholdOwner); |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | //删除权利人 |
| | | @GetMapping(UrlConstants.STATE_HOUSEHOLD_OWNER_DELETE) |
| | | public AjaxResult<Boolean> deletePerson(@RequestParam String stateHouseholdOwnerId) { |
| | | return AjaxResult.success(householdOwnerService.removeById(stateHouseholdOwnerId)); |
| | | } |
| | | |
| | | //计算入户补偿的预估数据 |
| | | @PostMapping(UrlConstants.STATE_HOUSEHOLD_OWNER_CALCULATE_COMPENSATION) |
| | | @ApiOperation(value = "计算入户补偿的预估数据", notes = "计算入户补偿的预估数据") |
| | | public AjaxResult<CalculateCompensationVO> calculateCompensation(@RequestBody CalculateCompensationBO calculateCompensationBO) { |