Ejemplo n.º 1
0
 @Override
 public void create(DataInfo dataInfo) {
   logger.info("create : " + dataInfo);
   ShopSearch shop = populateShopSearch(dataInfo);
   setAreaInfo(shop);
   shopSearchDao.save(shop);
 }
Ejemplo n.º 2
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);
   }
 }