yun-zuoyi
许心洁 5 years ago
commit 309eea6f5d

@ -1010,4 +1010,127 @@ public class PtlPcnEnumUtil {
}
}
/**
* PTL_
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MAIN_TASK_DETAIL_PART_CATEGORY {
DOOR_LOCK_PART_NO(10, "DOOR_LOCK_PART_NO", "门锁零件号");
private int value;
private String code;
private String description;
MAIN_TASK_DETAIL_PART_CATEGORY(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PRINT_TYPE {
PART_NO(10, "PART_NO");
private int value;
private String description;
PRINT_TYPE(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ETC_PRINT_STATUS {
NOT_HIT(10, "未打"),
ALREADY_HIT(20, "已打");
private int value;
private String description;
ETC_PRINT_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOf(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -45,4 +45,8 @@ public class PtlMainTaskDetail extends BaseBean implements Serializable {
@ApiParam("数量")
private Integer qty;
@Column(name = "PART_CATEGORY")
@ApiParam("物料种类")
private Integer partCategory;
}

@ -0,0 +1,59 @@
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;
/**
* @Description :
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2019-09-26 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="PTL_PRINTER_CONFIGURE")
@Api("打印机配置表")
public class PtlPrinterConfigure extends BaseBean{
private static final long serialVersionUID = 1234639813072592779L;
@Column(name="PRINTER_NO")
@ApiParam("打印机编号")
private String printerNo;
@Column(name="PRINTER_NAME")
@ApiParam("打印机名称")
private String printerName;
@Column(name="IP")
@ApiParam("IP")
private String ip;
@Column(name="PORT")
@ApiParam("端口")
private Integer port;
@Column(name="OBJECT_DESCRIPTION")
@ApiParam(value ="描述")
private String objectDescription;
@Column(name="POSITION")
@ApiParam("位置")
private String position;
@Column(name="TYPE")
@ApiParam("类型")
private Integer type;
}

@ -0,0 +1,55 @@
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;
/**
* @Description :
* @Reference :
* @Author : jessica.chen
* @CreateDate : 2019-09-27 14:21
* @Modify:
**/
@Data
@Entity
@DynamicInsert
@DynamicUpdate
@EqualsAndHashCode(callSuper = true)
@Table(name="PTL_PRINTING_QUEUE")
@Api("待打印队列表")
public class PtlPrintingQueue extends BaseBean{
private static final long serialVersionUID = 1111639813072592779L;
@Column(name="PRINT_IDENTIFICATION")
@ApiParam("打印标识")
private String printIdentification;
@Column(name="PRINT_TYPE")
@ApiParam("打印类型")
private Integer printType;
@Column(name="PRINT_NO")
@ApiParam("打印机编号")
private String printNo;
@Column(name="PRINT_MUMBER")
@ApiParam("打印机张数")
private Integer printNumber = 1;
@Column(name="TEMPLATE_NO")
@ApiParam("模板编号")
private String templateNo;
@Column(name="PRINT_STATUS")
@ApiParam("打印状态")
private Integer printStatus;
}

@ -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.PtlMainTaskDetail;
import cn.estsh.i3plus.pojo.ptl.bean.PtlPrinterConfigure;
/**
* @author Wynne.Lu
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlMainTaskDetailRepository extends BaseRepository<PtlMainTaskDetail, Long> {
}

@ -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.PtlPrinterConfigure;
import cn.estsh.i3plus.pojo.ptl.bean.PtlPrintingQueue;
/**
* @author Wynne.Lu
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlPrinterConfigureRepository extends BaseRepository<PtlPrinterConfigure, Long> {
}

@ -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.PtlActionModule;
import cn.estsh.i3plus.pojo.ptl.bean.PtlPrintingQueue;
/**
* @author Wynne.Lu
* @date 2020/2/12 17:41
* @desc
*/
public interface PtlPrintingQueueRepository extends BaseRepository<PtlPrintingQueue, Long> {
}
Loading…
Cancel
Save