Subversion Repositories SmartDukaan

Rev

Rev 23025 | Rev 23043 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23025 Rev 23031
Line 153... Line 153...
153
		for(Shop shop : shops){
153
		for(Shop shop : shops){
154
			for(CustomShop customShop : customShops){
154
			for(CustomShop customShop : customShops){
155
				if(shop.getId() == customShop.getShopId()){
155
				if(shop.getId() == customShop.getShopId()){
156
					if(customShop.getDocumentId() > 0){
156
					if(customShop.getDocumentId() > 0){
157
						shop.setDocumentId(customShop.getDocumentId());
157
						shop.setDocumentId(customShop.getDocumentId());
158
						shopRepository.persist(shop);
-
 
159
						documentRepository.markDocumentAsPersisted(customShop.getDocumentId());
158
						documentRepository.markDocumentAsPersisted(customShop.getDocumentId());
160
					}
159
					}
-
 
160
					shop.setName(customShop.getName());
-
 
161
					shopRepository.persist(shop);
161
					this.updateAddress(shop.getAddress(), customShop.getAddress());
162
					this.updateAddress(shop.getAddress(), customShop.getAddress());
162
				}
163
				}
163
			}
164
			}
164
		}
165
		}
165
	}
166
	}