parent
69346da06d
commit
fe46d8da29
@ -0,0 +1,107 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.license;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : wei.peng
|
||||||
|
* @CreateDate : 20-2-10 下午5:10
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class ImppLicense implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 2365830603839063328L;
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* 授权人名称
|
||||||
|
* 授权开始时间
|
||||||
|
* 授权结束时间
|
||||||
|
*
|
||||||
|
* 授权工厂
|
||||||
|
* 仓库
|
||||||
|
* 产线
|
||||||
|
* 用户
|
||||||
|
* 授权描述
|
||||||
|
* 同时最大在线数量
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* 基础信息 */
|
||||||
|
@ApiParam(value ="授权ID")
|
||||||
|
private Long Id; // ID
|
||||||
|
@ApiParam(value ="授权应用ID")
|
||||||
|
private Long appId; // APP_ID
|
||||||
|
@ApiParam(value ="授权读取授权数据ID")
|
||||||
|
private Integer licenseSourceId; // 授权数据来源
|
||||||
|
public String getLicenseSourceTxt() {
|
||||||
|
return licenseSourceId == null ? null : CommonEnumUtil.LICENSE_SOURCE.valueOf(licenseSourceId);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* 授权信息 */
|
||||||
|
@ApiParam(value ="授权开始时间")
|
||||||
|
private Date licenseStartDateTime; // 授权开始时间
|
||||||
|
@ApiParam(value ="授权结束时间")
|
||||||
|
private Date licenseEndDateTime; // 授权结束时间
|
||||||
|
@ApiParam(value ="授权组织数量")
|
||||||
|
private Integer licenseMaxOrganize; // 授权组织数量
|
||||||
|
@ApiParam(value ="授权仓库数量")
|
||||||
|
private Integer licenseMaxWarehouse; // 授权仓库数量
|
||||||
|
@ApiParam(value ="授权产线数量")
|
||||||
|
private Integer licenseMaxProductionLine; // 授权产线数量
|
||||||
|
@ApiParam(value ="授权用户数量")
|
||||||
|
private Integer licenseMaxUser; // 授权用户数量
|
||||||
|
@ApiParam(value ="授权同时在线数量")
|
||||||
|
private Integer licenseMaxUserSession; // 授权在线用户数量
|
||||||
|
@ApiParam(value ="授权描述信息")
|
||||||
|
private String licenseDescription; // 授权描述信息
|
||||||
|
@ApiParam(value ="深思授权信息")
|
||||||
|
private ImppLicenseSenseshield senseshield;
|
||||||
|
|
||||||
|
/* 业务人员信息 */
|
||||||
|
@ApiParam(value ="授权创建时间")
|
||||||
|
private Date licenseCreateDateTime; // 授权时间
|
||||||
|
@ApiParam(value ="授权创建人员ID")
|
||||||
|
private Long licenseCreateUserId; // 授权用户ID
|
||||||
|
@ApiParam(value ="授权创建人员名称")
|
||||||
|
private String licenseCreateUserName; // 授权人名称
|
||||||
|
@ApiParam(value ="授权更新人员ID")
|
||||||
|
private Long licenseUpdateUserId; // 授权更新人员ID
|
||||||
|
@ApiParam(value ="授权更新人员名称")
|
||||||
|
private String licenseUpdateUserName; // 授权人名称
|
||||||
|
@ApiParam(value ="授权更新人员时间")
|
||||||
|
private Date licenseUpdateDateTime; // 授权更新时间
|
||||||
|
|
||||||
|
/* 授权锁信息(软锁,usb锁) */
|
||||||
|
@ApiParam(value ="授权使用开始时间")
|
||||||
|
private Date lockStartTime;
|
||||||
|
@ApiParam(value ="授权使用结束时间")
|
||||||
|
private Date lockEndTime;
|
||||||
|
@ApiParam(value ="锁类型")
|
||||||
|
private String lockType;
|
||||||
|
|
||||||
|
/* 基础业务逻辑 */
|
||||||
|
@ApiParam(value ="到期时间")
|
||||||
|
private Date maturityDateTime;
|
||||||
|
|
||||||
|
public void setSenseshield(ImppLicenseSenseshield senseshield) {
|
||||||
|
if(Objects.nonNull(senseshield)){
|
||||||
|
try {
|
||||||
|
this.lockStartTime = new Date(senseshield.getLast_update_timestamp() * 1000L);
|
||||||
|
this.lockEndTime = new Date((senseshield.getLast_update_timestamp() + senseshield.getSpan_time()) * 1000L);
|
||||||
|
this.lockType = senseshield.getType();
|
||||||
|
this.maturityDateTime = lockEndTime.getTime() > licenseEndDateTime.getTime() ? licenseEndDateTime: lockEndTime;
|
||||||
|
}catch (Exception e){
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.senseshield = senseshield;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,55 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.license;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : wei.peng
|
||||||
|
* @CreateDate : 20-4-16 下午7:54
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class ImppLicenseSenseshield {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* license_id : 170817
|
||||||
|
* enable : true
|
||||||
|
* guid : 6cece6946234ed4292617306ccd1191a
|
||||||
|
* first_use_time : 1587029768
|
||||||
|
* span_time : 315360000
|
||||||
|
* concurrent_type : win_user_session
|
||||||
|
* concurrent : 1000
|
||||||
|
* version : 0
|
||||||
|
* module : 0000000000000000
|
||||||
|
* last_update_timestamp : 1587029200
|
||||||
|
* last_update_timesn : 0
|
||||||
|
* rom_size : 1184
|
||||||
|
* raw_size : 1184
|
||||||
|
* pub_size : 0
|
||||||
|
* developer_id : 0800000000001005
|
||||||
|
* type : local
|
||||||
|
* sn : 9733c801000702075ed2000200270021
|
||||||
|
*/
|
||||||
|
|
||||||
|
private int license_id;
|
||||||
|
private boolean enable;
|
||||||
|
private String guid;
|
||||||
|
private int first_use_time;
|
||||||
|
private int span_time;
|
||||||
|
private String concurrent_type;
|
||||||
|
private int concurrent;
|
||||||
|
private int version;
|
||||||
|
private String module;
|
||||||
|
private int last_update_timestamp;
|
||||||
|
private int last_update_timesn;
|
||||||
|
private int rom_size;
|
||||||
|
private int raw_size;
|
||||||
|
private int pub_size;
|
||||||
|
private String developer_id;
|
||||||
|
private String type;
|
||||||
|
private String sn;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,35 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.model.softswitch;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiParam;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :
|
||||||
|
* @Reference :
|
||||||
|
* @Author : wei.peng
|
||||||
|
* @CreateDate : 20-4-18 上午10:26
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
public class SuitImppCloudModel {
|
||||||
|
|
||||||
|
@ApiParam(value = "适配器信息")
|
||||||
|
private BsSuitCaseModel model;
|
||||||
|
|
||||||
|
@ApiParam(value = "请求参数信息")
|
||||||
|
private Object param;
|
||||||
|
|
||||||
|
public SuitImppCloudModel() {
|
||||||
|
}
|
||||||
|
|
||||||
|
public SuitImppCloudModel(SuitServerModel serverModel) {
|
||||||
|
this.model = serverModel.getBsSuitCaseModel();
|
||||||
|
this.param = serverModel.getObj();
|
||||||
|
this.param = serverModel.getObj();
|
||||||
|
}
|
||||||
|
|
||||||
|
public SuitImppCloudModel(BsSuitCaseModel model, Object param) {
|
||||||
|
this.model = model;
|
||||||
|
this.param = param;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue