Commit d63b2960 authored by zhangwanglin's avatar zhangwanglin

序列

parent b9ec67e5
package com.hungraim.ltc.pojo.entity.disable; package com.hungraim.ltc.pojo.entity.disable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
...@@ -10,10 +13,12 @@ import java.util.Date; ...@@ -10,10 +13,12 @@ import java.util.Date;
*/ */
@Data @Data
@TableName("CH_DISABLE_RISK_LEVEL") @TableName("CH_DISABLE_RISK_LEVEL")
@KeySequence("SEQ_CH_DISABLE_RISK_LEVEL")
public class ChDisableRiskLevel { public class ChDisableRiskLevel {
/** /**
* 主键ID * 主键ID
*/ */
@TableId(value = "DISA_RISK_LEVEL_ID", type = IdType.INPUT)
private Integer disaRiskLevelId; private Integer disaRiskLevelId;
/** /**
......
package com.hungraim.ltc.pojo.entity.riskLevel; package com.hungraim.ltc.pojo.entity.riskLevel;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
...@@ -21,6 +18,7 @@ import java.util.Date; ...@@ -21,6 +18,7 @@ import java.util.Date;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("CH_SRVEMP_RISK_LEVEL") @TableName("CH_SRVEMP_RISK_LEVEL")
@KeySequence("SEQ_CH_SRVEMP_RISK_LEVEL")
public class ChSrvempRiskLevel implements Serializable { public class ChSrvempRiskLevel implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -28,7 +26,7 @@ public class ChSrvempRiskLevel implements Serializable { ...@@ -28,7 +26,7 @@ public class ChSrvempRiskLevel implements Serializable {
/** /**
* 主键ID * 主键ID
*/ */
@TableId(value = "SRVEMP_RISK_LEVEL_ID", type = IdType.AUTO) @TableId(value = "SRVEMP_RISK_LEVEL_ID", type = IdType.INPUT)
private Long srvempRiskLevelId; private Long srvempRiskLevelId;
/** /**
......
package com.hungraim.ltc.pojo.entity.riskLevel; package com.hungraim.ltc.pojo.entity.riskLevel;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
...@@ -21,6 +18,7 @@ import java.util.Date; ...@@ -21,6 +18,7 @@ import java.util.Date;
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@TableName("CH_SRVORGAN_RISK_LEVEL") @TableName("CH_SRVORGAN_RISK_LEVEL")
@KeySequence("SEQ_CH_SRVORGAN_RISK_LEVEL")
public class ChSrvorganRiskLevel implements Serializable { public class ChSrvorganRiskLevel implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
...@@ -28,7 +26,7 @@ public class ChSrvorganRiskLevel implements Serializable { ...@@ -28,7 +26,7 @@ public class ChSrvorganRiskLevel implements Serializable {
/** /**
* 主键ID * 主键ID
*/ */
@TableId(value = "SRVORGAN_RISK_LEVEL_ID", type = IdType.AUTO) @TableId(value = "SRVORGAN_RISK_LEVEL_ID", type = IdType.INPUT)
private Long srvorganRiskLevelId; private Long srvorganRiskLevelId;
/** /**
......
package com.hungraim.ltc.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import java.util.Date; import java.util.Date;
...@@ -15,9 +12,11 @@ import java.util.Date; ...@@ -15,9 +12,11 @@ import java.util.Date;
*/ */
@Data @Data
@TableName("LTC_ROLE") @TableName("LTC_ROLE")
@KeySequence("SEQUENCE_ROLE_ID")
public class SystemRole { public class SystemRole {
@TableId( type = IdType.AUTO) // @TableId( type = IdType.AUTO)
@TableId(value = "ROLE_ID", type = IdType.INPUT)
private Long roleId; private Long roleId;
private String roleName; private String roleName;
private String status; private String status;
......
package com.hungraim.ltc.pojo.entity.system; package com.hungraim.ltc.pojo.entity.system;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data; import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
...@@ -15,9 +12,11 @@ import java.util.Date; ...@@ -15,9 +12,11 @@ import java.util.Date;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@TableName("LTC_USER") @TableName("LTC_USER")
@KeySequence("SEQUENCE_USER_ID")
public class SystemUser { public class SystemUser {
@TableId( type = IdType.AUTO) // @TableId( type = IdType.AUTO)
@TableId(value = "USER_ID", type = IdType.INPUT)
private Long userId; private Long userId;
private String account; private String account;
private String password; private String password;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment