| | |
| | | import com.java110.report.dao.IReportFeeYearCollectionServiceDao; |
| | | import com.java110.report.dao.IReportOweFeeServiceDao; |
| | | import com.java110.service.smo.ISaveSystemErrorSMO; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.utils.util.DateUtil; |
| | | import com.java110.utils.util.ExceptionUtil; |
| | | import com.java110.utils.util.*; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.scheduling.annotation.Async; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | // List<CommunityDto> communityDtos = BeanConvertUtil.covertBeanList( |
| | | // reportCommunityServiceDaoImpl.getCommunitys(BeanConvertUtil.beanCovertMap(communityDto)), CommunityDto.class); |
| | | |
| | | List<CommunityDto> communityDtos =communityInnerServiceSMOImpl.queryCommunitys(communityDto); |
| | | List<CommunityDto> communityDtos = communityInnerServiceSMOImpl.queryCommunitys(communityDto); |
| | | |
| | | for (CommunityDto tmpCommunityDto : communityDtos) { |
| | | reportFeeMonthStatisticsPo.setCommunityId(tmpCommunityDto.getCommunityId()); |
| | |
| | | String communityId = reportFeeMonthStatisticsPo.getCommunityId(); |
| | | |
| | | Assert.hasLength(communityId, "未包含小区信息"); |
| | | |
| | | // |
| | | feeDataFiltering(communityId); |
| | | |
| | | //查询费用项 |
| | | FeeConfigDto feeConfigDto = new FeeConfigDto(); |
| | |
| | | } |
| | | |
| | | } |
| | | private void feeDataFiltering(String communityId) { |
| | | |
| | | Map reportFeeDto = new HashMap(); |
| | | reportFeeDto.put("communityId", communityId); |
| | | List<Map> feeDtos = reportOweFeeServiceDaoImpl.queryInvalidOweFee(reportFeeDto); |
| | | |
| | | List<String> feeIds = new ArrayList<>(); |
| | | for (Map feeDto : feeDtos) { |
| | | if (!feeDto.containsKey("feeId") || StringUtil.isNullOrNone(feeDto.get("feeId"))) { |
| | | continue; |
| | | } |
| | | |
| | | feeIds.add(feeDto.get("feeId").toString()); |
| | | |
| | | if (feeIds.size() >= 50) { |
| | | reportFeeDto.put("feeIds", feeIds); |
| | | reportOweFeeServiceDaoImpl.deleteInvalidFee(reportFeeDto); |
| | | feeIds = new ArrayList<>(); |
| | | } |
| | | } |
| | | reportFeeDto.put("feeIds", feeIds); |
| | | if (feeIds.size() > 0) { |
| | | reportOweFeeServiceDaoImpl.deleteInvalidFee(reportFeeDto); |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 按费用项来出账 |
| | |
| | | List<ReportFeeDto> feeDtos = reportFeeServiceDaoImpl.getFees(feeDto); |
| | | |
| | | //没有关联费用 |
| | | if (feeDto == null || feeDtos.size() < 1) { |
| | | if (feeDtos == null || feeDtos.size() < 1) { |
| | | return; |
| | | } |
| | | for (ReportFeeDto tmpFeeDto : feeDtos) { |