| | |
| | | ownerRoomRelDto.setRoomId(roomDto.getRoomId()); |
| | | List<OwnerRoomRelDto> ownerRoomRelDtos = ownerRoomRelInnerServiceSMOImpl.queryOwnerRoomRels(ownerRoomRelDto); |
| | | if (ownerRoomRelDtos == null || ownerRoomRelDtos.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "数据错误,未找到房屋和业主关系信息 roomId" + roomDto.getRoomId()); |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "数据错误,未找到房屋和业主关系信息 roomId=" + roomDto.getRoomId()); |
| | | } |
| | | OwnerDto ownerDto = new OwnerDto(); |
| | | ownerDto.setOwnerId(ownerRoomRelDtos.get(0).getOwnerId()); |
| | | ownerDto.setCommunityId(feeDto.getCommunityId()); |
| | | List<OwnerDto> ownerDtos = ownerInnerServiceSMOImpl.queryOwners(ownerDto); |
| | | |
| | | if (ownerDtos == null || ownerDtos.size() != 1) { |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "数据错误,未找到业主信息 ownerId" + ownerRoomRelDtos.get(0).getOwnerId()); |
| | | throw new ListenerExecuteException(ResponseConstant.RESULT_CODE_ERROR, "数据错误,未找到业主信息 ownerId=" + ownerRoomRelDtos.get(0).getOwnerId()); |
| | | } |
| | | ownerDto = ownerDtos.get(0); |
| | | apiFeeVo.setOwnerId(ownerDto.getOwnerId()); |
| | |
| | | import com.java110.dto.UserDto; |
| | | import com.java110.user.dao.IOwnerServiceDao; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.StringUtils; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | |
| | | //调用 小区服务查询 小区成员业主信息 |
| | | CommunityMemberDto communityMemberDto = BeanConvertUtil.covertBean(ownerDto, CommunityMemberDto.class); |
| | | communityMemberDto.setMemberTypeCd(CommunityMemberTypeConstant.OWNER); |
| | | if(StringUtils.isEmpty(communityMemberDto.getMemberId())&& !StringUtils.isEmpty(ownerDto.getOwnerId())){ |
| | | communityMemberDto.setMemberId(ownerDto.getOwnerId()); |
| | | } |
| | | List<CommunityMemberDto> communityMemberDtos = communityInnerServiceSMOImpl.getCommunityMembers(communityMemberDto); |
| | | |
| | | if (communityMemberDtos == null || communityMemberDtos.size() < 1) { |
| New file |
| | |
| | | package com.java110.web.components.fee; |
| | | |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.web.smo.IFeeServiceSMO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | /** |
| | | * @ClassName ViewPropertyFeeConfigComponent |
| | | * @Description 展示物业费信息 |
| | | * @Author wuxw |
| | | * @Date 2019/6/1 14:33 |
| | | * @Version 1.0 |
| | | * add by wuxw 2019/6/1 |
| | | **/ |
| | | @Component("propertyPay") |
| | | public class PropertyPayComponent { |
| | | |
| | | @Autowired |
| | | private IFeeServiceSMO feeServiceSMOImpl; |
| | | |
| | | public ResponseEntity<String> loadPropertyConfigData(IPageData pd) { |
| | | return feeServiceSMOImpl.loadPropertyConfigFee(pd); |
| | | } |
| | | |
| | | |
| | | public IFeeServiceSMO getFeeServiceSMOImpl() { |
| | | return feeServiceSMOImpl; |
| | | } |
| | | |
| | | public void setFeeServiceSMOImpl(IFeeServiceSMO feeServiceSMOImpl) { |
| | | this.feeServiceSMOImpl = feeServiceSMOImpl; |
| | | } |
| | | } |
| | |
| | | receivableAmount:'0.00', |
| | | receivedAmount:'0.00', |
| | | remark:'', |
| | | feeId:'' |
| | | feeId:'', |
| | | builtUpArea:'', |
| | | squarePrice:'', |
| | | additionalAmount:'' |
| | | } |
| | | }, |
| | | watch:{ |
| | | "propertyPayInfo.cycles":{//深度监听,可监听到对象、数组的变化 |
| | | handler(val, oldVal){ |
| | | vc.component.propertyPayInfo.receivableAmount = builtUpArea* squarePrice + additionalAmount; |
| | | vc.component.propertyPayInfo.receivedAmount = builtUpArea* squarePrice + additionalAmount; |
| | | }, |
| | | deep:true |
| | | } |
| | | }, |
| | | _initMethod:function(){ |
| | | |
| | | }, |
| | | _initEvent:function(){ |
| | | vc.on('propertyPay','openPayModel',function(_params){ |
| | | vc.component.refreshPropertyPayInfo(); |
| | | |
| | | $('#propertyPayModel').modal('show'); |
| | | vc.component.propertyPayInfo.feeId = _params.feeId; |
| | | vc.component.addRoomInfo.communityId = vc.getCurrentCommunity().communityId; |
| | |
| | | receivableAmount:'0.00', |
| | | receivedAmount:'0.00', |
| | | remark:'', |
| | | feeId:'' |
| | | builtUpArea:'', |
| | | feeId:'', |
| | | squarePrice:'', |
| | | additionalAmount:'' |
| | | }; |
| | | } |
| | | vc.component.loadPropertyConfigFee(); |
| | | |
| | | }, |
| | | //加载配置数据 |
| | | loadPropertyConfigFee:function(){ |
| | | var param = { |
| | | params:{ |
| | | communityId:vc.getCurrentCommunity().communityId, |
| | | configId:'' |
| | | } |
| | | }; |
| | | vc.http.get( |
| | | 'propertyPay', |
| | | 'loadPropertyConfigData', |
| | | param, |
| | | function(json,res){ |
| | | //vm.menus = vm.refreshMenuActive(JSON.parse(json),0); |
| | | if(res.status == 200){ |
| | | //关闭model |
| | | vc.copyObject(JSON.parse(json), vc.component.propertyPayInfo); |
| | | return ; |
| | | } |
| | | vc.message(json); |
| | | }, |
| | | function(errInfo,error){ |
| | | console.log('请求失败处理'); |
| | | |
| | | vc.message(errInfo); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | |
| | |
| | | </div> |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >费用开始时间:</label> |
| | | <label class="">{{mainFeeInfo.startTime}}</label> |
| | | <label class="col-form-label" >建筑面积:</label> |
| | | <label class="">{{mainFeeInfo.builtUpArea}} 平方米</label> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | <div class="row"> |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >费用开始时间:</label> |
| | | <label class="">{{mainFeeInfo.startTime}}</label> |
| | | </div> |
| | | </div> |
| | | <div class="col-sm-3"> |
| | | <div class="form-group"> |
| | | <label class="col-form-label" >费用到期时间:</label> |
| | | <label class="">{{mainFeeInfo.endTime}}</label> |
| | | </div> |
| | |
| | | floorNum:"", |
| | | roomId:"", |
| | | roomNum:"", |
| | | builtUpArea:"", |
| | | ownerId:"", |
| | | ownerName:"", |
| | | link:"", |
| | |
| | | private String startTime; |
| | | private String endTime; |
| | | private String amount; |
| | | private String builtUpArea; |
| | | |
| | | |
| | | public String getFeeId() { |
| | |
| | | public void setFloorId(String floorId) { |
| | | this.floorId = floorId; |
| | | } |
| | | |
| | | public String getBuiltUpArea() { |
| | | return builtUpArea; |
| | | } |
| | | |
| | | public void setBuiltUpArea(String builtUpArea) { |
| | | this.builtUpArea = builtUpArea; |
| | | } |
| | | } |