package com.zy.crm.manager.entity;
|
|
import com.baomidou.mybatisplus.annotations.TableField;
|
import com.baomidou.mybatisplus.annotations.TableId;
|
import com.baomidou.mybatisplus.annotations.TableName;
|
import com.baomidou.mybatisplus.enums.IdType;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
import java.io.Serializable;
|
|
@Data
|
@TableName("man_process_permissions")
|
public class ProcessPermissions implements Serializable {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* ID
|
*/
|
@ApiModelProperty(value= "ID")
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 员工姓名
|
*/
|
@ApiModelProperty(value= "员工姓名")
|
@TableField("user_name")
|
private String userName;
|
|
/**
|
* 员工ID
|
*/
|
@ApiModelProperty(value= "员工ID")
|
@TableField("user_id")
|
private Long userId;
|
|
/**
|
* 报价单权限
|
*/
|
@ApiModelProperty(value= "报价单权限")
|
@TableField("pri_quote")
|
private String priQuote;
|
|
/**
|
* 报销权限
|
*/
|
@ApiModelProperty(value= "报销权限")
|
private String reimburse;
|
|
/**
|
* 备用字段1
|
*/
|
@ApiModelProperty(value= "备用字段1")
|
private String standby1;
|
|
/**
|
* 备用字段2
|
*/
|
@ApiModelProperty(value= "备用字段2")
|
private String standby2;
|
|
/**
|
* 备用字段3
|
*/
|
@ApiModelProperty(value= "备用字段3")
|
private String standby3;
|
|
/**
|
* 备用字段4
|
*/
|
@ApiModelProperty(value= "备用字段4")
|
private String standby4;
|
|
/**
|
* 备用字段5
|
*/
|
@ApiModelProperty(value= "备用字段5")
|
private String standby5;
|
|
/**
|
* 备用字段6
|
*/
|
@ApiModelProperty(value= "备用字段6")
|
private String standby6;
|
|
/**
|
* 权限节点
|
*/
|
@ApiModelProperty(value= "权限节点")
|
private String process;
|
|
/**
|
* 备注
|
*/
|
@ApiModelProperty(value= "备注")
|
private String memo;
|
|
/**
|
* 权限类型
|
*/
|
@ApiModelProperty(value= "权限类型")
|
@TableField("process_memo")
|
private Integer processMemo;
|
|
public ProcessPermissions() {}
|
|
public ProcessPermissions(String userName, Long userId, String priQuote, String reimburse, String standby1, String standby2, String standby3, String standby4, String standby5, String standby6, String process, String memo, Integer processMemo) {
|
this.userName = userName;
|
this.userId = userId;
|
this.priQuote = priQuote;
|
this.reimburse = reimburse;
|
this.standby1 = standby1;
|
this.standby2 = standby2;
|
this.standby3 = standby3;
|
this.standby4 = standby4;
|
this.standby5 = standby5;
|
this.standby6 = standby6;
|
this.process = process;
|
this.memo = memo;
|
this.processMemo = processMemo;
|
}
|
|
public String getProcessMemo$(){
|
if (null == this.processMemo){ return null; }
|
switch (this.processMemo){
|
case 1:
|
return "核价流程";
|
case 2:
|
return "报价流程";
|
case 3:
|
return "报销流程";
|
case 4:
|
return "出差流程";
|
case 7:
|
return "合同管理";
|
default:
|
return String.valueOf(this.processMemo);
|
}
|
}
|
|
// ProcessPermissions processPermissions = new ProcessPermissions(
|
// null, // 员工姓名[非空]
|
// null, // 员工ID[非空]
|
// null, // 报价单权限
|
// null, // 报销权限
|
// null, // 备用字段1
|
// null, // 备用字段2
|
// null, // 备用字段3
|
// null, // 备用字段4
|
// null, // 备用字段5
|
// null, // 备用字段6
|
// null, // 权限节点[非空]
|
// null, // 备注
|
// null // 权限类型[非空]
|
// );
|
|
|
}
|