【任务:1193接口数据解析】

yun-zuoyi
jokelone 6 years ago
parent e046553788
commit f632308d0a

@ -12,6 +12,80 @@ import com.fasterxml.jackson.annotation.JsonFormat;
public class MesEnumUtil {
/**
* RAW_PART_STATUS
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RAW_PART_STATUS {
READY(10, "待投料"),
ALREADY(20, "已投料");
private int value;
private String description;
RAW_PART_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;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IF_SYNC_STATUS {
NO_SYNC(10, "未同步"),
ALREADY_SYNC(20, "已同步"),
FAIL_SYNC(30, "同步失败");
private int value;
private String description;
IF_SYNC_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;
}
}
/**
* MesIf
*/

@ -73,9 +73,9 @@ public class MesPart extends BaseBean {
@ApiParam("产品类型")
private String produceCategory;
@Column(name = "PORCESS_MATCH_TYPE")
@Column(name = "PROCESS_MATCH_TYPE")
@ApiParam("过程编码匹配类型")
private String porcessMatchType;
private String processMatchType;
@Column(name = "PACKAGE_MATCH_TYPE")
@ApiParam("包装编码匹配类型")

@ -0,0 +1,72 @@
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;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 9:34
* @Modify:
**/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Api("动作函数关系model")
public class IfRawPartDataModel implements Serializable {
@ApiParam("id")
private Long id;
@ApiParam("物料号")
private String partNo;
@ApiParam("物料名称")
private String partName;
@ApiParam("原料类型")
private String partType;
@ApiParam("原料条码")
private String serialNumber;
@ApiParam("数量")
private BigDecimal qty;
@ApiParam("单位")
private String unit;
@ApiParam("收货批次")
private String srcLotNo;
@ApiParam("生产批次")
private String lotNo;
@ApiParam("特殊批次")
private String fixLotNo;
@ApiParam("供应商代码")
private String supplierCode;
@ApiParam("工厂代码")
private String organizationCode;
@ApiParam("同步状态")
private Integer syncStatus;
@ApiParam("异常消息")
private String errorMessage;
@ApiParam("动作代码")
private String actionCode;
@ApiParam("接口代码")
private String ifCode;
}

@ -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.IfDismantleRecord;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 10:33
* @Modify:
**/
public interface IfDismantleRecordRepository extends BaseRepository<IfDismantleRecord, 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.IfPackageDetail;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 10:34
* @Modify:
**/
public interface IfPackageDetailRepository extends BaseRepository<IfPackageDetail, 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.IfProductOffLine;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 10:32
* @Modify:
**/
public interface IfProductOffLineRepository extends BaseRepository<IfProductOffLine, 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.MesRawPartSn;
/**
* @Description:
* @Reference:
* @Author: joke.wang
* @CreateDate: 2019\11\18 11:17
* @Modify:
**/
public interface MesRawPartSnRepository extends BaseRepository<MesRawPartSn, Long> {
}
Loading…
Cancel
Save