| | |
| | | |
| | | import com.java110.core.base.smo.BaseServiceSMO; |
| | | import com.java110.dto.PageDto; |
| | | import com.java110.dto.RoomDto; |
| | | import com.java110.dto.fee.FeeConfigDto; |
| | | import com.java110.dto.parking.ParkingAreaDto; |
| | | import com.java110.dto.repair.RepairSettingDto; |
| | | import com.java110.dto.room.RoomDto; |
| | | import com.java110.dto.fee.FeeDto; |
| | | import com.java110.dto.owner.OwnerAttrDto; |
| | | import com.java110.dto.owner.OwnerCarDto; |
| | | import com.java110.dto.owner.OwnerDto; |
| | | import com.java110.dto.ownerCarAttr.OwnerCarAttrDto; |
| | | import com.java110.dto.reportOwnerPayFee.ReportOwnerPayFeeDto; |
| | | import com.java110.dto.user.UserDto; |
| | | import com.java110.dto.unit.UnitDto; |
| | | import com.java110.intf.report.IReportCommunityInnerServiceSMO; |
| | | import com.java110.intf.report.IReportOwnerPayFeeInnerServiceSMO; |
| | | import com.java110.intf.user.IOwnerAttrInnerServiceSMO; |
| | | import com.java110.po.reportOwnerPayFee.ReportOwnerPayFeePo; |
| | | import com.java110.report.dao.IReportCommunityServiceDao; |
| | | import com.java110.report.dao.IReportOwnerPayFeeServiceDao; |
| | | import com.java110.utils.constant.StatusConstant; |
| | | 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.RestController; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * @ClassName FloorInnerServiceSMOImpl |
| | |
| | | List<RoomDto> roomDtos = BeanConvertUtil.covertBeanList(reportCommunityServiceDaoImpl.queryRoomsTree(BeanConvertUtil.beanCovertMap(roomDto)), RoomDto.class); |
| | | |
| | | return roomDtos; |
| | | } |
| | | |
| | | @Override |
| | | public List<UnitDto> queryCommunityUnitTree(@RequestBody UnitDto unitDto) { |
| | | //校验是否传了 分页信息 |
| | | List<UnitDto> unitDtos = BeanConvertUtil.covertBeanList( |
| | | reportCommunityServiceDaoImpl.queryCommunityUnitTree(BeanConvertUtil.beanCovertMap(unitDto)), |
| | | UnitDto.class); |
| | | |
| | | return unitDtos; |
| | | } |
| | | |
| | | @Override |
| | | public List<ParkingAreaDto> queryCommunityParkingTree(@RequestBody ParkingAreaDto parkingAreaDto) { |
| | | //校验是否传了 分页信息 |
| | | List<ParkingAreaDto> parkingAreaDtos = BeanConvertUtil.covertBeanList( |
| | | reportCommunityServiceDaoImpl.queryCommunityParkingTree(BeanConvertUtil.beanCovertMap(parkingAreaDto)), |
| | | ParkingAreaDto.class); |
| | | |
| | | return parkingAreaDtos; |
| | | } |
| | | |
| | | @Override |
| | | public List<RepairSettingDto> queryCommunityRepairTree(@RequestBody RepairSettingDto repairSettingDto) { |
| | | //校验是否传了 分页信息 |
| | | List<RepairSettingDto> repairSettingDtos = BeanConvertUtil.covertBeanList( |
| | | reportCommunityServiceDaoImpl.queryCommunityRepairTree(BeanConvertUtil.beanCovertMap(repairSettingDto)), |
| | | RepairSettingDto.class); |
| | | |
| | | return repairSettingDtos; |
| | | } |
| | | |
| | | @Override |
| | |
| | | return ownerDtos; |
| | | } |
| | | |
| | | |
| | | @Override |
| | | public int queryHisRoomCount(@RequestBody RoomDto roomDto) { |
| | | return reportCommunityServiceDaoImpl.queryHisRoomCount(BeanConvertUtil.beanCovertMap(roomDto)); |
| | | } |
| | | |
| | | @Override |
| | | public List<RoomDto> queryHisRooms(@RequestBody RoomDto roomDto) { |
| | | int page = roomDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | roomDto.setPage((page - 1) * roomDto.getRow()); |
| | | } |
| | | |
| | | List<RoomDto> roomDtos = BeanConvertUtil.covertBeanList( |
| | | reportCommunityServiceDaoImpl.queryHisRooms(BeanConvertUtil.beanCovertMap(roomDto)), |
| | | RoomDto.class); |
| | | return roomDtos; |
| | | } |
| | | |
| | | |
| | | |
| | | @Override |
| | | public int queryHisFeeCount(@RequestBody FeeDto feeDto) { |
| | | return reportCommunityServiceDaoImpl.queryHisFeeCount(BeanConvertUtil.beanCovertMap(feeDto)); |
| | |
| | | return feeDtos; |
| | | } |
| | | |
| | | @Override |
| | | public int queryHisFeeConfigCount(@RequestBody FeeConfigDto feeDto) { |
| | | return reportCommunityServiceDaoImpl.queryHisFeeConfigCount(BeanConvertUtil.beanCovertMap(feeDto)); |
| | | } |
| | | |
| | | @Override |
| | | public List<FeeConfigDto> queryHisFeeConfigs(@RequestBody FeeConfigDto feeDto) { |
| | | int page = feeDto.getPage(); |
| | | |
| | | if (page != PageDto.DEFAULT_PAGE) { |
| | | feeDto.setPage((page - 1) * feeDto.getRow()); |
| | | } |
| | | |
| | | List<FeeConfigDto> feeDtos = BeanConvertUtil.covertBeanList( |
| | | reportCommunityServiceDaoImpl.queryHisFeeConfigs(BeanConvertUtil.beanCovertMap(feeDto)), |
| | | FeeConfigDto.class); |
| | | |
| | | return feeDtos; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 获取批量userId |
| | | * |