| | |
| | | </if> |
| | | </update> |
| | | |
| | | |
| | | <!-- 修改费用月统计信息 add by wuxw 2018-07-03 --> |
| | | <update id="updateReportFeeMonthStatisticsInfo" parameterType="Map"> |
| | | update report_fee_month_statistics t set t.status_cd = #{statusCd} |
| | |
| | | </select> |
| | | |
| | | |
| | | |
| | | <!--清理报表 无效数据--> |
| | | <update id="deleteInvalidFee" parameterType="Map"> |
| | | delete from report_fee_month_statistics where fee_id not in ( |
| | | select t.fee_id from pay_fee t |
| | | inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0' |
| | | where t.status_cd = '0' |
| | | and t.community_id= #{communityId} |
| | | ) |
| | | and community_id = #{communityId} |
| | | </update> |
| | | </mapper> |
| | |
| | | </if> |
| | | </update> |
| | | |
| | | |
| | | |
| | | <!-- 查询欠费统计数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryReportOweFeesCount" parameterType="Map" resultType="Map"> |
| | | select count(distinct(t.payer_obj_id)) count |
| | |
| | | GROUP BY t.config_id,t.config_name |
| | | </select> |
| | | |
| | | |
| | | <update id="deleteInvalidFee" parameterType="Map"> |
| | | delete from report_owe_fee where fee_id not in ( |
| | | select t.fee_id from pay_fee t |
| | | inner join pay_fee_config pfc on t.config_id = pfc.config_id and pfc.status_cd = '0' |
| | | where t.status_cd = '0' |
| | | and t.community_id= #{communityId} |
| | | ) |
| | | and community_id = #{communityId} |
| | | </update> |
| | | |
| | | </mapper> |
| | |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName IReportOweFeeInnerServiceSMO |
| | |
| | | double computeReportOweFeeTotalAmount(@RequestBody ReportOweFeeDto reportOweFeeDto); |
| | | @RequestMapping(value = "/computeReportOweFeeItemAmount", method = RequestMethod.POST) |
| | | List<ReportOweFeeItemDto> computeReportOweFeeItemAmount(@RequestBody ReportOweFeeDto reportOweFeeDto); |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param reportOweFeeDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | @RequestMapping(value = "/deleteInvalidFee", method = RequestMethod.POST) |
| | | int deleteInvalidFee(@RequestBody Map reportOweFeeDto); |
| | | |
| | | } |
| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName GenerateOwnerBillTemplate |
| | |
| | | */ |
| | | private void GenerateOweFee(TaskDto taskDto, CommunityDto communityDto) { |
| | | |
| | | |
| | | //删除无用数据 |
| | | |
| | | feeDataFiltering(communityDto.getCommunityId()); |
| | | |
| | | //查询费用项 |
| | | FeeConfigDto feeConfigDto = new FeeConfigDto(); |
| | | feeConfigDto.setCommunityId(communityDto.getCommunityId()); |
| | |
| | | |
| | | } |
| | | |
| | | private void feeDataFiltering(String communityId) { |
| | | Map reportFeeDto = new HashMap(); |
| | | reportFeeDto.put("communityId", communityId); |
| | | reportOweFeeInnerServiceSMOImpl.deleteInvalidFee(reportFeeDto); |
| | | } |
| | | |
| | | /** |
| | | * 按费用项来出账 |
| | | * |
| | |
| | | * @return |
| | | */ |
| | | List<Map> queryRoomAndParkingSpace(Map info); |
| | | |
| | | int deleteInvalidFee(Map info); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | double getFeeReceivedAmount(ReportFeeDetailDto reportFeeDetailDto); |
| | | |
| | | } |
| | |
| | | double computeReportOweFeeTotalAmount(Map beanCovertMap); |
| | | |
| | | List<Map> computeReportOweFeeItemAmount(Map beanCovertMap); |
| | | |
| | | int deleteInvalidFee(Map reportFeeDto); |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | public int deleteInvalidFee(Map info){ |
| | | logger.debug("deleteInvalidFee 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.update("reportFeeMonthStatisticsServiceDaoImpl.deleteInvalidFee", info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | return businessReportOweFeeInfos; |
| | | } |
| | | |
| | | @Override |
| | | public int deleteInvalidFee(Map info) { |
| | | logger.debug("保deleteInvalidFee 入参 info : {}", info); |
| | | |
| | | int saveFlag = sqlSessionTemplate.insert("reportOweFeeServiceDaoImpl.deleteInvalidFee", info); |
| | | |
| | | return saveFlag; |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | |
| | | Assert.hasLength(communityId, "未包含小区信息"); |
| | | |
| | | //这里处理 报表中的费用是否被人为 取消 或者费用项是否被删除,这种数据 报表中做清理,以防影响 报表的准确度 |
| | | feeDataFiltering(communityId); |
| | | |
| | | //处理房屋费用 |
| | | dealRoomFee(reportFeeMonthStatisticsPo); |
| | | |
| | |
| | | dealFinishFee(communityId); |
| | | } |
| | | |
| | | private void feeDataFiltering(String communityId) { |
| | | Map reportFeeDto = new HashMap(); |
| | | reportFeeDto.put("communityId", communityId); |
| | | reportFeeMonthStatisticsServiceDaoImpl.deleteInvalidFee(reportFeeDto); |
| | | } |
| | | |
| | | private void dealFinishFee(String communityId) { |
| | | Map reportFeeDto = new HashMap(); |
| | | reportFeeDto.put("communityId", communityId); |
| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | |
| | | |
| | | Assert.hasLength(communityId, "未包含小区信息"); |
| | | |
| | | // |
| | | feeDataFiltering(communityId); |
| | | |
| | | //查询费用项 |
| | | FeeConfigDto feeConfigDto = new FeeConfigDto(); |
| | | feeConfigDto.setCommunityId(communityId); |
| | |
| | | } |
| | | |
| | | } |
| | | private void feeDataFiltering(String communityId) { |
| | | Map reportFeeDto = new HashMap(); |
| | | reportFeeDto.put("communityId", communityId); |
| | | reportOweFeeServiceDaoImpl.deleteInvalidFee(reportFeeDto); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 按费用项来出账 |
| | |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestMethod; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | |
| | | return saveFlag; |
| | | } |
| | | |
| | | /** |
| | | * 查询<p>小区楼</p>总记录数 |
| | | * |
| | | * @param reportOweFeeDto 数据对象分享 |
| | | * @return 小区下的小区楼记录数 |
| | | */ |
| | | public int deleteInvalidFee(@RequestBody Map reportOweFeeDto){ |
| | | return reportOweFeeServiceDaoImpl.deleteInvalidFee(reportOweFeeDto); |
| | | } |
| | | |
| | | @Override |
| | | public List<ReportOweFeeDto> queryReportOweFees(@RequestBody ReportOweFeeDto reportOweFeeDto) { |
| | | |