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