private void convertCisuserMap(Receptions reception) { List<String> locationNoList = new ArrayList<String>(reception.getLocationNoSet()); for (String sourceLocationNo : locationNoList) { String newLocationNo = locationConvertMap.get(sourceLocationNo); Cisuser sourceCisuser = arrangementDao.getCisuser(Long.valueOf(sourceLocationNo)); Cisuser newCisuser = arrangementDao.getCisuser(Long.valueOf(newLocationNo)); cisuserMap.put(sourceLocationNo, newCisuser); cisuserMap.put(newLocationNo, newCisuser); String sourceCustomerNo = String.valueOf(sourceCisuser.getCustmr().getCstRegNo()); String newCustomerNo = String.valueOf(newCisuser.getCustmr().getCstRegNo()); customerConvertMap.put(sourceCustomerNo, newCustomerNo); String sourceSyabanNo = getSyaban(sourceCisuser.getGasmtr().getSyabanNo()); meterIdMap.put(sourceSyabanNo, newLocationNo); } }
private void arrangeSecall(List<Secalls> secallList) { Map<String, Secalls> secallMap = new HashMap<String, Secalls>(secallList.size()); for (Secalls secall : secallList) { String newLocationNo = meterIdMap.get(secall.getMeterId()); Cisuser newCisuser = cisuserMap.get(newLocationNo); String newMeterId = getSyaban(newCisuser.getGasmtr().getSyabanNo()); Tenanter tenanter = tenanterMap.get(newLocationNo); String newDialNo = tenanter.getDialNo(); String newNcuManagementId = tenanter.getNcuManagementNo(); secall.arrange(newDialNo, newNcuManagementId, newMeterId); String key = secall.getCommunicationEndTime(); if (!secallMap.containsKey(key)) secallMap.put(key, secall); } secallList.clear(); secallList.addAll(secallMap.values()); }
private void arrangeContactMean(Receptions reception) { if (reception.getCustomerList() == null) return; for (ContactMeans mean : reception.getContactMeansList()) { Cisuser newCisuser = cisuserMap.get(mean.getLocationNo()); String newCustomerNo = String.valueOf(newCisuser.getCustmr().getCstRegNo()); String newLocationNo = newLocation(mean.getLocationNo()); String customerName = newCisuser.getCustmr().getNamKj(); String telno = newCisuser.getTelno().getCstTelNo(); mean.arrangeForMulti(newCustomerNo, newLocationNo, customerName, telno); } for (Customers customer : reception.getCustomerList()) { String newCustomerNo = customerConvertMap.get(customer.getCustomerNo()); customer.arrange(newCustomerNo); } }