Merge branch 'cc_20250529_franchise_fee' into 'master'
Cc 20250529 franchise fee See merge request hangzhou/java/custom_zxjp!109
This commit is contained in:
@@ -194,6 +194,8 @@ public class RedisConstant {
|
||||
*/
|
||||
public static final String COOLINGPERIOD_FIRSTLOGIN_KEY = "coolingPeriodFirstLoginCache:{0}";
|
||||
|
||||
public static final String REDIS_KEY_PREFIX = "daily_id:{0}";
|
||||
|
||||
/**
|
||||
* 七天
|
||||
*/
|
||||
|
||||
@@ -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,17 @@ 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),
|
||||
RECEIPT_NOT_EXIST(1511026,"收款单不存在或已被删除",null),
|
||||
XGJ_COLLECTION_STATUS_COMPLETE(1511027,"新管家收费状态已完成,请确认!",null),
|
||||
PAY_AMOUNT_ERROR(1511028,"缴费金额不能大于未缴金额",null),
|
||||
|
||||
;
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package com.cool.store.enums;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/06/04/11:16
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
public enum XGJCollectionStatusEnum {
|
||||
WAIT_PAY(0, "待缴费"),
|
||||
PARTIAL_PAYMENT(1, "部分缴款"),
|
||||
COMPLETED(2, "已完成");
|
||||
private Integer code;
|
||||
private String message;
|
||||
XGJCollectionStatusEnum(Integer code, String message) {
|
||||
this.code = code;
|
||||
this.message = message;
|
||||
}
|
||||
public Integer getCode() {
|
||||
return code;
|
||||
}
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,9 @@ package com.cool.store.enums.point;
|
||||
*/
|
||||
public enum PayTypeEnum {
|
||||
WX_PAY(1,"微信支付"),
|
||||
BANK_PAY(2,"银行转账");
|
||||
BANK_PAY(2,"银行转账"),
|
||||
ONLINE_PAY(3,"线上支付"),
|
||||
OFFLINE_PAY(4,"线下支付");
|
||||
private Integer code;
|
||||
|
||||
private String desc;
|
||||
|
||||
@@ -39,7 +39,7 @@ public enum ShopSubStageStatusEnum {
|
||||
//缴纳加盟费/保证金
|
||||
SHOP_SUB_STAGE_STATUS_70(ShopSubStageEnum.SHOP_STAGE_7, 700, "待内勤发布账单", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_71(ShopSubStageEnum.SHOP_STAGE_7, 710, "待加盟商缴费", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_72(ShopSubStageEnum.SHOP_STAGE_7, 720, "待内勤审核", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_72(ShopSubStageEnum.SHOP_STAGE_7, 720, "对账确认中", Boolean.FALSE),
|
||||
SHOP_SUB_STAGE_STATUS_73(ShopSubStageEnum.SHOP_STAGE_7, 730, "已缴费", Boolean.TRUE),
|
||||
SHOP_SUB_STAGE_STATUS_74(ShopSubStageEnum.SHOP_STAGE_7, 740, "审核不通过", Boolean.FALSE),
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ public class CoolDateUtils {
|
||||
public static final String DATE_FORMAT_SEC_5 = "yyyy.MM.dd HH:mm";
|
||||
public static final String DATE_FORMAT_SEC_6 = "yyyy.MM.dd";
|
||||
public static final String DATE_FORMAT_SEC_7 = "yyyy/MM/dd HH:mm";
|
||||
public static final String DATE_FORMAT_SEC_8 = "yyyyMMdd";
|
||||
|
||||
private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
||||
|
||||
@@ -136,6 +137,14 @@ public class CoolDateUtils {
|
||||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前日期 yyyyMMdd
|
||||
* @return
|
||||
*/
|
||||
public static final String getToday(){
|
||||
DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(DATE_FORMAT_SEC_8);
|
||||
return LocalDate.now().format(DATE_FORMATTER);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取当前日期字符串 (yyyy-MM-dd)
|
||||
|
||||
@@ -6,6 +6,8 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
|
||||
|
||||
/**
|
||||
* redis常量工具类
|
||||
@@ -113,4 +115,8 @@ public class RedisConstantUtil {
|
||||
return active + "_" + RedisConstant.GET_AI_MODULE + eid;
|
||||
}
|
||||
|
||||
public String getPaymentReceiptCode(String today){
|
||||
return active + "_" + MessageFormat.format(RedisConstant.REDIS_KEY_PREFIX, today);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
package com.cool.store.utils;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import cn.hutool.core.util.IdUtil;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.format.DateTimeFormatter;
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* 唯一性ID工具类
|
||||
*
|
||||
@@ -12,6 +17,10 @@ import org.apache.commons.lang3.StringUtils;
|
||||
*/
|
||||
public class UUIDUtils {
|
||||
|
||||
private static final String ID_PREFIX = "12";
|
||||
|
||||
private static final DateTimeFormatter DATE_FORMATTER = DateTimeFormatter.ofPattern(CoolDateUtils.DATE_FORMAT_SEC_8);
|
||||
|
||||
/**
|
||||
* 简化的UUID,去掉了横线,使用性能更好的ThreadLocalRandom生成UUID
|
||||
*/
|
||||
@@ -26,5 +35,9 @@ public class UUIDUtils {
|
||||
long uuid = (int) (Math.random() * 90000000 + 10000000);
|
||||
return uuid;
|
||||
}
|
||||
|
||||
// 生成 UUID 方法
|
||||
public static String generateCustomUUID(Integer randomCount) {
|
||||
String today = LocalDate.now().format(DATE_FORMATTER);
|
||||
return ID_PREFIX + today + String.format("%04d", randomCount);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user