congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
me.j360.dubbo.base.constant
Code IndexAdd Tabnine to your IDE (free)

How to use me.j360.dubbo.base.constant

Best Java code snippets using me.j360.dubbo.base.constant (Showing top 4 results out of 315)

origin: xuminwlt/j360-dubbo-app-all

  public void setErrorCode(BaseErrorCode errorCode) {
    this.resultCode = errorCode.getErrorCode();
    this.resultMsg = errorCode.getErrorMsg();
    this.success = false;
  }
}
origin: xuminwlt/j360-dubbo-app-all

public void setUserInfoToDB(List<? extends UserInfo> items) {
  Long time = System.currentTimeMillis();
  try {
    execute(batchUserInfoSql, items, new BatchUpdateCallBack() {
      @Override
      public void execute(PreparedStatement ps, int i) {
        try {
          ps.setObject(1, items.get(i).getUid());
          ps.setObject(2, items.get(i).getLikeCount());
          ps.setObject(3, items.get(i).getBelikeCount());
          ps.setObject(4, items.get(i).getPostCount());
          ps.setObject(5, time);
          ps.setObject(6, time);
        } catch (Exception e) {
          log.error("批量插入user_info数据时异常: {}", items.get(i),e);
        }
      }
    });
  } catch (Exception e) {
    throw new RepositoryException(DefaultErrorCode.DB_ERROR.getErrorCode(), DefaultErrorCode.DB_ERROR.getErrorMsg(), e);
  }
}
origin: xuminwlt/j360-dubbo-app-all

public static DefaultPageResult fail(BaseErrorCode errorCode) {
  return newBuilder().success(false).data(null).code(errorCode.getErrorCode()).msg(errorCode.getErrorMsg()).build();
}
origin: xuminwlt/j360-dubbo-app-all

public static DefaultResult fail(BaseErrorCode errorCode) {
  return newBuilder().success(false).data(null).code(errorCode.getErrorCode()).msg(errorCode.getErrorMsg()).build();
}
me.j360.dubbo.base.constant

Most used classes

  • BaseErrorCode
    Package: me.j360.dubbo.base.api User: min_xu Date: 2017/3/15 下午8:04 说明:
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now