Ejemplo n.º 1
0
 @Override
 @Transactional
 public void applyStore(Store store) {
   Assert.notNull(store);
   Assert.notNull(store.getName());
   Assert.notNull(store.getServiceTelephone());
   Assert.notNull(store.getContactTelephone());
   Assert.notNull(store.getEmail());
   Assert.notNull(store.getApplyMan());
   store.setCreateDate(new Date()); // 设置创建日期
   store.setCheckStatus(Store.CheckStatus.wait); // 设置申请状态:待审核
   store.setIsEnabled(false); // 设置启用状态:未启用
   storeDao.persist(store); // 持久化
 }