java110-db/src/main/resources/mapper/report/ReportFeeMonthStatisticsServiceDaoImplMapper.xml
@@ -942,6 +942,24 @@ order by objCount </select> <select id="queryDeadlinePaymentCount" parameterType="Map" resultType="Map"> SELECT t.fee_name feeName, count(t.obj_id) objCount FROM report_fee_month_statistics t WHERE 1 = 1 AND t.status_cd = '0' and t.community_id= #{communityId} AND t.deadline_time > #{startTime} AND t.deadline_time < #{endTime} group by t.config_id,t.fee_name order by objCount desc </select> <select id="queryOwePaymentCount" parameterType="Map" resultType="Map"> select t.fee_name feeName,count(t.obj_id) objCount from report_fee_month_statistics t java110-interface/src/main/java/com/java110/intf/report/IReportFeeMonthStatisticsInnerServiceSMO.java
@@ -183,6 +183,15 @@ */ @RequestMapping(value = "/queryPrePaymentCount", method = RequestMethod.POST) List<ReportFeeMonthStatisticsDto> queryPrePaymentCount(@RequestBody ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); /** * 查询预付费户数 * * @param reportFeeMonthStatisticsDto * @return */ @RequestMapping(value = "/queryDeadlinePaymentCount", method = RequestMethod.POST) List<ReportFeeMonthStatisticsDto> queryDeadlinePaymentCount(@RequestBody ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); /** * 查询预付费户数 * service-report/src/main/java/com/java110/report/api/ReportFeeMonthStatisticsApi.java
@@ -336,6 +336,24 @@ reportFeeMonthStatisticsDto.setEndTime(DateUtil.getFormatTimeString(calendar.getTime(), DateUtil.DATE_FORMATE_STRING_A)); return getReportFeeMonthStatisticsBMOImpl.queryPrePaymentCount(reportFeeMonthStatisticsDto); } /** * 查询到期提醒 * * @param communityId 小区ID * @return * @serviceCode /reportFeeMonthStatistics/queryDeadlineCount * @path /app/reportFeeMonthStatistics/queryDeadlineCount */ @RequestMapping(value = "/queryDeadlineCount", method = RequestMethod.GET) public ResponseEntity<String> queryDeadlineCount(@RequestParam(value = "communityId") String communityId) { ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto = new ReportFeeMonthStatisticsDto(); reportFeeMonthStatisticsDto.setCommunityId(communityId); reportFeeMonthStatisticsDto.setStartTime(DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DAY_OF_MONTH, 7); reportFeeMonthStatisticsDto.setEndTime(DateUtil.getFormatTimeString(calendar.getTime(), DateUtil.DATE_FORMATE_STRING_A)); return getReportFeeMonthStatisticsBMOImpl.queryDeadlinePaymentCount(reportFeeMonthStatisticsDto); } /** * 查询费用分项表 service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/IGetReportFeeMonthStatisticsBMO.java
@@ -35,6 +35,7 @@ ResponseEntity<String> queryDeadlineFee(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); ResponseEntity<String> queryPrePaymentCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); ResponseEntity<String> queryDeadlinePaymentCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); ResponseEntity<String> queryPrePayment(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); ResponseEntity<String> queryOwePaymentCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto); service-report/src/main/java/com/java110/report/bmo/reportFeeMonthStatistics/impl/GetReportFeeMonthStatisticsBMOImpl.java
@@ -176,6 +176,20 @@ } @Override public ResponseEntity<String> queryDeadlinePaymentCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = null; reportFeeMonthStatisticsDtos = reportFeeMonthStatisticsInnerServiceSMOImpl.queryDeadlinePaymentCount(reportFeeMonthStatisticsDto); ResultVo resultVo = new ResultVo(reportFeeMonthStatisticsDtos); ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); return responseEntity; } @Override public ResponseEntity<String> queryOwePaymentCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticsDtos = null; service-report/src/main/java/com/java110/report/dao/IReportFeeMonthStatisticsServiceDao.java
@@ -188,6 +188,7 @@ * @throws DAOException DAO异常 */ List<Map> queryPrePaymentCount(Map info) throws DAOException; List<Map> queryDeadlinePaymentCount(Map info) throws DAOException; /** * 查询预交费 * 根据bId 查询费用月统计信息 service-report/src/main/java/com/java110/report/dao/impl/ReportFeeMonthStatisticsServiceDaoImpl.java
@@ -264,6 +264,15 @@ return businessReportFeeMonthStatisticsInfos; } @Override public List<Map> queryDeadlinePaymentCount(Map info) throws DAOException { logger.debug("查询费用月统计信息 入参 info : {}", info); List<Map> businessReportFeeMonthStatisticsInfos = sqlSessionTemplate.selectList("reportFeeMonthStatisticsServiceDaoImpl.queryDeadlinePaymentCount", info); return businessReportFeeMonthStatisticsInfos; } @Override public List<Map> queryOwePaymentCount(Map info) throws DAOException { service-report/src/main/java/com/java110/report/smo/impl/ReportFeeMonthStatisticsInnerServiceSMOImpl.java
@@ -222,6 +222,16 @@ } @Override public List<ReportFeeMonthStatisticsDto> queryDeadlinePaymentCount(@RequestBody ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { //校验是否传了 分页信息 List<ReportFeeMonthStatisticsDto> reportFeeMonthStatisticss = BeanConvertUtil.covertBeanList(reportFeeMonthStatisticsServiceDaoImpl.queryDeadlinePaymentCount(BeanConvertUtil.beanCovertMap(reportFeeMonthStatisticsDto)), ReportFeeMonthStatisticsDto.class); return reportFeeMonthStatisticss; } @Override public List<ReportFeeMonthStatisticsDto> queryOwePaymentCount(@RequestBody ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { //校验是否传了 分页信息