public String getString() {
        String pkValue;
        String str = new SimpleDateFormat("yyyyMMddHHmmssSSS").format(new Date());
        int rannum = (int) (new Random().nextDouble() * (999 - 100 + 1)) + 100;// 获取3位随机数
        // pkValue= UUID.randomUUID().toString().replace("-","");
        pkValue= str+rannum;
        return pkValue;
    }

  

相关文章:

  • 2022-12-23
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2021-10-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-28
  • 2021-12-18
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案