| | |
| | | import com.java110.core.factory.GenerateCodeFactory; |
| | | import com.java110.core.smo.IComputeFeeSMO; |
| | | import com.java110.dto.PropertyWhiteListFlowDto; |
| | | import com.java110.dto.community.CommunityDto; |
| | | import com.java110.dto.contract.ContractDto; |
| | | import com.java110.dto.contract.ContractPartyaDto; |
| | | import com.java110.dto.fee.*; |
| | |
| | | import com.java110.fee.cmd.fee.PayFeePreCmd; |
| | | import com.java110.intf.IImportPropertyWhiteListfFlowServiceSMO; |
| | | import com.java110.intf.common.ICarInoutInnerServiceSMO; |
| | | import com.java110.intf.community.ICommunityInnerServiceSMO; |
| | | import com.java110.intf.community.IRoomInnerServiceSMO; |
| | | import com.java110.intf.fee.*; |
| | | import com.java110.intf.store.IContractInnerServiceSMO; |
| | |
| | | @Autowired |
| | | private ImportRoomFeeQueueDataAdapt importRoomFeeQueueDataAdapt; |
| | | |
| | | @Autowired |
| | | private ICommunityInnerServiceSMO communityInnerServiceSMO; |
| | | |
| | | @Override |
| | | public void importData(List<AssetImportLogDetailDto> assetImportLogDetailDtos) { |
| | | |
| | | String communityId = assetImportLogDetailDtos.get(0).getCommunityId(); |
| | | CommunityDto communityDto = new CommunityDto(); |
| | | communityDto.setCommunityId(communityId); |
| | | List<CommunityDto> communityDtos = communityInnerServiceSMO.queryCommunitys(communityDto); |
| | | for (AssetImportLogDetailDto assetImportLogDetailDto : assetImportLogDetailDtos) { |
| | | try { |
| | | assetImportLogDetailDto.setTakeTime(communityDtos.get(0).getTakeTime()); |
| | | importDatas(assetImportLogDetailDto); |
| | | updateImportLogDetailState(assetImportLogDetailDto.getDetailId()); |
| | | } catch (Exception e) { |
| | |
| | | String communityId = assetImportLogDetailDto.getCommunityId(); |
| | | JSONObject data = JSONObject.parseObject(assetImportLogDetailDto.getContent()); |
| | | ImportRoomFee importRoomFee = BeanConvertUtil.covertBean(data, ImportRoomFee.class); |
| | | if (DateUtil.getDateFromStringB(data.getString("chargeStart").split(" ")[0]).getTime() <= DateUtil.getDateFromStringB(assetImportLogDetailDto.getTakeTime().split(" ")[0]).getTime()){ |
| | | throw new IllegalStateException("该费用为起始时间小于小区接管时间不进行导入"); |
| | | } |
| | | if (importRoomFee.getEndTime() != null){ |
| | | String[] split = importRoomFee.getEndTime().split(" "); |
| | | importRoomFee.setEndTime(split[0] + " 23:59:59"); |
| | |
| | | } |
| | | } |
| | | } |
| | | // if (importRoomFee.getDoorRoomNum() != null && importRoomFee.getDoorRoomNum().split("-").length < 2) { |
| | | // importRoomFee.setObjType("7777"); |
| | | // } |
| | | if(importRoomFee.getSecondaryFeeTypeCd()!= null && importRoomFee.getSecondaryFeeTypeCd().equals("临时停车费-其他") &&(importRoomFee.getObjType() == null || !(importRoomFee.getObjType().equals("7777")))){ |
| | | CarInoutPo carInout = new CarInoutPo(); |
| | | carInout.setCommunityId(communityId); |