共 3 篇文章 |
|
阅4550 转25 评0 公众公开 15-07-16 10:28 |
java 唯一ID生成。private static String beforeBh;private static String beforeNum;public static String codeGenerate() { Date now = new Date();String behind = now.getTime()+"";if(beforeBh==null) { beforeBh = behind;} else if(beforeBh.equals(behind)) { behind = behind +beforeNum;} else { beforeBh = be... 阅851 转1 评0 公众公开 15-07-16 10:27 |
/** The FieldPosition. */ private static final FieldPosition HELPER_POSITION = new FieldPosition(0);/** This Format for format the data to special format. */ private final static Format dateFormat = new SimpleDateFormat("MMddHHmmssS");/** This Format for format the number to special format. */ private final ... 阅5345 转39 评0 公众公开 15-07-16 10:27 |