Commit b1c45723 authored by 蔡镇泽's avatar 蔡镇泽

为实体类指定id

parent 97392bde
package com.hungraim.ltc.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
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;
@Data @Data
@TableName("CH_APR_EMP") @TableName("CH_APR_EMP")
@KeySequence(value = "SEQ_CH_APR_EMP")
public class ChAprEmp { public class ChAprEmp {
@TableId(value = "emp_id", type = IdType.INPUT)
private Integer empId; private Integer empId;
private Integer eduId; private Integer eduId;
private String aprempTypeNameF; private String aprempTypeNameF;
......
package com.hungraim.ltc.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
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;
...@@ -7,10 +10,12 @@ import java.util.Date; ...@@ -7,10 +10,12 @@ import java.util.Date;
@Data @Data
@TableName("CH_APR_REPORT_EVALUATE") @TableName("CH_APR_REPORT_EVALUATE")
@KeySequence(value = "SEQ_CH_APR_REPORT_EVALUATE")
public class ChAprReportEvaluate { public class ChAprReportEvaluate {
/** /**
* 评定ID * 评定ID
*/ */
@TableId(value = "evaluate_id", type = IdType.INPUT)
private Integer evaluateId; private Integer evaluateId;
/** /**
......
package com.hungraim.ltc.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
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;
@Data @Data
@TableName("CH_APR_TASK") @TableName("CH_APR_TASK")
@KeySequence(value = "SEQ_CH_APR_REPORT_EVALUATE")
public class ChAprTask { public class ChAprTask {
@TableId(value = "task_id", type = IdType.INPUT)
private Integer taskId; private Integer taskId;
private java.util.Date assignTime; private java.util.Date assignTime;
private Integer taskStatus; private Integer taskStatus;
......
...@@ -21,7 +21,7 @@ public class ChAprTaskPush implements Serializable { ...@@ -21,7 +21,7 @@ public class ChAprTaskPush implements Serializable {
/** /**
* 任务推送ID(年月日+串码6) * 任务推送ID(年月日+串码6)
*/ */
@TableId(type = IdType.INPUT) @TableId(value = "task_push_id", type = IdType.INPUT)
private Long taskPushId; private Long taskPushId;
/** /**
......
package com.hungraim.ltc.pojo.entity.eval; package com.hungraim.ltc.pojo.entity.eval;
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;
import java.util.Date; import java.util.Date;
@Data @Data
@TableName("CH_CFG_APR_GROUP_DETAIL") @TableName("CH_CFG_APR_GROUP_DETAIL")
@KeySequence("SEQ_CH_APR_TASK_PUSH")
public class ChCfgAprGroupDetail { public class ChCfgAprGroupDetail {
/** /**
* 评定参数列表ID * 评定参数列表ID
*/ */
@TableId(value = "detail_id", type = IdType.INPUT)
private Integer detailId; private Integer detailId;
/** /**
......
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