change - add-ERP订单接口
parent
1661a13ec2
commit
18f22c3803
@ -0,0 +1,45 @@
|
||||
package com.os.mes.api.controller;
|
||||
|
||||
import com.os.common.core.controller.BaseController;
|
||||
import com.os.common.core.domain.AjaxResult;
|
||||
import com.os.mes.api.domain.ERPParamDto;
|
||||
import com.os.mes.api.service.IERPPortService;
|
||||
import com.os.mes.base.service.IBaseCustomDataService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* ERP接口Controller
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-10
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/erp")
|
||||
public class ERPPortController extends BaseController {
|
||||
@Autowired
|
||||
private IERPPortService portService;
|
||||
|
||||
|
||||
/**
|
||||
* 获取ERP订单接口
|
||||
*
|
||||
* @param paramMap
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/getERPOrderData")
|
||||
public AjaxResult getERPOrderData(@RequestBody Map paramMap) {
|
||||
ERPParamDto paramDto = new ERPParamDto();
|
||||
paramDto.setAppCode(String.valueOf(paramMap.get("AppCode")));
|
||||
paramDto.setController(String.valueOf(paramMap.get("Controller")));
|
||||
paramDto.setActionName(String.valueOf(paramMap.get("ActionName")));
|
||||
paramDto.setOrderStartTime(String.valueOf(paramMap.get("OrderStartTime")));
|
||||
paramDto.setOrderEndTime(String.valueOf(paramMap.get("OrderEndTime")));
|
||||
String list = portService.getERPOrderData(paramDto);
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* ERP接口请求参数实体
|
||||
* @Author YinQ
|
||||
* @create 2023-09-26 14:46
|
||||
*/
|
||||
public class ERPParamDto {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@JsonProperty(value = "AppCode")
|
||||
private String AppCode;
|
||||
@JsonProperty(value = "Controller")
|
||||
private String Controller;
|
||||
@JsonProperty(value = "ActionName")
|
||||
private String ActionName;
|
||||
@JsonProperty(value = "SeqNo")
|
||||
private String SeqNo; // 任务编号
|
||||
@JsonProperty(value = "ProductStatus")
|
||||
private String ProductStatus; // 产品状态
|
||||
@JsonProperty(value = "OrderStartTime")
|
||||
private String OrderStartTime; // 下单日期_开始时间
|
||||
@JsonProperty(value = "OrderEndTime")
|
||||
private String OrderEndTime; // 下单日期_截止时间
|
||||
|
||||
|
||||
public String getAppCode() {
|
||||
return AppCode;
|
||||
}
|
||||
|
||||
public void setAppCode(String appCode) {
|
||||
AppCode = appCode;
|
||||
}
|
||||
|
||||
public String getController() {
|
||||
return Controller;
|
||||
}
|
||||
|
||||
public void setController(String controller) {
|
||||
Controller = controller;
|
||||
}
|
||||
|
||||
public String getActionName() {
|
||||
return ActionName;
|
||||
}
|
||||
|
||||
public void setActionName(String actionName) {
|
||||
ActionName = actionName;
|
||||
}
|
||||
|
||||
public String getSeqNo() {
|
||||
return SeqNo;
|
||||
}
|
||||
|
||||
public void setSeqNo(String seqNo) {
|
||||
SeqNo = seqNo;
|
||||
}
|
||||
|
||||
public String getProductStatus() {
|
||||
return ProductStatus;
|
||||
}
|
||||
|
||||
public void setProductStatus(String productStatus) {
|
||||
ProductStatus = productStatus;
|
||||
}
|
||||
|
||||
public String getOrderStartTime() {
|
||||
return OrderStartTime;
|
||||
}
|
||||
|
||||
public void setOrderStartTime(String orderStartTime) {
|
||||
OrderStartTime = orderStartTime;
|
||||
}
|
||||
|
||||
public String getOrderEndTime() {
|
||||
return OrderEndTime;
|
||||
}
|
||||
|
||||
public void setOrderEndTime(String orderEndTime) {
|
||||
OrderEndTime = orderEndTime;
|
||||
}
|
||||
}
|
@ -0,0 +1,66 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class Material {
|
||||
|
||||
/** 材料编号 */
|
||||
@JsonProperty("MaterialNo")
|
||||
private String MaterialNo;
|
||||
|
||||
/** 材料名称 */
|
||||
@JsonProperty("MaterialName")
|
||||
private String MaterialName;
|
||||
|
||||
/** 材料规格 */
|
||||
@JsonProperty("MaterialSpecification")
|
||||
private String MaterialSpecification;
|
||||
|
||||
/** 材料大类 */
|
||||
@JsonProperty("MaterialLargeCategories")
|
||||
private String MaterialLargeCategories;
|
||||
|
||||
/** 材料小类 */
|
||||
@JsonProperty("MaterialSmallCategories")
|
||||
private String MaterialSmallCategories;
|
||||
|
||||
public String getMaterialNo() {
|
||||
return MaterialNo;
|
||||
}
|
||||
|
||||
public void setMaterialNo(String materialNo) {
|
||||
MaterialNo = materialNo;
|
||||
}
|
||||
|
||||
public String getMaterialName() {
|
||||
return MaterialName;
|
||||
}
|
||||
|
||||
public void setMaterialName(String materialName) {
|
||||
MaterialName = materialName;
|
||||
}
|
||||
|
||||
public String getMaterialSpecification() {
|
||||
return MaterialSpecification;
|
||||
}
|
||||
|
||||
public void setMaterialSpecification(String materialSpecification) {
|
||||
MaterialSpecification = materialSpecification;
|
||||
}
|
||||
|
||||
public String getMaterialLargeCategories() {
|
||||
return MaterialLargeCategories;
|
||||
}
|
||||
|
||||
public void setMaterialLargeCategories(String materialLargeCategories) {
|
||||
MaterialLargeCategories = materialLargeCategories;
|
||||
}
|
||||
|
||||
public String getMaterialSmallCategories() {
|
||||
return MaterialSmallCategories;
|
||||
}
|
||||
|
||||
public void setMaterialSmallCategories(String materialSmallCategories) {
|
||||
MaterialSmallCategories = materialSmallCategories;
|
||||
}
|
||||
}
|
@ -0,0 +1,824 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class RecordData {
|
||||
|
||||
/** 带宽 */
|
||||
@JsonProperty("BeltWidth")
|
||||
private int BeltWidth;
|
||||
|
||||
/** 带布层 */
|
||||
@JsonProperty("BeltClothLayer")
|
||||
private int BeltClothLayer;
|
||||
|
||||
/** 带所需长度 */
|
||||
@JsonProperty("BeltRequiredLength")
|
||||
private int BeltRequiredLength;
|
||||
|
||||
/** 粘合所需厚度 */
|
||||
@JsonProperty("GluingRequiredThickness")
|
||||
private int GluingRequiredThickness;
|
||||
|
||||
/** 下胶所需厚度 */
|
||||
@JsonProperty("LowerGlueRequiredThickness")
|
||||
private int LowerGlueRequiredThickness;
|
||||
|
||||
/** 生产粘合厚度 */
|
||||
@JsonProperty("ProductionGluingThickness")
|
||||
private double ProductionGluingThickness;
|
||||
|
||||
/** 上缓冲粘合厚度 */
|
||||
@JsonProperty("UpperBufferAdhesiveThickness")
|
||||
private int UpperBufferAdhesiveThickness;
|
||||
|
||||
/** 生产下胶厚度 */
|
||||
@JsonProperty("ProductionLowerGlueThickness")
|
||||
private double ProductionLowerGlueThickness;
|
||||
|
||||
/** 下缓冲粘合厚度 */
|
||||
@JsonProperty("LowerBufferAdhesiveThickness")
|
||||
private double LowerBufferAdhesiveThickness;
|
||||
|
||||
/** 布粘合厚度 */
|
||||
@JsonProperty("ClothGlueThickness")
|
||||
private double ClothGlueThickness;
|
||||
|
||||
/** 小布料层 */
|
||||
@JsonProperty("SmallClothFabricLayer")
|
||||
private int SmallClothFabricLayer;
|
||||
|
||||
/** 小布厚度 */
|
||||
@JsonProperty("SmallClothThickness")
|
||||
private int SmallClothThickness;
|
||||
|
||||
/** 是否需要加厚 */
|
||||
@JsonProperty("IsNeedThicken")
|
||||
private String IsNeedThicken;
|
||||
|
||||
/** 每层加厚厚度 */
|
||||
@JsonProperty("EachLayerThickenThickness")
|
||||
private int EachLayerThickenThickness;
|
||||
|
||||
/** 额外加厚厚度 */
|
||||
@JsonProperty("ExtraThickeningThickness")
|
||||
private int ExtraThickeningThickness;
|
||||
|
||||
/** 总生产厚度 */
|
||||
@JsonProperty("TotalProductionThickness")
|
||||
private double TotalProductionThickness;
|
||||
|
||||
/** 额外厚度 */
|
||||
@JsonProperty("AdditionalThickness")
|
||||
private double AdditionalThickness;
|
||||
|
||||
/** 推荐垫片厚度 */
|
||||
@JsonProperty("RecommendedShimThickness")
|
||||
private int RecommendedShimThickness;
|
||||
|
||||
/** 半成品宽度 */
|
||||
@JsonProperty("SemiFinishedProductWidth")
|
||||
private int SemiFinishedProductWidth;
|
||||
|
||||
/** 轧制生产米数 */
|
||||
@JsonProperty("RollingProductionMeters")
|
||||
private double RollingProductionMeters;
|
||||
|
||||
/** 推荐垫片宽度 */
|
||||
@JsonProperty("RecommendedPadWidth")
|
||||
private int RecommendedPadWidth;
|
||||
|
||||
/** 大布料制造商 */
|
||||
@JsonProperty("BigFabricManufacturer")
|
||||
private String BigFabricManufacturer;
|
||||
|
||||
/** 布料规格 */
|
||||
@JsonProperty("FabricSpecifications")
|
||||
private Material FabricSpecifications;
|
||||
|
||||
/** 估计布料使用量 */
|
||||
@JsonProperty("EstimatedFabricUsage")
|
||||
private double EstimatedFabricUsage;
|
||||
|
||||
/** 布宽 */
|
||||
@JsonProperty("ClothWidth")
|
||||
private int ClothWidth;
|
||||
|
||||
/** 布重 */
|
||||
@JsonProperty("ClothWeight")
|
||||
private double ClothWeight;
|
||||
|
||||
/** 小布料规格字典 */
|
||||
@JsonProperty("SmallFabricSpecificationsDic")
|
||||
private Material SmallFabricSpecificationsDic;
|
||||
|
||||
/** 小布宽 */
|
||||
@JsonProperty("SmallClothWidth")
|
||||
private int SmallClothWidth;
|
||||
|
||||
/** 小布使用量 */
|
||||
@JsonProperty("SmallClothUsage")
|
||||
private double SmallClothUsage;
|
||||
|
||||
/** 小布重量 */
|
||||
@JsonProperty("SmallClothWeight")
|
||||
private double SmallClothWeight;
|
||||
|
||||
/** 粘合工艺 */
|
||||
@JsonProperty("GluingProcess")
|
||||
private String GluingProcess;
|
||||
|
||||
/** 上下胶 */
|
||||
@JsonProperty("UpperLowerGlue")
|
||||
private UpperLowerGlue UpperLowerGlue;
|
||||
|
||||
/** 上下胶系数 */
|
||||
@JsonProperty("UpperLowerGlueCoefficient")
|
||||
private double UpperLowerGlueCoefficient;
|
||||
|
||||
/** 上下胶使用量 */
|
||||
@JsonProperty("UpperLowerGlueUsage")
|
||||
private double UpperLowerGlueUsage;
|
||||
|
||||
/** 下胶 */
|
||||
@JsonProperty("LowerGlue")
|
||||
private HashMap<String, Object> LowerGlue;
|
||||
|
||||
/** 下胶系数 */
|
||||
@JsonProperty("LowerGlueCoefficient")
|
||||
private double LowerGlueCoefficient;
|
||||
|
||||
/** 下胶使用量 */
|
||||
@JsonProperty("LowerGlueUsage")
|
||||
private double LowerGlueUsage;
|
||||
|
||||
/** 大布胶 */
|
||||
@JsonProperty("LargeClothGlue")
|
||||
private HashMap<String, Object> LargeClothGlue;
|
||||
|
||||
/** 大布胶系数 */
|
||||
@JsonProperty("LargeClothGlueCoefficient")
|
||||
private double LargeClothGlueCoefficient;
|
||||
|
||||
/** 大布胶使用量 */
|
||||
@JsonProperty("LargeClothGlueUsage")
|
||||
private double LargeClothGlueUsage;
|
||||
|
||||
/** 缓冲胶使用量 */
|
||||
@JsonProperty("BufferGlueUsage")
|
||||
private double BufferGlueUsage;
|
||||
|
||||
/** 中间胶 */
|
||||
@JsonProperty("MiddleGlue")
|
||||
private HashMap<String, Object> MiddleGlue;
|
||||
|
||||
/** 中间胶系数 */
|
||||
@JsonProperty("MiddleGlueCoefficient")
|
||||
private double MiddleGlueCoefficient;
|
||||
|
||||
/** 中间胶使用量 */
|
||||
@JsonProperty("MiddleGlueUsage")
|
||||
private double MiddleGlueUsage;
|
||||
|
||||
/** 小棒宽度 */
|
||||
@JsonProperty("SmallBarWidth")
|
||||
private int SmallBarWidth;
|
||||
|
||||
/** 小棒厚度 */
|
||||
@JsonProperty("SmallBarThickness")
|
||||
private int SmallBarThickness;
|
||||
|
||||
/** 小棒标准使用量 */
|
||||
@JsonProperty("SmallBarStandardUsage")
|
||||
private int SmallBarStandardUsage;
|
||||
|
||||
/** 成型区 */
|
||||
@JsonProperty("FormingArea")
|
||||
private int FormingArea;
|
||||
|
||||
/** 涂辊区 */
|
||||
@JsonProperty("RollCoatingArea")
|
||||
private int RollCoatingArea;
|
||||
|
||||
/** 卷布区 */
|
||||
@JsonProperty("RolledFabricArea")
|
||||
private int RolledFabricArea;
|
||||
|
||||
/** 硫化区 */
|
||||
@JsonProperty("SulfurizationArea")
|
||||
private int SulfurizationArea;
|
||||
|
||||
/** 大布面积 */
|
||||
@JsonProperty("LargeClothArea")
|
||||
private double LargeClothArea;
|
||||
|
||||
/** 小布面积 */
|
||||
@JsonProperty("SmallClothArea")
|
||||
private double SmallClothArea;
|
||||
|
||||
/** 带总面积 */
|
||||
@JsonProperty("BeltTotalArea")
|
||||
private int BeltTotalArea;
|
||||
|
||||
/** 裙边面积 */
|
||||
@JsonProperty("SkirtArea")
|
||||
private int SkirtArea;
|
||||
|
||||
/** 隔断面积 */
|
||||
@JsonProperty("PartitionArea")
|
||||
private int PartitionArea;
|
||||
|
||||
/** 封边总面积 */
|
||||
@JsonProperty("EdgeBandingTotalArea")
|
||||
private int EdgeBandingTotalArea;
|
||||
|
||||
/** 钢丝绳带总面积 */
|
||||
@JsonProperty("WireropeBeltTotalArea")
|
||||
private int WireropeBeltTotalArea;
|
||||
|
||||
/** 订单日期 */
|
||||
@JsonProperty("OrderDate")
|
||||
private String OrderDate;
|
||||
|
||||
/** 交货日期 */
|
||||
@JsonProperty("DeliveryDate")
|
||||
private String DeliveryDate;
|
||||
|
||||
/** 序号 */
|
||||
@JsonProperty("SeqNo")
|
||||
private String SeqNo;
|
||||
|
||||
/** 产品类型 */
|
||||
@JsonProperty("ProductType")
|
||||
private String ProductType;
|
||||
|
||||
/** 产品状态 */
|
||||
@JsonProperty("ProductStatus")
|
||||
private String ProductStatus;
|
||||
|
||||
/** 订单所有者 */
|
||||
@JsonProperty("OrderOwner")
|
||||
private String OrderOwner;
|
||||
|
||||
/** 客户信息 */
|
||||
@JsonProperty("CustomerInfo")
|
||||
private String CustomerInfo;
|
||||
|
||||
/** 带长规格 */
|
||||
@JsonProperty("BeltLengthSpecifications")
|
||||
private String BeltLengthSpecifications;
|
||||
|
||||
/** 面积和重量 */
|
||||
@JsonProperty("AreaAndWeight")
|
||||
private String AreaAndWeight;
|
||||
|
||||
/** 使用原材料 */
|
||||
@JsonProperty("UsingRawMaterials")
|
||||
private String UsingRawMaterials;
|
||||
|
||||
public int getBeltWidth() {
|
||||
return BeltWidth;
|
||||
}
|
||||
|
||||
public void setBeltWidth(int beltWidth) {
|
||||
BeltWidth = beltWidth;
|
||||
}
|
||||
|
||||
public int getBeltClothLayer() {
|
||||
return BeltClothLayer;
|
||||
}
|
||||
|
||||
public void setBeltClothLayer(int beltClothLayer) {
|
||||
BeltClothLayer = beltClothLayer;
|
||||
}
|
||||
|
||||
public int getBeltRequiredLength() {
|
||||
return BeltRequiredLength;
|
||||
}
|
||||
|
||||
public void setBeltRequiredLength(int beltRequiredLength) {
|
||||
BeltRequiredLength = beltRequiredLength;
|
||||
}
|
||||
|
||||
public int getGluingRequiredThickness() {
|
||||
return GluingRequiredThickness;
|
||||
}
|
||||
|
||||
public void setGluingRequiredThickness(int gluingRequiredThickness) {
|
||||
GluingRequiredThickness = gluingRequiredThickness;
|
||||
}
|
||||
|
||||
public int getLowerGlueRequiredThickness() {
|
||||
return LowerGlueRequiredThickness;
|
||||
}
|
||||
|
||||
public void setLowerGlueRequiredThickness(int lowerGlueRequiredThickness) {
|
||||
LowerGlueRequiredThickness = lowerGlueRequiredThickness;
|
||||
}
|
||||
|
||||
public double getProductionGluingThickness() {
|
||||
return ProductionGluingThickness;
|
||||
}
|
||||
|
||||
public void setProductionGluingThickness(double productionGluingThickness) {
|
||||
ProductionGluingThickness = productionGluingThickness;
|
||||
}
|
||||
|
||||
public int getUpperBufferAdhesiveThickness() {
|
||||
return UpperBufferAdhesiveThickness;
|
||||
}
|
||||
|
||||
public void setUpperBufferAdhesiveThickness(int upperBufferAdhesiveThickness) {
|
||||
UpperBufferAdhesiveThickness = upperBufferAdhesiveThickness;
|
||||
}
|
||||
|
||||
public double getProductionLowerGlueThickness() {
|
||||
return ProductionLowerGlueThickness;
|
||||
}
|
||||
|
||||
public void setProductionLowerGlueThickness(double productionLowerGlueThickness) {
|
||||
ProductionLowerGlueThickness = productionLowerGlueThickness;
|
||||
}
|
||||
|
||||
public double getLowerBufferAdhesiveThickness() {
|
||||
return LowerBufferAdhesiveThickness;
|
||||
}
|
||||
|
||||
public void setLowerBufferAdhesiveThickness(double lowerBufferAdhesiveThickness) {
|
||||
LowerBufferAdhesiveThickness = lowerBufferAdhesiveThickness;
|
||||
}
|
||||
|
||||
public double getClothGlueThickness() {
|
||||
return ClothGlueThickness;
|
||||
}
|
||||
|
||||
public void setClothGlueThickness(double clothGlueThickness) {
|
||||
ClothGlueThickness = clothGlueThickness;
|
||||
}
|
||||
|
||||
public int getSmallClothFabricLayer() {
|
||||
return SmallClothFabricLayer;
|
||||
}
|
||||
|
||||
public void setSmallClothFabricLayer(int smallClothFabricLayer) {
|
||||
SmallClothFabricLayer = smallClothFabricLayer;
|
||||
}
|
||||
|
||||
public int getSmallClothThickness() {
|
||||
return SmallClothThickness;
|
||||
}
|
||||
|
||||
public void setSmallClothThickness(int smallClothThickness) {
|
||||
SmallClothThickness = smallClothThickness;
|
||||
}
|
||||
|
||||
public String getIsNeedThicken() {
|
||||
return IsNeedThicken;
|
||||
}
|
||||
|
||||
public void setIsNeedThicken(String isNeedThicken) {
|
||||
IsNeedThicken = isNeedThicken;
|
||||
}
|
||||
|
||||
public int getEachLayerThickenThickness() {
|
||||
return EachLayerThickenThickness;
|
||||
}
|
||||
|
||||
public void setEachLayerThickenThickness(int eachLayerThickenThickness) {
|
||||
EachLayerThickenThickness = eachLayerThickenThickness;
|
||||
}
|
||||
|
||||
public int getExtraThickeningThickness() {
|
||||
return ExtraThickeningThickness;
|
||||
}
|
||||
|
||||
public void setExtraThickeningThickness(int extraThickeningThickness) {
|
||||
ExtraThickeningThickness = extraThickeningThickness;
|
||||
}
|
||||
|
||||
public double getTotalProductionThickness() {
|
||||
return TotalProductionThickness;
|
||||
}
|
||||
|
||||
public void setTotalProductionThickness(double totalProductionThickness) {
|
||||
TotalProductionThickness = totalProductionThickness;
|
||||
}
|
||||
|
||||
public double getAdditionalThickness() {
|
||||
return AdditionalThickness;
|
||||
}
|
||||
|
||||
public void setAdditionalThickness(double additionalThickness) {
|
||||
AdditionalThickness = additionalThickness;
|
||||
}
|
||||
|
||||
public int getRecommendedShimThickness() {
|
||||
return RecommendedShimThickness;
|
||||
}
|
||||
|
||||
public void setRecommendedShimThickness(int recommendedShimThickness) {
|
||||
RecommendedShimThickness = recommendedShimThickness;
|
||||
}
|
||||
|
||||
public int getSemiFinishedProductWidth() {
|
||||
return SemiFinishedProductWidth;
|
||||
}
|
||||
|
||||
public void setSemiFinishedProductWidth(int semiFinishedProductWidth) {
|
||||
SemiFinishedProductWidth = semiFinishedProductWidth;
|
||||
}
|
||||
|
||||
public double getRollingProductionMeters() {
|
||||
return RollingProductionMeters;
|
||||
}
|
||||
|
||||
public void setRollingProductionMeters(double rollingProductionMeters) {
|
||||
RollingProductionMeters = rollingProductionMeters;
|
||||
}
|
||||
|
||||
public int getRecommendedPadWidth() {
|
||||
return RecommendedPadWidth;
|
||||
}
|
||||
|
||||
public void setRecommendedPadWidth(int recommendedPadWidth) {
|
||||
RecommendedPadWidth = recommendedPadWidth;
|
||||
}
|
||||
|
||||
public String getBigFabricManufacturer() {
|
||||
return BigFabricManufacturer;
|
||||
}
|
||||
|
||||
public void setBigFabricManufacturer(String bigFabricManufacturer) {
|
||||
BigFabricManufacturer = bigFabricManufacturer;
|
||||
}
|
||||
|
||||
public Material getFabricSpecifications() {
|
||||
return FabricSpecifications;
|
||||
}
|
||||
|
||||
public void setFabricSpecifications(Material fabricSpecifications) {
|
||||
FabricSpecifications = fabricSpecifications;
|
||||
}
|
||||
|
||||
public double getEstimatedFabricUsage() {
|
||||
return EstimatedFabricUsage;
|
||||
}
|
||||
|
||||
public void setEstimatedFabricUsage(double estimatedFabricUsage) {
|
||||
EstimatedFabricUsage = estimatedFabricUsage;
|
||||
}
|
||||
|
||||
public int getClothWidth() {
|
||||
return ClothWidth;
|
||||
}
|
||||
|
||||
public void setClothWidth(int clothWidth) {
|
||||
ClothWidth = clothWidth;
|
||||
}
|
||||
|
||||
public double getClothWeight() {
|
||||
return ClothWeight;
|
||||
}
|
||||
|
||||
public void setClothWeight(double clothWeight) {
|
||||
ClothWeight = clothWeight;
|
||||
}
|
||||
|
||||
public Material getSmallFabricSpecificationsDic() {
|
||||
return SmallFabricSpecificationsDic;
|
||||
}
|
||||
|
||||
public void setSmallFabricSpecificationsDic(Material smallFabricSpecificationsDic) {
|
||||
SmallFabricSpecificationsDic = smallFabricSpecificationsDic;
|
||||
}
|
||||
|
||||
public int getSmallClothWidth() {
|
||||
return SmallClothWidth;
|
||||
}
|
||||
|
||||
public void setSmallClothWidth(int smallClothWidth) {
|
||||
SmallClothWidth = smallClothWidth;
|
||||
}
|
||||
|
||||
public double getSmallClothUsage() {
|
||||
return SmallClothUsage;
|
||||
}
|
||||
|
||||
public void setSmallClothUsage(double smallClothUsage) {
|
||||
SmallClothUsage = smallClothUsage;
|
||||
}
|
||||
|
||||
public double getSmallClothWeight() {
|
||||
return SmallClothWeight;
|
||||
}
|
||||
|
||||
public void setSmallClothWeight(double smallClothWeight) {
|
||||
SmallClothWeight = smallClothWeight;
|
||||
}
|
||||
|
||||
public String getGluingProcess() {
|
||||
return GluingProcess;
|
||||
}
|
||||
|
||||
public void setGluingProcess(String gluingProcess) {
|
||||
GluingProcess = gluingProcess;
|
||||
}
|
||||
|
||||
public UpperLowerGlue getUpperLowerGlue() {
|
||||
return UpperLowerGlue;
|
||||
}
|
||||
|
||||
public void setUpperLowerGlue(UpperLowerGlue upperLowerGlue) {
|
||||
UpperLowerGlue = upperLowerGlue;
|
||||
}
|
||||
|
||||
public double getUpperLowerGlueCoefficient() {
|
||||
return UpperLowerGlueCoefficient;
|
||||
}
|
||||
|
||||
public void setUpperLowerGlueCoefficient(double upperLowerGlueCoefficient) {
|
||||
UpperLowerGlueCoefficient = upperLowerGlueCoefficient;
|
||||
}
|
||||
|
||||
public double getUpperLowerGlueUsage() {
|
||||
return UpperLowerGlueUsage;
|
||||
}
|
||||
|
||||
public void setUpperLowerGlueUsage(double upperLowerGlueUsage) {
|
||||
UpperLowerGlueUsage = upperLowerGlueUsage;
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getLowerGlue() {
|
||||
return LowerGlue;
|
||||
}
|
||||
|
||||
public void setLowerGlue(HashMap<String, Object> lowerGlue) {
|
||||
LowerGlue = lowerGlue;
|
||||
}
|
||||
|
||||
public double getLowerGlueCoefficient() {
|
||||
return LowerGlueCoefficient;
|
||||
}
|
||||
|
||||
public void setLowerGlueCoefficient(double lowerGlueCoefficient) {
|
||||
LowerGlueCoefficient = lowerGlueCoefficient;
|
||||
}
|
||||
|
||||
public double getLowerGlueUsage() {
|
||||
return LowerGlueUsage;
|
||||
}
|
||||
|
||||
public void setLowerGlueUsage(double lowerGlueUsage) {
|
||||
LowerGlueUsage = lowerGlueUsage;
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getLargeClothGlue() {
|
||||
return LargeClothGlue;
|
||||
}
|
||||
|
||||
public void setLargeClothGlue(HashMap<String, Object> largeClothGlue) {
|
||||
LargeClothGlue = largeClothGlue;
|
||||
}
|
||||
|
||||
public double getLargeClothGlueCoefficient() {
|
||||
return LargeClothGlueCoefficient;
|
||||
}
|
||||
|
||||
public void setLargeClothGlueCoefficient(double largeClothGlueCoefficient) {
|
||||
LargeClothGlueCoefficient = largeClothGlueCoefficient;
|
||||
}
|
||||
|
||||
public double getLargeClothGlueUsage() {
|
||||
return LargeClothGlueUsage;
|
||||
}
|
||||
|
||||
public void setLargeClothGlueUsage(double largeClothGlueUsage) {
|
||||
LargeClothGlueUsage = largeClothGlueUsage;
|
||||
}
|
||||
|
||||
public double getBufferGlueUsage() {
|
||||
return BufferGlueUsage;
|
||||
}
|
||||
|
||||
public void setBufferGlueUsage(double bufferGlueUsage) {
|
||||
BufferGlueUsage = bufferGlueUsage;
|
||||
}
|
||||
|
||||
public HashMap<String, Object> getMiddleGlue() {
|
||||
return MiddleGlue;
|
||||
}
|
||||
|
||||
public void setMiddleGlue(HashMap<String, Object> middleGlue) {
|
||||
MiddleGlue = middleGlue;
|
||||
}
|
||||
|
||||
public double getMiddleGlueCoefficient() {
|
||||
return MiddleGlueCoefficient;
|
||||
}
|
||||
|
||||
public void setMiddleGlueCoefficient(double middleGlueCoefficient) {
|
||||
MiddleGlueCoefficient = middleGlueCoefficient;
|
||||
}
|
||||
|
||||
public double getMiddleGlueUsage() {
|
||||
return MiddleGlueUsage;
|
||||
}
|
||||
|
||||
public void setMiddleGlueUsage(double middleGlueUsage) {
|
||||
MiddleGlueUsage = middleGlueUsage;
|
||||
}
|
||||
|
||||
public int getSmallBarWidth() {
|
||||
return SmallBarWidth;
|
||||
}
|
||||
|
||||
public void setSmallBarWidth(int smallBarWidth) {
|
||||
SmallBarWidth = smallBarWidth;
|
||||
}
|
||||
|
||||
public int getSmallBarThickness() {
|
||||
return SmallBarThickness;
|
||||
}
|
||||
|
||||
public void setSmallBarThickness(int smallBarThickness) {
|
||||
SmallBarThickness = smallBarThickness;
|
||||
}
|
||||
|
||||
public int getSmallBarStandardUsage() {
|
||||
return SmallBarStandardUsage;
|
||||
}
|
||||
|
||||
public void setSmallBarStandardUsage(int smallBarStandardUsage) {
|
||||
SmallBarStandardUsage = smallBarStandardUsage;
|
||||
}
|
||||
|
||||
public int getFormingArea() {
|
||||
return FormingArea;
|
||||
}
|
||||
|
||||
public void setFormingArea(int formingArea) {
|
||||
FormingArea = formingArea;
|
||||
}
|
||||
|
||||
public int getRollCoatingArea() {
|
||||
return RollCoatingArea;
|
||||
}
|
||||
|
||||
public void setRollCoatingArea(int rollCoatingArea) {
|
||||
RollCoatingArea = rollCoatingArea;
|
||||
}
|
||||
|
||||
public int getRolledFabricArea() {
|
||||
return RolledFabricArea;
|
||||
}
|
||||
|
||||
public void setRolledFabricArea(int rolledFabricArea) {
|
||||
RolledFabricArea = rolledFabricArea;
|
||||
}
|
||||
|
||||
public int getSulfurizationArea() {
|
||||
return SulfurizationArea;
|
||||
}
|
||||
|
||||
public void setSulfurizationArea(int sulfurizationArea) {
|
||||
SulfurizationArea = sulfurizationArea;
|
||||
}
|
||||
|
||||
public double getLargeClothArea() {
|
||||
return LargeClothArea;
|
||||
}
|
||||
|
||||
public void setLargeClothArea(double largeClothArea) {
|
||||
LargeClothArea = largeClothArea;
|
||||
}
|
||||
|
||||
public double getSmallClothArea() {
|
||||
return SmallClothArea;
|
||||
}
|
||||
|
||||
public void setSmallClothArea(double smallClothArea) {
|
||||
SmallClothArea = smallClothArea;
|
||||
}
|
||||
|
||||
public int getBeltTotalArea() {
|
||||
return BeltTotalArea;
|
||||
}
|
||||
|
||||
public void setBeltTotalArea(int beltTotalArea) {
|
||||
BeltTotalArea = beltTotalArea;
|
||||
}
|
||||
|
||||
public int getSkirtArea() {
|
||||
return SkirtArea;
|
||||
}
|
||||
|
||||
public void setSkirtArea(int skirtArea) {
|
||||
SkirtArea = skirtArea;
|
||||
}
|
||||
|
||||
public int getPartitionArea() {
|
||||
return PartitionArea;
|
||||
}
|
||||
|
||||
public void setPartitionArea(int partitionArea) {
|
||||
PartitionArea = partitionArea;
|
||||
}
|
||||
|
||||
public int getEdgeBandingTotalArea() {
|
||||
return EdgeBandingTotalArea;
|
||||
}
|
||||
|
||||
public void setEdgeBandingTotalArea(int edgeBandingTotalArea) {
|
||||
EdgeBandingTotalArea = edgeBandingTotalArea;
|
||||
}
|
||||
|
||||
public int getWireropeBeltTotalArea() {
|
||||
return WireropeBeltTotalArea;
|
||||
}
|
||||
|
||||
public void setWireropeBeltTotalArea(int wireropeBeltTotalArea) {
|
||||
WireropeBeltTotalArea = wireropeBeltTotalArea;
|
||||
}
|
||||
|
||||
public String getOrderDate() {
|
||||
return OrderDate;
|
||||
}
|
||||
|
||||
public void setOrderDate(String orderDate) {
|
||||
OrderDate = orderDate;
|
||||
}
|
||||
|
||||
public String getDeliveryDate() {
|
||||
return DeliveryDate;
|
||||
}
|
||||
|
||||
public void setDeliveryDate(String deliveryDate) {
|
||||
DeliveryDate = deliveryDate;
|
||||
}
|
||||
|
||||
public String getSeqNo() {
|
||||
return SeqNo;
|
||||
}
|
||||
|
||||
public void setSeqNo(String seqNo) {
|
||||
SeqNo = seqNo;
|
||||
}
|
||||
|
||||
public String getProductType() {
|
||||
return ProductType;
|
||||
}
|
||||
|
||||
public void setProductType(String productType) {
|
||||
ProductType = productType;
|
||||
}
|
||||
|
||||
public String getProductStatus() {
|
||||
return ProductStatus;
|
||||
}
|
||||
|
||||
public void setProductStatus(String productStatus) {
|
||||
ProductStatus = productStatus;
|
||||
}
|
||||
|
||||
public String getOrderOwner() {
|
||||
return OrderOwner;
|
||||
}
|
||||
|
||||
public void setOrderOwner(String orderOwner) {
|
||||
OrderOwner = orderOwner;
|
||||
}
|
||||
|
||||
public String getCustomerInfo() {
|
||||
return CustomerInfo;
|
||||
}
|
||||
|
||||
public void setCustomerInfo(String customerInfo) {
|
||||
CustomerInfo = customerInfo;
|
||||
}
|
||||
|
||||
public String getBeltLengthSpecifications() {
|
||||
return BeltLengthSpecifications;
|
||||
}
|
||||
|
||||
public void setBeltLengthSpecifications(String beltLengthSpecifications) {
|
||||
BeltLengthSpecifications = beltLengthSpecifications;
|
||||
}
|
||||
|
||||
public String getAreaAndWeight() {
|
||||
return AreaAndWeight;
|
||||
}
|
||||
|
||||
public void setAreaAndWeight(String areaAndWeight) {
|
||||
AreaAndWeight = areaAndWeight;
|
||||
}
|
||||
|
||||
public String getUsingRawMaterials() {
|
||||
return UsingRawMaterials;
|
||||
}
|
||||
|
||||
public void setUsingRawMaterials(String usingRawMaterials) {
|
||||
UsingRawMaterials = usingRawMaterials;
|
||||
}
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
/**
|
||||
* ERP返回数据
|
||||
*/
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class ResponseData {
|
||||
|
||||
@JsonProperty(value = "Successful")
|
||||
private boolean Successful;
|
||||
@JsonProperty(value = "ErrorMessage")
|
||||
private String ErrorMessage;
|
||||
@JsonProperty(value = "Logined")
|
||||
private boolean Logined;
|
||||
@JsonProperty(value = "ReturnData")
|
||||
private ReturnData ReturnData;
|
||||
@JsonProperty(value = "DataType")
|
||||
private int DataType;
|
||||
|
||||
|
||||
public boolean isSuccessful() {
|
||||
return Successful;
|
||||
}
|
||||
|
||||
public void setSuccessful(boolean successful) {
|
||||
Successful = successful;
|
||||
}
|
||||
|
||||
public String getErrorMessage() {
|
||||
return ErrorMessage;
|
||||
}
|
||||
|
||||
public void setErrorMessage(String errorMessage) {
|
||||
ErrorMessage = errorMessage;
|
||||
}
|
||||
|
||||
public boolean isLogined() {
|
||||
return Logined;
|
||||
}
|
||||
|
||||
public void setLogined(boolean logined) {
|
||||
Logined = logined;
|
||||
}
|
||||
|
||||
public com.os.mes.api.domain.ReturnData getReturnData() {
|
||||
return ReturnData;
|
||||
}
|
||||
|
||||
public void setReturnData(com.os.mes.api.domain.ReturnData returnData) {
|
||||
ReturnData = returnData;
|
||||
}
|
||||
|
||||
public int getDataType() {
|
||||
return DataType;
|
||||
}
|
||||
|
||||
public void setDataType(int dataType) {
|
||||
DataType = dataType;
|
||||
}
|
||||
}
|
@ -0,0 +1,52 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ERP返回数据List
|
||||
*/
|
||||
public class ReturnData {
|
||||
|
||||
@JsonProperty(value = "totle")
|
||||
private int totle;
|
||||
@JsonProperty(value = "data")
|
||||
private List<RecordData> data;
|
||||
@JsonProperty(value = "result")
|
||||
private String result;
|
||||
@JsonProperty(value = "message")
|
||||
private String message;
|
||||
|
||||
public int getTotle() {
|
||||
return totle;
|
||||
}
|
||||
|
||||
public void setTotle(int totle) {
|
||||
this.totle = totle;
|
||||
}
|
||||
|
||||
public List<RecordData> getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(List<RecordData> data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public String getResult() {
|
||||
return result;
|
||||
}
|
||||
|
||||
public void setResult(String result) {
|
||||
this.result = result;
|
||||
}
|
||||
|
||||
public String getMessage() {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
this.message = message;
|
||||
}
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class UpperLowerGlue {
|
||||
@JsonProperty(value = "MaterialList_1")
|
||||
private List<UpperLowerGlueItem1> MaterialList_1;
|
||||
@JsonProperty(value = "MaterialList_2")
|
||||
private List<UpperLowerGlueItem2> MaterialList_2;
|
||||
@JsonProperty(value = "AfterPromotionTotalWeight")
|
||||
private double AfterPromotionTotalWeight;
|
||||
|
||||
public List<UpperLowerGlueItem1> getMaterialList_1() {
|
||||
return MaterialList_1;
|
||||
}
|
||||
|
||||
public void setMaterialList_1(List<UpperLowerGlueItem1> materialList_1) {
|
||||
MaterialList_1 = materialList_1;
|
||||
}
|
||||
|
||||
public List<UpperLowerGlueItem2> getMaterialList_2() {
|
||||
return MaterialList_2;
|
||||
}
|
||||
|
||||
public void setMaterialList_2(List<UpperLowerGlueItem2> materialList_2) {
|
||||
MaterialList_2 = materialList_2;
|
||||
}
|
||||
|
||||
public double getAfterPromotionTotalWeight() {
|
||||
return AfterPromotionTotalWeight;
|
||||
}
|
||||
|
||||
public void setAfterPromotionTotalWeight(double afterPromotionTotalWeight) {
|
||||
AfterPromotionTotalWeight = afterPromotionTotalWeight;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class UpperLowerGlueItem1 {
|
||||
|
||||
@JsonProperty(value = "MaterialNo")
|
||||
private String MaterialNo;
|
||||
@JsonProperty(value = "Material")
|
||||
private Material Material;
|
||||
@JsonProperty(value = "EnterSecondLaneWeight")
|
||||
private double EnterSecondLaneWeight;
|
||||
|
||||
public String getMaterialNo() {
|
||||
return MaterialNo;
|
||||
}
|
||||
|
||||
public void setMaterialNo(String materialNo) {
|
||||
MaterialNo = materialNo;
|
||||
}
|
||||
|
||||
public com.os.mes.api.domain.Material getMaterial() {
|
||||
return Material;
|
||||
}
|
||||
|
||||
public void setMaterial(com.os.mes.api.domain.Material material) {
|
||||
Material = material;
|
||||
}
|
||||
|
||||
public double getEnterSecondLaneWeight() {
|
||||
return EnterSecondLaneWeight;
|
||||
}
|
||||
|
||||
public void setEnterSecondLaneWeight(double enterSecondLaneWeight) {
|
||||
EnterSecondLaneWeight = enterSecondLaneWeight;
|
||||
}
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.os.mes.api.domain;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
|
||||
public class UpperLowerGlueItem2 {
|
||||
|
||||
@JsonProperty(value = "MaterialNo")
|
||||
private String MaterialNo;
|
||||
@JsonProperty(value = "Material")
|
||||
private Material Material;
|
||||
@JsonProperty(value = "ProductionRequiresWeight")
|
||||
private double ProductionRequiresWeight;
|
||||
|
||||
public String getMaterialNo() {
|
||||
return MaterialNo;
|
||||
}
|
||||
|
||||
public void setMaterialNo(String materialNo) {
|
||||
MaterialNo = materialNo;
|
||||
}
|
||||
|
||||
public Material getMaterial() {
|
||||
return Material;
|
||||
}
|
||||
|
||||
public void setMaterial(Material material) {
|
||||
Material = material;
|
||||
}
|
||||
|
||||
public double getProductionRequiresWeight() {
|
||||
return ProductionRequiresWeight;
|
||||
}
|
||||
|
||||
public void setProductionRequiresWeight(double productionRequiresWeight) {
|
||||
ProductionRequiresWeight = productionRequiresWeight;
|
||||
}
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.os.mes.api.service;
|
||||
|
||||
|
||||
import com.os.mes.api.domain.ERPParamDto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ERP接口Service接口
|
||||
*
|
||||
* @author Yinq
|
||||
* @date 2024-05-10
|
||||
*/
|
||||
public interface IERPPortService {
|
||||
|
||||
|
||||
/**
|
||||
* 获取ERP订单接口
|
||||
* @param paramDto
|
||||
* @return
|
||||
*/
|
||||
String getERPOrderData(ERPParamDto paramDto);
|
||||
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,45 @@
|
||||
package com.os.mes.api.utils;
|
||||
|
||||
|
||||
|
||||
|
||||
import cn.hutool.http.HttpRequest;
|
||||
import cn.hutool.http.HttpResponse;
|
||||
|
||||
|
||||
/**
|
||||
* @Author YinQ
|
||||
* @create 2023-10-12 10:52
|
||||
*/
|
||||
public class ApiUtils {
|
||||
|
||||
|
||||
/**
|
||||
* POST请求json格式
|
||||
* @param apiUrl
|
||||
* @param jsonData
|
||||
* @return
|
||||
*/
|
||||
public static String sendERPHttpPost(String apiUrl, String jsonData) {
|
||||
try {
|
||||
// 构建POST请求
|
||||
HttpRequest request = HttpRequest.post(apiUrl)
|
||||
.header("EngineCode", ERPConstants.EngineCode)
|
||||
.header("EngineSecret", ERPConstants.EngineSecret)
|
||||
.body(jsonData) // 设置JSON格式的请求体
|
||||
.contentType("application/json") // 设置Content-Type为application/json
|
||||
.setConnectionTimeout(1000 * 60 * 10) // 设置请求连接超时时间
|
||||
;
|
||||
|
||||
// 发送POST请求
|
||||
HttpResponse httpResponse = request.execute();
|
||||
|
||||
// 获取响应内容
|
||||
return httpResponse.body();
|
||||
} catch (Exception e) {
|
||||
// 捕获异常并重新抛出自定义异常
|
||||
throw new RuntimeException("Failed to send ERP HTTP POST request: " + e.getMessage(), e);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
@ -0,0 +1,46 @@
|
||||
package com.os.mes.api.utils;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @Author YinQ
|
||||
* @create 2023-09-26 15:39
|
||||
*/
|
||||
@Component
|
||||
public class ERPConstants {
|
||||
|
||||
|
||||
/**
|
||||
* ERP-URL前缀
|
||||
*/
|
||||
public static String ERP_URL = "https://www.h3yun.com/OpenApi/Invoke";
|
||||
|
||||
/**
|
||||
* ERP-用户名
|
||||
*/
|
||||
public static String EngineCode = "gjcpce9yqtw3x8t8v7zbjky27";
|
||||
|
||||
/**
|
||||
* ERP-密码
|
||||
*/
|
||||
public static String EngineSecret = "7qW7OhjZB7hlXM1oQBZ7jD/iz2ni4ZvfWsUoxaUpa+W8cy9EA/gsBA==";
|
||||
|
||||
|
||||
//获取【发布订单】
|
||||
public static final String orderAppCode = "Afb7b276a38a04d52b7bd4ca314a42b0c";
|
||||
public static final String orderController = "ReleaseOrderApiController";
|
||||
public static final String orderActionName = "GetReleaseOrders";
|
||||
|
||||
|
||||
//获取【政策与条款】-最新工资系数
|
||||
public static final String salaryAppCode = "A1c661aa059ad4d4f8230b187a85385c5";
|
||||
public static final String salaryController = "SalaryCoefficientApiController";
|
||||
public static final String salaryActionName = "GetSalaryCoefficient";
|
||||
|
||||
//获取【政策与条款】-最新工资系数
|
||||
public static final String employeeAppCode = "D000886NewEatingPersonnelLPC";
|
||||
public static final String employeeController = "EmployeeApiController";
|
||||
public static final String employeeActionName = "GetEmployeeInfos";
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue