| | |
| | | * @path /app/feeApi/listOweFees |
| | | */ |
| | | @RequestMapping(value = "/listOweFees", method = RequestMethod.GET) |
| | | public ResponseEntity<String> listOweFees( |
| | | @RequestParam(value = "payObjId", required = false) String payObjId, |
| | | @RequestParam(value = "payObjType", required = false) String payObjType, |
| | | @RequestParam(value = "ownerId", required = false) String ownerId, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | |
| | | public ResponseEntity<String> listOweFees(@RequestParam(value = "payObjId", required = false) String payObjId, |
| | | @RequestParam(value = "payObjType", required = false) String payObjType, |
| | | @RequestParam(value = "ownerId", required = false) String ownerId, |
| | | @RequestParam(value = "communityId") String communityId) { |
| | | if (StringUtil.isEmpty(payObjId) && StringUtil.isEmpty(ownerId)) { |
| | | throw new IllegalArgumentException("费用对象或者业主不能都为空"); |
| | | } |
| | | FeeDto feeDto = new FeeDto(); |
| | | feeDto.setPayerObjId(payObjId); |
| | | if(!StringUtil.isEmpty(payObjId)) { |
| | | if (payObjId.contains(",")) { |
| | | feeDto.setPayerObjIds(payObjId.split(",")); |
| | | } else { |
| | | feeDto.setPayerObjId(payObjId); |
| | | } |
| | | } |
| | | feeDto.setPayerObjType(payObjType); |
| | | feeDto.setOwnerId(ownerId); |
| | | feeDto.setCommunityId(communityId); |