mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
ConfigServiceRoute主键配置为修改为自定义主键
ConfigServiceRoute主键为自定义主键, 解决目前配置为自增主键导致批量新增时主键冲突异常 Signed-off-by: 程子 <395030787@qq.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
package com.gitee.sop.adminserver.entity;
|
package com.gitee.sop.adminserver.entity;
|
||||||
|
|
||||||
|
import com.gitee.fastmybatis.annotation.PkStrategy;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import com.gitee.fastmybatis.annotation.Pk;
|
import com.gitee.fastmybatis.annotation.Pk;
|
||||||
@@ -13,7 +14,7 @@ import java.util.Date;
|
|||||||
*
|
*
|
||||||
* @author tanghc
|
* @author tanghc
|
||||||
*/
|
*/
|
||||||
@Table(name = "config_service_route",pk = @Pk(name = "id"))
|
@Table(name = "config_service_route",pk = @Pk(name = "id",strategy = PkStrategy.NONE))
|
||||||
@Data
|
@Data
|
||||||
public class ConfigServiceRoute {
|
public class ConfigServiceRoute {
|
||||||
/** 数据库字段:id */
|
/** 数据库字段:id */
|
||||||
|
Reference in New Issue
Block a user