From a53bf3c552d521e92cdcc266f84c7bd52b62b13b Mon Sep 17 00:00:00 2001 From: hurui <177768073@qq.com> Date: Fri, 12 May 2023 13:41:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hai-service/src/main/java/com/hai/config/PayloService.java | 4 ++-- hai-service/src/main/java/com/hai/order/utils/OrderUtil.java | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hai-service/src/main/java/com/hai/config/PayloService.java b/hai-service/src/main/java/com/hai/config/PayloService.java index d82ef7c9..09796c10 100644 --- a/hai-service/src/main/java/com/hai/config/PayloService.java +++ b/hai-service/src/main/java/com/hai/config/PayloService.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")); diff --git a/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java b/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java index 6e8a8611..c5bb47bb 100644 --- a/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java +++ b/hai-service/src/main/java/com/hai/order/utils/OrderUtil.java @@ -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