Beispiel #1
0
 @Override
 public Shop updateShop(Shop shop) {
   if (shop == null) {
     return null;
   }
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shop.setModifiedAt(nowUtcTime);
   return shopDao.save(shop);
 }
Beispiel #2
0
 @Override
 public void archiveShop(long shopKey) {
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shopDao.archiveShop(shopKey, nowUtcTime);
 }