安灯广播
parent
be63f4eab9
commit
db26628d9f
@ -0,0 +1,76 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.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;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :安灯广播
|
||||||
|
* @Reference :
|
||||||
|
* @Author : crish
|
||||||
|
* @CreateDate : 2019-10-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="ANDON_BRODCAST")
|
||||||
|
@Api("安灯广播")
|
||||||
|
public class AndonBroadCast extends BaseBean {
|
||||||
|
@Column(name="DEVICE_NUM")
|
||||||
|
@ApiParam("广播设备编号")
|
||||||
|
private String targetIds;
|
||||||
|
|
||||||
|
@Column(name="WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心")
|
||||||
|
private String workCenterCode;
|
||||||
|
|
||||||
|
@Column(name="DEVICE_DEC")
|
||||||
|
@ApiParam("广播设备名称")
|
||||||
|
private String deviceDec;
|
||||||
|
|
||||||
|
@Column(name="DEVICE_IP")
|
||||||
|
@ApiParam("广播设备ip")
|
||||||
|
private String deviceIp;
|
||||||
|
|
||||||
|
@Column(name="PLAY_INTERVAL")
|
||||||
|
@ApiParam("播放间隔")
|
||||||
|
private Integer playInterval = 0;
|
||||||
|
|
||||||
|
@Column(name="PLAY_PRIORITY")
|
||||||
|
@ApiParam("播放优先级")
|
||||||
|
private Integer playPriority = 500;
|
||||||
|
|
||||||
|
@Column(name="VOLUME")
|
||||||
|
@ApiParam("播放音量")
|
||||||
|
private Integer volume;
|
||||||
|
|
||||||
|
@Column(name="TTS_NAME")
|
||||||
|
@ApiParam("广播语音引擎")
|
||||||
|
private String voiceEngine;
|
||||||
|
|
||||||
|
@Column(name="TEXT_ENCODE")
|
||||||
|
@ApiParam("广播内容编码格式")
|
||||||
|
private String textEncode = "UTF-8";
|
||||||
|
|
||||||
|
@Column(name="PLAY_SPEED")
|
||||||
|
@ApiParam("播放语速")
|
||||||
|
private Integer playSpeed = 0;
|
||||||
|
|
||||||
|
@Column(name="PLAY_TIME")
|
||||||
|
@ApiParam("播放循环次数")
|
||||||
|
private Integer playTime = 1;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.bean;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
|
||||||
|
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.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description :广播配置
|
||||||
|
* @Reference :
|
||||||
|
* @Author : crish
|
||||||
|
* @CreateDate : 2019-10-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Data
|
||||||
|
@Entity
|
||||||
|
@DynamicInsert
|
||||||
|
@DynamicUpdate
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@Table(name="ANDON_BRODCAST_CFG")
|
||||||
|
@Api("生产区域")
|
||||||
|
public class AndonBroadCastCfg extends BaseBean {
|
||||||
|
@Column(name="ALARM_CODE")
|
||||||
|
@ApiParam("安灯类型代码")
|
||||||
|
private String alarmCode;
|
||||||
|
|
||||||
|
@Column(name="DEVICE_NUM")
|
||||||
|
@ApiParam("广播设备编号")
|
||||||
|
private String targetIds;
|
||||||
|
|
||||||
|
@Column(name="WORK_CENTER_CODE")
|
||||||
|
@ApiParam("工作中心")
|
||||||
|
private String workCenterCode;
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmCause;
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonBroadCastCfg;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 安灯广播配置持久层
|
||||||
|
* @Reference :
|
||||||
|
* @Author : crish
|
||||||
|
* @CreateDate : 2019-10-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IAndonBroadCastCfgRepository extends BaseRepository<AndonBroadCastCfg, Long> {
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package cn.estsh.i3plus.pojo.andon.repository;
|
||||||
|
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonAlarmCause;
|
||||||
|
import cn.estsh.i3plus.pojo.andon.bean.AndonBroadCast;
|
||||||
|
import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository;
|
||||||
|
import org.springframework.stereotype.Repository;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Description : 安灯广播持久层
|
||||||
|
* @Reference :
|
||||||
|
* @Author : crish
|
||||||
|
* @CreateDate : 2019-10-11
|
||||||
|
* @Modify:
|
||||||
|
**/
|
||||||
|
@Repository
|
||||||
|
public interface IAndonBroadCastRepository extends BaseRepository<AndonBroadCast, Long> {
|
||||||
|
}
|
Loading…
Reference in New Issue