Merge remote-tracking branch 'origin/test' into test
commit
ad4b59a700
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.pojo.andon.model;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import javax.persistence.Column;
|
||||
|
||||
/**
|
||||
* @Description : 人员model
|
||||
* @Reference :
|
||||
* @Author : wangjie
|
||||
* @CreateDate : 2018-10-11 11:02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Api("用户信息model")
|
||||
public class AndonUserModel extends BaseBean {
|
||||
|
||||
@ApiParam(value ="部门名称")
|
||||
private String departmentNameRdd;
|
||||
|
||||
@ApiParam(value ="用户名称" , access ="账号名称")
|
||||
private String userName;
|
||||
|
||||
@Column(name="USER_LOGIN_NAME")
|
||||
@ApiParam(value ="员工编号")
|
||||
private String userEmpNo;
|
||||
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :配置表
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-06-04
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WORK_CELL_STATUS")
|
||||
@Api("工位运行状态")
|
||||
public class MesWorkCellStatus extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 102975351699481524L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "TIME_OUT_STATUS")
|
||||
@ApiParam("超时状态")
|
||||
private Integer timeOutStatus;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.pcn.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.pcn.bean.MesWorkCellStatus;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\15 11:21
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesWorkCellStatusRepository extends BaseRepository<MesWorkCellStatus, Long> {
|
||||
}
|
@ -0,0 +1,98 @@
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :设备运行履历表
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_EQUIPMENT_TRAVEL")
|
||||
@Api("设备运行履历表")
|
||||
public class MesEquipmentTravel extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = -419342647505833190L;
|
||||
|
||||
@Column(name = "EQUIPMENT_CODE")
|
||||
@ApiParam("设备代码")
|
||||
private String equipmentCode;
|
||||
|
||||
@Column(name = "EQUIPMENT_NAME")
|
||||
@ApiParam("设备名称")
|
||||
private String equipmentName;
|
||||
|
||||
@Column(name = "STATUS")
|
||||
@ApiParam("设备状态")
|
||||
private Integer status;
|
||||
|
||||
@Column(name = "EQUIPMENT_TYPE")
|
||||
@ApiParam("设备类型")
|
||||
private Integer equipmentType;
|
||||
|
||||
@Column(name = "EQUIPMENT_CATEGORY")
|
||||
@ApiParam("设备类别")
|
||||
private String equipmentCategory;
|
||||
|
||||
@Column(name = "EQUIPMENT_MODEL")
|
||||
@ApiParam("型号")
|
||||
private String equipmentModel;
|
||||
|
||||
@Column(name = "EQUIPMENT_SPEC")
|
||||
@ApiParam("规格")
|
||||
private String equipmentSpec;
|
||||
|
||||
@Column(name = "EQUIPMENT_MAKER")
|
||||
@ApiParam("制造商")
|
||||
private String equipmentMaker;
|
||||
|
||||
@Column(name = "RELEASE_DATE")
|
||||
@ApiParam("出厂日期")
|
||||
private String releaseDate;
|
||||
|
||||
@Column(name = "RECEIVE_DATE")
|
||||
@ApiParam("接收日期")
|
||||
private String receiveDate;
|
||||
|
||||
@Column(name = "ENABLE_DATE")
|
||||
@ApiParam("启用日期")
|
||||
private String enableDate;
|
||||
|
||||
@Column(name = "CONNECT_TYPE")
|
||||
@ApiParam("连接类型")
|
||||
private Integer connectType;
|
||||
|
||||
@Column(name = "CHECK_MODEL")
|
||||
@ApiParam("作业校验模式")
|
||||
private Integer checkModel;
|
||||
|
||||
@Column(name = "STATUS_START_TIME")
|
||||
@ApiParam("状态开始时间")
|
||||
private String statusStartTime;
|
||||
|
||||
@Column(name = "STATUS_END_TIME")
|
||||
@ApiParam("状态结束时间")
|
||||
private String statusEndTime;
|
||||
|
||||
}
|
@ -0,0 +1,50 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/8/3 17:51
|
||||
* @desc
|
||||
*/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_HNC_AGV_RUNNING")
|
||||
@Api("延锋海纳川agv运行状态表")
|
||||
public class MesHncAgvRunning extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 4293079676019967513L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "TIME_OUT")
|
||||
@ApiParam("倒计时超时")
|
||||
private Integer timeOut;
|
||||
|
||||
@Column(name = "DELAY_HELP")
|
||||
@ApiParam("延时帮助")
|
||||
private Integer delayHelp;
|
||||
|
||||
@Column(name = "EMERGENCY_STOP")
|
||||
@ApiParam("紧急停止")
|
||||
private Integer emergencyStop;
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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;
|
||||
|
||||
/**
|
||||
* @Description :MES_库位信息
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-12
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_LOCATION")
|
||||
@Api("MES_库位信息")
|
||||
public class MesLocation extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = -896118285166769048L;
|
||||
@Column(name = "LOCATION_CODE")
|
||||
@ApiParam("库位代码")
|
||||
private String locationCode;
|
||||
|
||||
@Column(name = "LOCATION_NAME")
|
||||
@ApiParam("库位名称")
|
||||
private String locationName;
|
||||
|
||||
@Column(name = "PART_NO")
|
||||
@ApiParam("物料号")
|
||||
private String partNo;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "QTY")
|
||||
@ApiParam("数量")
|
||||
private Double qty = 0d;
|
||||
|
||||
@Column(name = "MAX_QTY")
|
||||
@ApiParam("最大存储量")
|
||||
private Integer maxQty = 0;
|
||||
|
||||
@Transient
|
||||
@ApiParam("物料名称")
|
||||
private String partNameRdd;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "MES_LOG")
|
||||
@Api("MES_日志表")
|
||||
public class MesLog extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 4089347882308864216L;
|
||||
|
||||
@Column(name = "METHOD_NAME")
|
||||
@ApiParam(value = "方法名")
|
||||
private String methodName;
|
||||
|
||||
@Column(name = "LOG")
|
||||
@ApiParam(value = "日志")
|
||||
private String log;
|
||||
|
||||
@Column(name = "RESULT")
|
||||
@ApiParam(value = "更新结果")
|
||||
private String result;
|
||||
}
|
@ -0,0 +1,47 @@
|
||||
package cn.estsh.i3plus.pojo.mes.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @Description :配置表
|
||||
* @Reference :
|
||||
* @Author : crish
|
||||
* @CreateDate : 2019-06-04
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "MES_WORK_CELL_STATUS")
|
||||
@Api("工位运行状态")
|
||||
public class MesWorkCellStatus extends BaseBean implements Serializable {
|
||||
private static final long serialVersionUID = 102975351699481524L;
|
||||
|
||||
@Column(name = "WORK_CENTER_CODE")
|
||||
@ApiParam("产线")
|
||||
private String workCenterCode;
|
||||
|
||||
@Column(name = "WORK_CELL_CODE")
|
||||
@ApiParam("工位")
|
||||
private String workCellCode;
|
||||
|
||||
@Column(name = "TIME_OUT_STATUS")
|
||||
@ApiParam("超时状态")
|
||||
private Integer timeOutStatus;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Api("海纳川数据复核model")
|
||||
public class HncDataReviewModel {
|
||||
|
||||
@ApiParam("关键件")
|
||||
private String itemPartNo;
|
||||
|
||||
@ApiParam("关键件名称")
|
||||
private String itemPartName;
|
||||
|
||||
@ApiParam("需要数量")
|
||||
private String needNum;
|
||||
|
||||
@ApiParam("实际数量")
|
||||
private String realNum;
|
||||
|
||||
@ApiParam("对象代码")
|
||||
private String objectCode;
|
||||
|
||||
@ApiParam("是否合格标识")
|
||||
private Integer reviewFlag;
|
||||
|
||||
@ApiParam("是否合格")
|
||||
private String reviewResult;
|
||||
|
||||
@ApiParam("关键件颜色")
|
||||
private String keyPartColor;
|
||||
|
||||
@ApiParam("生产数据颜色")
|
||||
private String prodDataColor;
|
||||
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
package cn.estsh.i3plus.pojo.mes.model;
|
||||
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TorqueReviewModel {
|
||||
|
||||
@ApiParam("过程条码")
|
||||
private String serialNumber;
|
||||
|
||||
@ApiParam("工作中心代码")
|
||||
private String workCenterCode;
|
||||
|
||||
@ApiParam("工作单元代码")
|
||||
private String workCellCode;
|
||||
|
||||
@ApiParam("工作单元名称")
|
||||
private String workCellName;
|
||||
|
||||
@ApiParam("枪类型")
|
||||
private String gunType;
|
||||
|
||||
@ApiParam("检测结果")
|
||||
private String checkResult;
|
||||
|
||||
@ApiParam("显示颜色")
|
||||
private String showColor;
|
||||
|
||||
}
|
@ -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.MesEquipment;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesEquipmentTravel;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description :设备运行履历
|
||||
* @Reference :
|
||||
* @Author : jack.jia
|
||||
* @CreateDate : 2019-04-02
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesEquipmentTravelRepository extends BaseRepository<MesEquipmentTravel, Long> {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesHncAgvRunning;
|
||||
|
||||
/**
|
||||
* @author Wynne.Lu
|
||||
* @date 2020/8/3 17:54
|
||||
* @desc
|
||||
*/
|
||||
public interface MesHncAgvRunningRepository extends BaseRepository<MesHncAgvRunning, Long> {
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.IfProductOffLine;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesLocation;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:32
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesLocationRepository extends BaseRepository<MesLocation, Long> {
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesLog;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\18 10:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface MesLogRepository extends BaseRepository<MesLog, Long> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.mes.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.mes.bean.MesWorkCellStatus;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
/**
|
||||
* @Description:
|
||||
* @Reference:
|
||||
* @Author: joke.wang
|
||||
* @CreateDate: 2019\11\15 11:21
|
||||
* @Modify:
|
||||
**/
|
||||
@Repository
|
||||
public interface MesWorkCellStatusRepository extends BaseRepository<MesWorkCellStatus, Long> {
|
||||
}
|
@ -0,0 +1,69 @@
|
||||
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.ImppEnumUtil;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description :
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-08-10 15:13
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name="SYS_USER_CUSTOMIZE_CONFIG")
|
||||
@ApiModel(value="用户定制化配置",description = "用户定制化配置")
|
||||
public class SysUserCustomizeConfig extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = -3757585990009089233L;
|
||||
|
||||
@Column(name="USER_ID")
|
||||
@ApiModelProperty(value ="用户id" , example = "-1")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long userId;
|
||||
|
||||
@Column(name="CUSTOMIZE_CONFIG_TYPE")
|
||||
@ApiModelProperty(value ="定制化配置类型" , example = "-1")
|
||||
@AnnoOutputColumn(refClass = ImppEnumUtil.USER_CUSTOMIZE_CONFIG_TYPE.class)
|
||||
private Integer customizeConfigType;
|
||||
|
||||
public String getCustomizeConfigTypeTxt() {
|
||||
return customizeConfigType == null ? "无" : ImppEnumUtil.USER_CUSTOMIZE_CONFIG_TYPE.valueOf(customizeConfigType);
|
||||
}
|
||||
|
||||
@Column(name="CONFIG_KEY")
|
||||
@ApiModelProperty(value ="定制化配置类型" , example = "-1")
|
||||
private String configKey;
|
||||
|
||||
@Column(name="CONFIG_VALUE")
|
||||
@ApiModelProperty(value ="配置值" , example = "-1")
|
||||
private String configValue;
|
||||
|
||||
public String getRedisKey(String keyPrefix) {
|
||||
String redisKey = this.getUserId() + ":" + this.getCustomizeConfigType() + ":" + this.getConfigKey();
|
||||
if (StringUtils.isNotBlank(keyPrefix)) {
|
||||
return keyPrefix + ":" + redisKey;
|
||||
} else {
|
||||
return redisKey;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
@ -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.SysUserCustomizeConfig;
|
||||
|
||||
/**
|
||||
* @Description : 用户定制化配置
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-08-10 15:34
|
||||
* @Modify:
|
||||
**/
|
||||
public interface SysUserCustomizeConfigRepository extends BaseRepository<SysUserCustomizeConfig, Long> {
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
package cn.estsh.i3plus.pojo.ptl.bean;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
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 java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author wangjie
|
||||
* @date 2020/2/12 17:41
|
||||
* @desc
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@Table(name = "PTL_LOG")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Api("PTL_LOG")
|
||||
public class PtlLog extends BaseBean implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3885987217528730391L;
|
||||
|
||||
@Column(name = "METHOD_NAME")
|
||||
@ApiParam(value = "方法名")
|
||||
private String methodName;
|
||||
|
||||
@Column(name = "EXCEPTION_LOG")
|
||||
@ApiParam(value = "异常日志")
|
||||
private String exceptionLog;
|
||||
|
||||
@Column(name = "CONTROL_CODE")
|
||||
@ApiParam(value = "控制器")
|
||||
private String controlCode;
|
||||
|
||||
@Column(name = "IP")
|
||||
@ApiParam(value = "IP")
|
||||
private String ip;
|
||||
|
||||
@Column(name = "AREA_NO")
|
||||
@ApiParam(value = "区域")
|
||||
private String areaNo;
|
||||
|
||||
@Column(name = "SECTION_CODE")
|
||||
@ApiParam(value = "区段")
|
||||
private String sectionCode;
|
||||
|
||||
@Column(name = "TAG_NO")
|
||||
@ApiParam(value = "标签地址")
|
||||
private Integer tagNo;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package cn.estsh.i3plus.pojo.ptl.repository;
|
||||
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.ptl.bean.IfPickData;
|
||||
import cn.estsh.i3plus.pojo.ptl.bean.PtlLog;
|
||||
|
||||
/**
|
||||
* @author wangjie
|
||||
* @date 2020/2/12 17:41
|
||||
* @desc
|
||||
*/
|
||||
|
||||
public interface PtlLogRepository extends BaseRepository<PtlLog, Long> {
|
||||
|
||||
}
|
@ -0,0 +1,107 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.bean;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
|
||||
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
|
||||
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
||||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.hibernate.annotations.DynamicInsert;
|
||||
import org.hibernate.annotations.DynamicUpdate;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @Description : 业务脚本
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-07-28 14:35
|
||||
* @Modify:
|
||||
**/
|
||||
@Data
|
||||
@Entity
|
||||
@DynamicInsert
|
||||
@DynamicUpdate
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Table(name = "BS_BUSI_SCRIPT")
|
||||
@ApiModel(value = "业务脚本", description = "业务脚本")
|
||||
public class BsBusiScript extends BaseBean {
|
||||
|
||||
private static final long serialVersionUID = 1419277265159912600L;
|
||||
|
||||
@Column(name = "SCRIPT_NAME")
|
||||
@ApiModelProperty(value = "脚本名称")
|
||||
private String scriptName;
|
||||
|
||||
@Column(name = "SCRIPT_CODE")
|
||||
@ApiModelProperty(value = "脚本代码")
|
||||
private String scriptCode;
|
||||
|
||||
@Column(name = "SCRIPT_TYPE")
|
||||
@ApiModelProperty(value = "脚本类型")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_TYPE.class)
|
||||
private Integer scriptType;
|
||||
|
||||
public String getScriptTypeTxt() {
|
||||
return scriptType == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_TYPE.valueOfDescription(scriptType);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_LANGUAGE")
|
||||
@ApiModelProperty(value = "脚本语言")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_LANGUAGE.class)
|
||||
private Integer scriptLanguage;
|
||||
|
||||
public String getScriptLanguageTxt() {
|
||||
return scriptLanguage == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_LANGUAGE.valueOfDescription(scriptLanguage);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_EXECUTE_METHOD")
|
||||
@ApiModelProperty(value = "脚本执行方式")
|
||||
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_SCRIPT_EXECUTE_METHOD.class)
|
||||
private Integer scriptExecuteMethod;
|
||||
|
||||
public String getScriptExecuteMethodTxt() {
|
||||
return scriptExecuteMethod == null ? "无" : BlockSoftSwitchEnumUtil.BS_SCRIPT_EXECUTE_METHOD.valueOfDescription(scriptExecuteMethod);
|
||||
}
|
||||
|
||||
@Column(name = "SCRIPT_OBJ_NAME")
|
||||
@ApiModelProperty(value = "脚本对象名称")
|
||||
private String scriptObjName;
|
||||
|
||||
@Column(name = "SCRIPT_METHOD_NAME")
|
||||
@ApiModelProperty(value = "脚本方法名称")
|
||||
private String scriptMethodName;
|
||||
|
||||
@Column(name = "SCRIPT_CONTENT")
|
||||
@ApiModelProperty(value = "脚本内容")
|
||||
private String scriptContent;
|
||||
|
||||
@Column(name = "SCRIPT_DESC")
|
||||
@ApiModelProperty(value = "脚本描述")
|
||||
private String scriptDesc;
|
||||
|
||||
@Column(name = "REF_ID")
|
||||
@ApiModelProperty(value = "关联id")
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long refId;
|
||||
|
||||
@Column(name = "SCRIPT_VERSION")
|
||||
@ApiModelProperty(value = "脚本版本")
|
||||
private Integer scriptVersion;
|
||||
|
||||
public int getScriptVersion(){
|
||||
return scriptVersion == null ? NumberUtils.INTEGER_ONE : scriptVersion;
|
||||
}
|
||||
|
||||
public BsBusiScript nextVersion() {
|
||||
setScriptVersion(getScriptVersion() + 1);
|
||||
return this;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
package cn.estsh.i3plus.pojo.softswitch.repository;
|
||||
|
||||
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||
import cn.estsh.i3plus.pojo.softswitch.bean.BsBusiScript;
|
||||
|
||||
/**
|
||||
* @Description : 业务脚本
|
||||
* @Reference :
|
||||
* @Author : yunhao
|
||||
* @CreateDate : 2020-07-28 15:13
|
||||
* @Modify:
|
||||
**/
|
||||
public interface BsBusiScriptRepository extends BaseRepository<BsBusiScript,Long> {
|
||||
}
|
Loading…
Reference in New Issue