From e9e504197c8e2fc9327d0fe6bdf7f513170594ab Mon Sep 17 00:00:00 2001
From: jiangqs <343695869@qq.com>
Date: 星期日, 04 六月 2023 12:30:38 +0800
Subject: [PATCH] 优化部分代码

---
 ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/pojo/config/Cooperation.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/pojo/config/Cooperation.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/pojo/config/Cooperation.java
index d102531..cbf9e22 100644
--- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/pojo/config/Cooperation.java
+++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/domain/pojo/config/Cooperation.java
@@ -1,6 +1,8 @@
 package com.ruoyi.system.domain.pojo.config;
 
 import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableField;
 import com.baomidou.mybatisplus.activerecord.Model;
@@ -30,8 +32,8 @@
     /**
      * 合作id
      */
-    @TableId("cooper_id")
-    private Integer cooperId;
+    @TableId(value ="cooper_id", type = IdType.AUTO)
+    private Long cooperId;
     /**
      * 删除标记
      */

--
Gitblit v1.7.1