记得上下班打卡 | git大法好,push需谨慎

Commit 75f8d873 authored by anjiabin's avatar anjiabin

修改演出详情

parent 02c2ab15
......@@ -48,17 +48,11 @@ public class IDGenerator {
}
public static String payCode(){
String refundCode = System.currentTimeMillis()+"";
int randomCode = RandomUtil.getRandomInt(0,10000);
StringUtils.leftPad(refundCode, 3, "0");
return refundCode.concat(StringUtils.leftPad(randomCode+"", (randomCode/10), "0")+"R");
return "PAY"+nextTimeId();
}
public static String refundCode(){
String refundCode = System.currentTimeMillis()+"";
int randomCode = RandomUtil.getRandomInt(0,10000);
StringUtils.leftPad(refundCode, 3, "0");
return refundCode.concat(StringUtils.leftPad(randomCode+"", (randomCode/10), "0")+"R");
return "RED"+nextTimeId();
}
/**
......@@ -71,4 +65,9 @@ public class IDGenerator {
String qrCode = MD5Utils.md5(orderTicketId).toLowerCase();
return "QR" + qrCode.substring(5) + "" + qrCode.substring(0, 4);
}
public static void main(String[] args) {
System.out.println(IDGenerator.payCode());
System.out.println(IDGenerator.refundCode());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment