mes-pcn定时任务

yun-zuoyi
王杰 6 years ago
parent 84bcdbaf7d
commit 6929e88570

@ -12,8 +12,45 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesPcnEnumUtil { public class MesPcnEnumUtil {
/** /**
* mes-pcn
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_PCN_TASK_STATUS{
OPEN(1,"OPEN"),
CLOSE(2,"CLOSE");
private int value;
private String description;
MES_PCN_TASK_STATUS(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(int val) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].description;
}
}
return tmp;
}
}
/**
* mes-pcn * mes-pcn
* 10. *
*/ */
@JsonFormat(shape = JsonFormat.Shape.OBJECT) @JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum MES_PCN_TASK_SYNC_STATUS{ public enum MES_PCN_TASK_SYNC_STATUS{

@ -37,6 +37,10 @@ public class MesPcnTask extends BaseBean {
@ApiParam("任务名称") @ApiParam("任务名称")
private String taskName; private String taskName;
@Column(name="TASK_GROUP_NAME")
@ApiParam("任务组名称")
private String taskGroupName;
@Column(name="TASK_DESCRIPTION") @Column(name="TASK_DESCRIPTION")
@ApiParam("任务描述") @ApiParam("任务描述")
private String taskDescription; private String taskDescription;
@ -69,7 +73,15 @@ public class MesPcnTask extends BaseBean {
@ApiParam("任务周期描述") @ApiParam("任务周期描述")
private String taskCycleDescription; private String taskCycleDescription;
@Column(name="TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
public int getTaskTypeVal() { public int getTaskTypeVal() {
return this.taskType == null ? 0 : this.taskType; return this.taskType == null ? 0 : this.taskType;
} }
public int getTaskStatusVal() {
return this.taskStatus == null ? 0 : this.taskStatus;
}
} }

@ -37,6 +37,10 @@ public class MesPcnTask extends BaseBean {
@ApiParam("任务名称") @ApiParam("任务名称")
private String taskName; private String taskName;
@Column(name="TASK_GROUP_NAME")
@ApiParam("任务组名称")
private String taskGroupName;
@Column(name="TASK_DESCRIPTION") @Column(name="TASK_DESCRIPTION")
@ApiParam("任务描述") @ApiParam("任务描述")
private String taskDescription; private String taskDescription;
@ -69,7 +73,15 @@ public class MesPcnTask extends BaseBean {
@ApiParam("任务周期描述") @ApiParam("任务周期描述")
private String taskCycleDescription; private String taskCycleDescription;
@Column(name="TASK_STATUS")
@ApiParam("任务状态")
private Integer taskStatus;
public int getTaskTypeVal() { public int getTaskTypeVal() {
return this.taskType == null ? 0 : this.taskType; return this.taskType == null ? 0 : this.taskType;
} }
public int getTaskStatusVal() {
return this.taskStatus == null ? 0 : this.taskStatus;
}
} }

Loading…
Cancel
Save