/** * 保存店铺周边 * * @param dealerShopEnv */ @Override public void save(DealerShopEnv dealerShopEnv) { if (StringUtils.isNotBlank(dealerShopEnv.getRefrenceId())) { dealerShopEnv.setUpdateTime(CalendarUtils.getCurrentLong()); this.updateByPrimaryKeySelective(dealerShopEnv); } else { dealerShopEnv.setCreateTime(CalendarUtils.getCurrentLong()); dealerShopEnv.setUpdateTime(CalendarUtils.getCurrentLong()); this.insertSelective(dealerShopEnv); } }
/** * 根据dealerId 获取终端商店铺信息 * * @author 陈建平 * @param dealerId * @return */ @Override public DealerShopEnv getDealerShopEnv(String dealerId) { if (StringUtils.isBlank(dealerId)) { return null; } DealerShopEnv filter = new DealerShopEnv(); filter.setDealerId(dealerId); List<DealerShopEnv> list = dealerShopEnvMapper.findList(filter); if (null != list && list.size() > 0) { return list.get(0); } return null; }