天津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; 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.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil; import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@ -12,7 +13,12 @@ import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert; import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate; 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; import java.util.Map;
/** /**
@ -37,6 +43,7 @@ public class SysPojoVersion extends BaseBean {
private static final long serialVersionUID = -2265406135818649545L; private static final long serialVersionUID = -2265406135818649545L;
@Column(name = "SOFT_TYPE") @Column(name = "SOFT_TYPE")
@ApiParam(value = "产品类型") @ApiParam(value = "产品类型")
@AnnoOutputColumn(refClass = CommonEnumUtil.SOFT_TYPE.class, refForeignKey = "value", value = "description")
private Integer softType; private Integer softType;
public String getSoftTypeTxt() { public String getSoftTypeTxt() {
@ -55,6 +62,7 @@ public class SysPojoVersion extends BaseBean {
@Column(name = "REF_CLASS") @Column(name = "REF_CLASS")
@ApiParam(value = "记录对象") @ApiParam(value = "记录对象")
@AnnoOutputColumn(hidden = true)
private String refClass; private String refClass;
@Column(name = "VERSION_NO") @Column(name = "VERSION_NO")
@ -63,7 +71,9 @@ public class SysPojoVersion extends BaseBean {
@Column(name = "operateType") @Column(name = "operateType")
@ApiParam(value = "操作类型") @ApiParam(value = "操作类型")
@AnnoOutputColumn(refClass = CommonEnumUtil.DAO_OPERATE_TYPE.class, refForeignKey = "value", value = "description")
private Integer operateType; private Integer operateType;
public String getOperateTypeTxt() { public String getOperateTypeTxt() {
return operateType == null ? null : CommonEnumUtil.DAO_OPERATE_TYPE.valueOf(operateType); return operateType == null ? null : CommonEnumUtil.DAO_OPERATE_TYPE.valueOf(operateType);
} }
@ -85,17 +95,25 @@ public class SysPojoVersion extends BaseBean {
@Lob @Lob
@Column(name = "POJO_COMPARE_TXT") @Column(name = "POJO_COMPARE_TXT")
@ApiParam(value = "记录对象对比差异") @ApiParam(value = "记录对象对比差异")
@AnnoOutputColumn(hidden = true)
private String pojoCompareTxt; private String pojoCompareTxt;
@Transient @Transient
@ApiParam(value = "用户部门信息") @ApiParam(value = "用户部门信息")
@AnnoOutputColumn(hidden = true)
private SysPojoVersionDetail versionDetail; private SysPojoVersionDetail versionDetail;
@Transient @Transient
@ApiParam(value = "操作对象本身") @ApiParam(value = "操作对象本身")
@AnnoOutputColumn(hidden = true)
private String bean; private String bean;
@Transient @Transient
@ApiParam(value = "操作对象属性描述") @ApiParam(value = "操作对象属性描述")
@AnnoOutputColumn(hidden = true)
private Map<String, String> pojoPropDesc; 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