소스 검색

修改主键插入方式为自增

weifanli 3 년 전
부모
커밋
c98ae44690

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/dto/req/TeacherApplyDetailReq.java

@@ -33,8 +33,8 @@ public class TeacherApplyDetailReq implements Serializable {
     private Integer gender;
 
     @ApiModelProperty(value = "出生日期 ", required = true)
-    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
-    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
+    @DateTimeFormat(pattern = "yyyy-MM-dd")
+    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
     private Date birthdate;
 
     @NotBlank(message = "专业技能不能为空")

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/Order.java

@@ -20,7 +20,7 @@ import java.math.BigDecimal;
 @ApiModel(value = "Order对象", description = "平台订单表")
 public class Order implements Serializable {
 	private static final long serialVersionUID = 1L;
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 订单号 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/OrderDetail.java

@@ -19,7 +19,7 @@ import org.springframework.format.annotation.DateTimeFormat;
 @ApiModel(value = "OrderDetail对象", description = "平台订单表")
 public class OrderDetail implements Serializable {
 	private static final long serialVersionUID = 1L;
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 订单号 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/OrderRefunds.java

@@ -20,7 +20,7 @@ import java.math.BigDecimal;
 @ApiModel(value = "OrderRefunds对象", description = "用户退款表")
 public class OrderRefunds implements Serializable {
 	private static final long serialVersionUID = 1L;
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
 	@TableField(value = "user_id_")
     private Long userId;

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/Teacher.java

@@ -26,7 +26,7 @@ public class Teacher implements Serializable {
     * 对应user表用户编号 
     */
     @ApiModelProperty("对应user表用户编号 ")
-    @TableId(value = "user_id_", type = IdType.UUID)
+    @TableId(value = "user_id_", type = IdType.AUTO)
     private Long userId;
     /** 
     * 学历 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/TeacherAuthMusicianRecord.java

@@ -23,7 +23,7 @@ public class TeacherAuthMusicianRecord implements Serializable {
     * 审核单id 
     */
     @ApiModelProperty("审核单id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 对应user表用户编号 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/TeacherWithdrawal.java

@@ -24,7 +24,7 @@ public class TeacherWithdrawal implements Serializable {
     * 提现id 
     */
     @ApiModelProperty("提现id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 用户表id 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/UserAccount.java

@@ -24,7 +24,7 @@ public class UserAccount implements Serializable {
     * 用户表id 
     */
     @ApiModelProperty("用户表id ")
-    @TableId(value = "user_id_", type = IdType.UUID)
+    @TableId(value = "user_id_", type = IdType.AUTO)
     private Long userId;
     /** 
     * 总金额 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/UserAccountRecord.java

@@ -24,7 +24,7 @@ public class UserAccountRecord implements Serializable {
     * 用户表id 
     */
     @ApiModelProperty("用户表id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 交易金额 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/UserBankCard.java

@@ -20,7 +20,7 @@ public class UserBankCard implements Serializable {
     * id 
     */
     @ApiModelProperty("id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 用户表id 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/entity/VipCard.java

@@ -23,7 +23,7 @@ public class VipCard implements Serializable {
     * 会员卡id 
     */
     @ApiModelProperty("会员卡id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /** 
     * 用户id 

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TeacherAuthMusicianRecordServiceImpl.java

@@ -44,7 +44,7 @@ public class TeacherAuthMusicianRecordServiceImpl extends ServiceImpl<TeacherAut
     @Override
     public Integer getMusicianAuthStatus(Long id) {
         Teacher teacher = teacherService.getById(id);
-        return teacher.getMusicianAuthStatus();
+        return null == teacher ? 0 : teacher.getMusicianAuthStatus();
     }
 
     @Override

+ 1 - 1
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/vo/TeacherApplyDetail.java

@@ -18,7 +18,7 @@ public class TeacherApplyDetail implements Serializable {
      * 审核单id
      */
     @ApiModelProperty("审核单id ")
-    @TableId(value = "id_", type = IdType.UUID)
+    @TableId(value = "id_", type = IdType.AUTO)
     private Long id;
     /**
      * 对应user表用户编号