コード例 #1
0
  @Transactional
  public void removeById(java.lang.Long id) {
    CmsUserEmail cmsUserEmail = this.getById(id);
    if (cmsUserEmail != null) {
      Map map = new HashMap();
      map.put("object", cmsUserEmail);
      String json = Utils.toJson(map);
      CmsDeleteBackup cmsDeleteBackup = new CmsDeleteBackup();
      cmsDeleteBackup.setTableName("CmsUserEmail");
      cmsDeleteBackup.setContent(json);
      cmsDeleteBackup.setCreatetimelong(System.currentTimeMillis());
      cmsDeleteBackup.setModifytimelong(0L);
      cmsDeleteBackup.setStatus(0);
      this.cmsDeleteBackupDao.save(cmsDeleteBackup);
    }

    super.removeById(id);
  }
コード例 #2
0
 /** 插入数据 */
 @Transactional
 public void save(CmsUserEmail entity) {
   super.save(entity);
 }
コード例 #3
0
 /** 更新数据 */
 @Transactional
 public void update(CmsUserEmail entity) {
   super.update(entity);
 }