예제 #1
0
 @Override
 public void update(DataInfo dataInfo) {
   logger.info("update : " + dataInfo);
   Integer stat = dataInfo.getColumnIntegerValue("stat");
   if (stat == null || stat.intValue() == 0) {
     String shopId = dataInfo.getColumnStringValue("id");
     shopSearchDao.remove(shopId);
   } else {
     ShopSearch shop = populateShopSearch(dataInfo);
     setAreaInfo(shop);
     shopSearchDao.save(shop);
   }
 }
예제 #2
0
 @Override
 public void create(DataInfo dataInfo) {
   logger.info("create : " + dataInfo);
   ShopSearch shop = populateShopSearch(dataInfo);
   setAreaInfo(shop);
   shopSearchDao.save(shop);
 }
예제 #3
0
 @Override
 public void delete(DataInfo dataInfo) {
   logger.info("delete : " + dataInfo);
   String shopId = dataInfo.getColumnStringValue("id");
   shopSearchDao.remove(shopId);
 }