加盟费改造
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/05/30/15:52
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
public enum ClaimStatusEnum {
|
||||
TO_BE_CLAIMED(0,"待认领"),
|
||||
Claimed(1,"已认领");
|
||||
private Integer code;
|
||||
private String message;
|
||||
ClaimStatusEnum(Integer code,String message){
|
||||
this.code = code;
|
||||
this.message =message;
|
||||
}
|
||||
public Integer getCode(){
|
||||
return code;
|
||||
}
|
||||
public String getMessage(){
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -263,6 +263,14 @@ public enum ErrorCodeEnum {
|
||||
USER_ACCOUNT_WAIT_AUDIT(151015, "账号信息等待审核",null),
|
||||
SHOP_HAVE_NOT_OVER_ACCORDING(1511014,"该加盟商下有未结束跟进的门店,请先结束门店",null),
|
||||
MOBILE_NOT_EXIST(151016,"手机号不存在,请先维护手机号!",null),
|
||||
|
||||
API_CALL_ERROR(1511020,"接口调用错误",null),
|
||||
ADD_PAY_INFO_FAIL(1511021,"添加缴费信息失败",null),
|
||||
UPDATE_ERROR(1511022,"修改信息失败",null),
|
||||
CLAIM_STATUS_ERROR(1511023,"当前状态为已认领,不能进行操作",null),
|
||||
PAY_USER_NAME_ERROR(1511024,"付款人最多为2人",null),
|
||||
DELETE_ERROR(1511025,"删除信息失败",null),
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@ package com.cool.store.utils;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* 唯一性ID工具类
|
||||
*
|
||||
@@ -26,5 +28,23 @@ public class UUIDUtils {
|
||||
long uuid = (int) (Math.random() * 90000000 + 10000000);
|
||||
return uuid;
|
||||
}
|
||||
// 生成 UUID 方法
|
||||
public static String generateCustomUUID() {
|
||||
// 获取当前时间戳(毫秒)
|
||||
long timestamp = System.currentTimeMillis();
|
||||
|
||||
// 生成4位随机数字(0000 - 9999)
|
||||
int randomNumber = new Random().nextInt(10000);
|
||||
String randomDigits = String.format("%04d", randomNumber);
|
||||
|
||||
// 生成2个随机大写字母
|
||||
String randomLetters = "";
|
||||
Random random = new Random();
|
||||
for (int i = 0; i < 2; i++) {
|
||||
char c = (char) ('A' + random.nextInt(26));
|
||||
randomLetters += c;
|
||||
}
|
||||
|
||||
return timestamp + randomDigits + randomLetters;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user