Esempio n. 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);
 }
Esempio n. 2
0
 @Override
 public void archiveShop(long shopKey) {
   long nowUtcTime = dateFactory.nowUTCDate().getTime();
   shopDao.archiveShop(shopKey, nowUtcTime);
 }