提交代码

dev-discount
胡锐 2 years ago
parent 55a63ec433
commit a53bf3c552
  1. 4
      hai-service/src/main/java/com/hai/config/PayloService.java
  2. 3
      hai-service/src/main/java/com/hai/order/utils/OrderUtil.java

@ -137,14 +137,14 @@ public class PayloService {
// 请求接口
JSONObject object = HttpsUtils.doPost(CommonSysConst.getSysConfig().getShellGroupUrl(), param);
/* reqLogService.insert(
reqLogService.insert(
TripartiteReqLogType.type2,
logSerialNo,
TripartiteReqLogReqType.type1,
CommonSysConst.getSysConfig().getShellGroupUrl(),
this.generateParam(param),
object.toString()
);*/
);
if (object == null || !object.getString("status").equals("SUCCESS")) {
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, object == null?"请求失败":object.getString("message"));

@ -53,12 +53,11 @@ public class OrderUtil {
*/
public static String generateOrderNo() throws Exception {
// 5位随机数 + 1位线程生成数
String randomNum = (new Random().nextInt(899999) + 10000) + IDGenerator.nextId(1);
String randomNum = (new Random().nextInt(8999) + 1000) + IDGenerator.nextId(1);
// 生成订单号
return DateUtil.date2String(new Date(),"yyyyMMddHHmmss") + randomNum;
}
/**
* 生成子订单号
* @return

Loading…
Cancel
Save