示例#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 delete(DataInfo dataInfo) {
   logger.info("delete : " + dataInfo);
   String shopId = dataInfo.getColumnStringValue("id");
   shopSearchDao.remove(shopId);
 }