old mode 100644
new mode 100755
| | |
| | | package com.java110.report.bmo.reportFeeMonthStatistics.impl; |
| | | |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.fee.FeeConfigDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.repair.RepairUserDto; |
| | |
| | | reportFeeMonthStatistics.setObjName(reportFeeMonthStatistics.getFloorNum() |
| | | + "栋" + reportFeeMonthStatistics.getUnitNum() |
| | | + "单元" + reportFeeMonthStatistics.getRoomNum() + "室"); |
| | | } else { |
| | | } else if (FeeDto.PAYER_OBJ_TYPE_CAR.equals(reportFeeMonthStatistics.getPayerObjType())) { |
| | | reportFeeMonthStatistics.setObjName(reportFeeMonthStatistics.getCarNum()); |
| | | } else { |
| | | reportFeeMonthStatistics.setObjName(reportFeeMonthStatistics.getContractCode()); |
| | | |
| | | } |
| | | |
| | | if (!StringUtil.isEmpty(reportFeeMonthStatistics.getImportFeeName())) { |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查询报表专家 统计信息 |
| | | * |
| | | * @param reportFeeMonthStatisticsDto |
| | | * @return |
| | | */ |
| | | @Override |
| | | public ResponseEntity<String> queryReportProficientCount(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { |
| | | JSONObject result = reportFeeMonthStatisticsInnerServiceSMOImpl.queryReportProficientCount(reportFeeMonthStatisticsDto); |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(result.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | /** |
| | | * 查询报修信息 |
| | | * |
| | | * @param repairUserDto |
| | |
| | | int transferOrderNumber = 0; |
| | | //派单总数量 |
| | | int dispatchNumber = 0; |
| | | //已回访总数量 |
| | | int returnNumber = 0; |
| | | if (count > 0) { |
| | | for (RepairUserDto repairUser : repairUsers) { |
| | | RepairUserDto repairUserInfo = new RepairUserDto(); |
| | |
| | | int transferOrderAmount = 0; |
| | | //派单数量 |
| | | int dispatchAmount = 0; |
| | | //回访数量 |
| | | int returnAmount = 0; |
| | | for (RepairUserDto repair : repairUserDtoList) { |
| | | //处理中状态 |
| | | if (repair.getState().equals("10001")) { |
| | |
| | | } else if (repair.getState().equals("10006")) { //派单状态 |
| | | int amount = Integer.parseInt(repair.getAmount()); |
| | | dispatchAmount = dispatchAmount + amount; |
| | | } else if (repair.getState().equals("10008")) { //已回访状态 |
| | | int amount = Integer.parseInt(repair.getAmount()); |
| | | returnAmount = returnAmount + amount; |
| | | } |
| | | } |
| | | //员工id |
| | |
| | | repairUserInfo.setDispatchAmount(Integer.toString(dispatchAmount)); |
| | | //派单报修总数量 |
| | | repairUserInfo.setDispatchNumber(Integer.toString(dispatchNumber)); |
| | | //回访数量 |
| | | repairUserInfo.setReturnAmount(Integer.toString(returnAmount)); |
| | | //回访总数量 |
| | | repairUserInfo.setReturnNumber(Integer.toString(returnNumber)); |
| | | //员工id和姓名信息集合 |
| | | repairUserInfo.setRepairList(staffs); |
| | | repairUserList.add(repairUserInfo); |
| | |
| | | chargebackNumber = Integer.parseInt(repairUserInfo.getChargebackAmount()) + chargebackNumber; |
| | | transferOrderNumber = Integer.parseInt(repairUserInfo.getTransferOrderAmount()) + transferOrderNumber; |
| | | dispatchNumber = Integer.parseInt(repairUserInfo.getDispatchAmount()) + dispatchNumber; |
| | | returnNumber = Integer.parseInt(repairUserInfo.getReturnAmount()) + returnNumber; |
| | | } |
| | | } else { |
| | | repairUserList = new ArrayList<>(); |
| | |
| | | repairUser.setChargebackNumber(Integer.toString(chargebackNumber)); |
| | | repairUser.setTransferOrderNumber(Integer.toString(transferOrderNumber)); |
| | | repairUser.setDispatchNumber(Integer.toString(dispatchNumber)); |
| | | repairUser.setReturnNumber(Integer.toString(returnNumber)); |
| | | |
| | | //获取总条数 |
| | | int size = staffs.size(); |
| | |
| | | } |
| | | |
| | | @Override |
| | | public ResponseEntity<String> queryNoFeeRooms(RoomDto roomDto) { |
| | | int count = reportFeeMonthStatisticsInnerServiceSMOImpl.queryNoFeeRoomsCount(roomDto); |
| | | |
| | | List<RoomDto> roomDtos = null; |
| | | if (count > 0) { |
| | | roomDtos = reportFeeMonthStatisticsInnerServiceSMOImpl.queryNoFeeRooms(roomDto); |
| | | } else { |
| | | roomDtos = new ArrayList<>(); |
| | | } |
| | | |
| | | ResultVo resultVo = new ResultVo((int) Math.ceil((double) count / (double) roomDto.getRow()), count, roomDtos); |
| | | |
| | | ResponseEntity<String> responseEntity = new ResponseEntity<String>(resultVo.toString(), HttpStatus.OK); |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | @Override |
| | | public ResponseEntity<String> queryPrePayment(ReportFeeMonthStatisticsDto reportFeeMonthStatisticsDto) { |
| | | |
| | | int count = reportFeeMonthStatisticsInnerServiceSMOImpl.queryPrePaymentNewCount(reportFeeMonthStatisticsDto); |