天津it审核需求

yun-zuoyi
wynne1005 4 years ago
parent 7aa3d4bddf
commit 3544aa076e

@ -0,0 +1,53 @@
package cn.estsh.i3plus.pojo.platform.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @Date : 2018-10-22 16:58:42.856
* @Modify :
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name = "SYS_LOG_ROLE_CHANGE", indexes = {
@Index(columnList = "CREATE_DATE_TIME")
})
@ApiModel(value = "用户角色更新记录表", description = "用户角色更新记录表")
public class SysLogRoleChange extends BaseBean {
private static final long serialVersionUID = 4665598896654312569L;
@Column(name = "USER_ID")
@ApiModelProperty(value = "用户ID", access = "用户ID")
@AnnoOutputColumn(hidden = true)
private Long userId;
@Column(name = "USER_NAME")
@ApiModelProperty(value = "用户名", access = "用户名")
private String userName;
@Column(name = "PREVIOUS_ROLES")
@ApiModelProperty(value = "之前的角色", access = "之前的角色")
private String previousRoles;
@Column(name = "CURRENT_ROLES")
@ApiModelProperty(value = "当前的角色", access = "当前的角色")
private String currentRoles;
}

@ -1,6 +1,7 @@
package cn.estsh.i3plus.pojo.platform.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@ -12,7 +13,12 @@ import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.*;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Lob;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Map;
/**
@ -27,75 +33,87 @@ import java.util.Map;
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="SYS_POJO_VERSION",indexes = {
@Index(name="index_sys_pojo_version_ref_id",columnList = "REF_ID"),
@Index(name="index_sys_pojo_version_ref_class",columnList = "REF_CLASS"),
@Table(name = "SYS_POJO_VERSION", indexes = {
@Index(name = "index_sys_pojo_version_ref_id", columnList = "REF_ID"),
@Index(name = "index_sys_pojo_version_ref_class", columnList = "REF_CLASS"),
})
@Api(value="对象历史")
@Api(value = "对象历史")
public class SysPojoVersion extends BaseBean {
private static final long serialVersionUID = -2265406135818649545L;
@Column(name="SOFT_TYPE")
@ApiParam(value ="产品类型")
@Column(name = "SOFT_TYPE")
@ApiParam(value = "产品类型")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description")
private Integer softType;
public String getSoftTypeTxt() {
return softType == null ? null : CommonEnumUtil.SOFT_TYPE.valueOfDescription(softType);
}
@Column(name="PLAN_ID")
@ApiParam(value ="对象计划id" ,example = "-1")
@Column(name = "PLAN_ID")
@ApiParam(value = "对象计划id", example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long planId;
@Column(name="REF_ID")
@ApiParam(value ="对象id" ,example = "-1")
@Column(name = "REF_ID")
@ApiParam(value = "对象id", example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long refId;
@Column(name="REF_CLASS")
@ApiParam(value ="记录对象")
@Column(name = "REF_CLASS")
@ApiParam(value = "记录对象")
@AnnoOutputColumn(hidden = true)
private String refClass;
@Column(name="VERSION_NO")
@ApiParam(value ="记录对象版本号")
@Column(name = "VERSION_NO")
@ApiParam(value = "记录对象版本号")
private Integer versionNo = 0;
@Column(name="operateType")
@ApiParam(value ="操作类型")
@Column(name = "operateType")
@ApiParam(value = "操作类型")
@AnnoOutputColumn(refClass = CommonEnumUtil.DAO_OPERATE_TYPE.class, refForeignKey = "value", value = "description")
private Integer operateType;
public String getOperateTypeTxt() {
return operateType == null ? null : CommonEnumUtil.DAO_OPERATE_TYPE.valueOf(operateType);
}
@Column(name="VERSION_METHOD_NAME")
@ApiParam(value ="操作方法名称")
@Column(name = "VERSION_METHOD_NAME")
@ApiParam(value = "操作方法名称")
private String versionMethodName;
@Column(name="POJO_DETAIL_ID")
@ApiParam(value ="对象明细id" ,example = "-1")
@Column(name = "POJO_DETAIL_ID")
@ApiParam(value = "对象明细id", example = "-1")
@JsonSerialize(using = ToStringSerializer.class)
private Long pojoDetailId;
@Lob
@Column(name="POJO_COMPARE")
@ApiParam(value ="记录对象对比差异")
@Column(name = "POJO_COMPARE")
@ApiParam(value = "记录对象对比差异")
private String pojoCompare;
@Lob
@Column(name="POJO_COMPARE_TXT")
@ApiParam(value ="记录对象对比差异")
@Column(name = "POJO_COMPARE_TXT")
@ApiParam(value = "记录对象对比差异")
@AnnoOutputColumn(hidden = true)
private String pojoCompareTxt;
@Transient
@ApiParam(value ="用户部门信息")
@ApiParam(value = "用户部门信息")
@AnnoOutputColumn(hidden = true)
private SysPojoVersionDetail versionDetail;
@Transient
@ApiParam(value ="操作对象本身")
@ApiParam(value = "操作对象本身")
@AnnoOutputColumn(hidden = true)
private String bean;
@Transient
@ApiParam(value ="操作对象属性描述")
@ApiParam(value = "操作对象属性描述")
@AnnoOutputColumn(hidden = true)
private Map<String, String> pojoPropDesc;
@Transient
@ApiParam(value = "操作对象名称")
private String pojoClassTitle;
}

@ -0,0 +1,14 @@
package cn.estsh.i3plus.pojo.platform.repository;
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
import cn.estsh.i3plus.pojo.platform.bean.SysLogRoleChange;
/**
* @Description :
* @Reference :
* @Author : wei.peng
* @Date : 2018-10-22 12:03:00.207
* @Modify :
**/
public interface SysLogRoleChangeRepository extends BaseRepository<SysLogRoleChange, Long> {
}
Loading…
Cancel
Save