Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
张松
2025-01-03 21:52:14 +08:00
24 changed files with 28 additions and 25 deletions

View File

@@ -18,7 +18,7 @@ public class Announcement implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
// @TableId
private Integer id;
/**

View File

@@ -23,7 +23,7 @@ public class InviteAchievement implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
@TableId
private Integer id;
/**

View File

@@ -16,7 +16,7 @@ public class UserInfo implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
@TableId
private Long id;
/**

View File

@@ -25,7 +25,7 @@ public class UserMoney implements Serializable {
* 主键id
*/
@ApiModelProperty("主键id")
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long id;

View File

@@ -26,7 +26,7 @@ public class UserMoneyDetails implements Serializable {
* 钱包详情id
*/
@ApiModelProperty("钱包详情id")
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long id;
/**

View File

@@ -22,7 +22,7 @@ import java.math.BigDecimal;
@ApiModel("会员详情")
public class VipDetails implements Serializable {
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long id;

View File

@@ -21,7 +21,7 @@ public class UniAdCallbackRecord implements Serializable {
/**
*
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long id;

View File

@@ -17,7 +17,7 @@ public class Coupon implements Serializable {
/**
* 优惠券d
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long couponId;
/**

View File

@@ -17,7 +17,7 @@ public class CouponUser implements Serializable {
/**
* 用户优惠券id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long couponUserId;
/**

View File

@@ -22,7 +22,7 @@ public class CommentGood implements Serializable {
/**
* 评论点赞id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long commentGoodId;

View File

@@ -27,7 +27,7 @@ public class Course implements Serializable {
/**
* 短剧id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long courseId;

View File

@@ -21,7 +21,7 @@ public class CourseClassification implements Serializable {
/**
* 分类id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long classificationId;
/**

View File

@@ -26,7 +26,7 @@ public class CourseCollect implements Serializable {
/**
* 收藏id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long courseCollectId;

View File

@@ -26,7 +26,7 @@ public class CourseComment implements Serializable {
/**
* 短剧评论id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long courseCommentId;

View File

@@ -23,7 +23,7 @@ public class CourseDetails implements Serializable {
/**
* 短剧目录id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long courseDetailsId;

View File

@@ -22,7 +22,7 @@ public class CourseUser implements Serializable {
/**
* 我的短剧id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long courseUserId;

View File

@@ -22,7 +22,7 @@ public class HelpClassify implements Serializable {
/**
* 帮助中心分类
*/
@TableId(type = IdType.AUTO)
@TableId
private Long helpClassifyId;
/**

View File

@@ -16,7 +16,7 @@ public class HelpWord implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
@TableId
/**
* 帮助文档id
*/

View File

@@ -17,7 +17,7 @@ public class InviteAward implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
@TableId
/**
* 邀请奖励id
*/

View File

@@ -23,7 +23,7 @@ public class Orders implements Serializable {
/**
* 订单id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long ordersId;

View File

@@ -19,7 +19,7 @@ public class PayClassify implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
@TableId
/**
* 充值分类id
*/

View File

@@ -16,7 +16,7 @@ public class Search implements Serializable {
/**
* 搜索id
*/
@TableId(type = IdType.AUTO)
@TableId
@JsonSerialize(using = ToStringSerializer.class)
private Long searchId;
/**

View File

@@ -16,7 +16,7 @@ public class UrlAddress implements Serializable {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
@TableId
/**
* 域名池id
*/

View File

@@ -1,5 +1,7 @@
package com.sqx.modules.utils;
import cn.hutool.core.util.IdUtil;
import javax.servlet.http.HttpServletRequest;
import java.text.SimpleDateFormat;
import java.util.*;
@@ -58,7 +60,7 @@ public class AliPayOrderUtil {
* @return
*/
public static String createOrderId() {
int machineId = 1;//最大支持1-9个集群机器部署
/*int machineId = 1;//最大支持1-9个集群机器部署
int hashCodeV = UUID.randomUUID().toString().hashCode();
if(hashCodeV < 0) {//有可能是负数
hashCodeV = - hashCodeV;
@@ -66,7 +68,8 @@ public class AliPayOrderUtil {
// 0 代表前面补充0
// 4 代表长度为4
// d 代表参数为正数型
return machineId+String.format("%015d", hashCodeV);
return machineId+String.format("%015d", hashCodeV);*/
return IdUtil.getSnowflake(1, 1).nextIdStr();
}