| | |
| | | private String roomId; |
| | | private String bId; |
| | | private boolean byOwnerInfo = false; |
| | | private String communityId; |
| | | |
| | | private Date startTime; |
| | | private Date endTime; |
| | |
| | | public void setOwnerNameLike(String ownerNameLike) { |
| | | this.ownerNameLike = ownerNameLike; |
| | | } |
| | | |
| | | public String getCommunityId() { |
| | | return communityId; |
| | | } |
| | | |
| | | public void setCommunityId(String communityId) { |
| | | this.communityId = communityId; |
| | | } |
| | | } |
| | |
| | | where 1 =1 |
| | | <if test="byOwnerInfo == true"> |
| | | and t.owner_id = bow.owner_id |
| | | and bow.community_id = #{communityId} |
| | | and bow.status_cd = '0' |
| | | </if> |
| | | <if test="byOwnerInfo == true and ownerName !=null and ownerName != ''"> |
| | |
| | | where 1 =1 |
| | | <if test="byOwnerInfo == true"> |
| | | and t.owner_id = bow.owner_id |
| | | and bow.community_id = #{communityId} |
| | | and bow.status_cd = '0' |
| | | </if> |
| | | <if test="byOwnerInfo == true and ownerName !=null and ownerName != ''"> |
| | |
| | | |
| | | OwnerRoomRelDto ownerRoomRelDto = BeanConvertUtil.covertBean(reqJson, OwnerRoomRelDto.class); |
| | | ownerRoomRelDto.setByOwnerInfo(true); |
| | | ownerRoomRelDto.setCommunityId(reqJson.getString("communityId")); |
| | | int total = ownerRoomRelInnerServiceSMOImpl.queryOwnerRoomRelsCount(ownerRoomRelDto); |
| | | |
| | | apiRoomVo.setTotal(total); |
| | |
| | | } |
| | | double month = computeFeeSMOImpl.dayCompare(tmpReportFeeDto.getDeadlineTime(), tmpReportFeeDto.getEndTime()); |
| | | month = Math.ceil(month); |
| | | if(month == 0){ // 防止除数为0 |
| | | return 0; |
| | | } |
| | | double money = feePriceDec.divide(new BigDecimal(month), 2, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |
| | | return money; |
| | | } |