1736-MES数据权限模块开发
parent
30c0b2e46a
commit
e63601716f
@ -0,0 +1,61 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
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.Table;
|
||||
import javax.persistence.Transient;
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description :数据权限
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-26
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_DATA_AUTH")
|
||||
@Api("数据权限")
|
||||
public class MesDataAuth extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -8665559475167190408L;
|
||||
@Column(name = "ROLE_ID")
|
||||
@ApiParam("角色编号")
|
||||
private Long roleId;
|
||||
|
||||
@Column(name = "ROLE_NAME")
|
||||
@ApiParam("角色名称")
|
||||
private String roleName;
|
||||
|
||||
@Column(name = "DATA_OBJECT")
|
||||
@ApiParam("数据对象")
|
||||
private String dataObject;
|
||||
|
||||
@Column(name = "DATA_OBJECT_NAME")
|
||||
@ApiParam("数据对象名称")
|
||||
private String dataObjectName;
|
||||
|
||||
@Column(name = "FILTER_RULE", columnDefinition = "TEXT")
|
||||
@ApiParam("过滤规则")
|
||||
private String filterRule;
|
||||
|
||||
public long getRoleIdVal() {
|
||||
return this.roleId == null ? 0 : this.roleId.longValue();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class FilterGroup {
|
||||
private String andOr;
|
||||
private List<FilterRuleAndOr> groups;
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class FilterRule {
|
||||
private String filed;
|
||||
private String op;
|
||||
private String value;
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class FilterRuleAndOr {
|
||||
private String andOr;
|
||||
private List<FilterRule> rules;
|
||||
}
|
@ -0,0 +1,48 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description : PojoField模型
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2020-04-28
|
||||
* @Modify:
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class PojoFieldModel implements Serializable {
|
||||
private static final long serialVersionUID = 6761788924707802928L;
|
||||
|
||||
@ApiParam(value ="属性名")
|
||||
private String fieldName;
|
||||
|
||||
@ApiParam(value ="属性类型")
|
||||
private String fieldType;
|
||||
|
||||
@ApiParam(value ="属性描述")
|
||||
private String fieldDesc;
|
||||
|
||||
@ApiParam(value ="字段名称")
|
||||
private String fieldColumnName;
|
||||
|
||||
@ApiParam(value = "数据来源")
|
||||
private String dataSrc;
|
||||
|
||||
@ApiParam(value = "开窗列表显示列名称")
|
||||
private String listColumnName;
|
||||
|
||||
@ApiParam(value = "开窗搜索列名称")
|
||||
private String searchColumnName;
|
||||
|
||||
@ApiParam(value = "回显列名")
|
||||
private String explicitColumnName;
|
||||
|
||||
@ApiParam(value = "下拉框规则")
|
||||
private Integer selectRule;
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description : Pojo模型
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2020-04-28
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
public class PojoModel implements Serializable {
|
||||
private static final long serialVersionUID = -3617516560880011259L;
|
||||
@ApiParam(value ="包名")
|
||||
private String packageName;
|
||||
|
||||
@ApiParam(value ="POJO类名")
|
||||
private String simpleName;
|
||||
|
||||
@ApiParam(value ="POJO类全名")
|
||||
private String fullName;
|
||||
|
||||
@ApiParam(value ="表名称名")
|
||||
private String tableName;
|
||||
|
||||
@ApiParam(value ="POJO类描述")
|
||||
private String pojoDesc;
|
||||
|
||||
@ApiParam(value ="属性集合")
|
||||
private List<PojoFieldModel> fieldList;
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesBom;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesDataAuth;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesDataAuthRepository extends BaseRepository<MesDataAuth, Long> {
|
||||
}
|
Loading…
Reference in New Issue