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 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); } }