add:喷涂仓库领料单
This commit is contained in:
@@ -104,12 +104,15 @@ public class MesToWmsController {
|
||||
@PostMapping("app/restful/api/v3/wms/mesRequisitionSync")
|
||||
@SaIgnore
|
||||
@Log("需求单同步")
|
||||
public ResponseEntity mesRequisitionSync(@RequestBody List<@Valid PmDemandParam> params) {
|
||||
public ResponseEntity mesRequisitionSync(@RequestBody List<PmDemandParam> params) {
|
||||
ArrayList<PmDemandParam> pmDemandParams = new ArrayList<>();
|
||||
ArrayList<PmDemandParam> pmDemandPlatingParams = new ArrayList<>();
|
||||
for (PmDemandParam param : params) {
|
||||
if (Objects.equals(param.getWarehouseCode(), "6.005")){
|
||||
pmDemandPlatingParams.add(param);
|
||||
if (!StringUtils.isEmpty(param.getCarrierType()) && !param.getCarrierType().contains("积放链")){
|
||||
pmDemandPlatingParams.add(param);
|
||||
}
|
||||
|
||||
}else {
|
||||
pmDemandParams.add(param);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package org.nl.wms.pm_manage.demand.service.dto;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.DecimalMin;
|
||||
@@ -14,54 +15,75 @@ import java.math.BigDecimal;
|
||||
*/
|
||||
@Data
|
||||
public class PmDemandParam {
|
||||
|
||||
@NotBlank(message = "单据唯一ID不能为空")
|
||||
@JsonProperty("Id")
|
||||
private String id;
|
||||
|
||||
@NotBlank(message = "操作人不能为空")
|
||||
@JsonProperty("Creator")
|
||||
private String creator;
|
||||
|
||||
@NotBlank(message = "需求日期不能为空")
|
||||
@JsonProperty("CreateTime")
|
||||
private String createTime;
|
||||
|
||||
@NotNull(message = "优先级不能为空")
|
||||
@JsonProperty("Priority")
|
||||
private Integer priority;
|
||||
|
||||
@JsonProperty("Status")
|
||||
private String status;
|
||||
|
||||
@JsonProperty("SeqNo")
|
||||
private String seqNo;
|
||||
|
||||
@NotBlank(message = "工单编号不能为空")
|
||||
@JsonProperty("WorkOrder")
|
||||
private String workOrder;
|
||||
|
||||
@NotBlank(message = "物料编码不能为空")
|
||||
@JsonProperty("SkuCode")
|
||||
private String skuCode;
|
||||
|
||||
@NotBlank(message = "物料名称不能为空")
|
||||
@JsonProperty("SkuName")
|
||||
private String skuName;
|
||||
|
||||
@NotNull(message = "数量不能为空")
|
||||
@DecimalMin(value = "0", inclusive = false, message = "数量必须大于0")
|
||||
@JsonProperty("Qty")
|
||||
private BigDecimal qty;
|
||||
|
||||
@JsonProperty("SsignQty")
|
||||
private BigDecimal ssignQty;
|
||||
|
||||
@NotBlank(message = "单位不能为空")
|
||||
@JsonProperty("Unit")
|
||||
private String unit;
|
||||
|
||||
@NotBlank(message = "目标库存地点不能为空")
|
||||
@JsonProperty("TargetArea")
|
||||
private String targetArea;
|
||||
|
||||
@NotBlank(message = "产线不能为空")
|
||||
@JsonProperty("ProductionLine")
|
||||
private String productionLine;
|
||||
|
||||
@NotBlank(message = "目标库存地点不能为空")
|
||||
@JsonProperty("TargetHouseCode")
|
||||
private String targetHouseCode;
|
||||
|
||||
@NotBlank(message = "载具类型为空")
|
||||
@JsonProperty("CarrierType")
|
||||
private String carrierType;
|
||||
|
||||
@JsonProperty("MaxLoad")
|
||||
private String maxLoad;
|
||||
|
||||
@JsonProperty("WarehouseCode")
|
||||
private String warehouseCode;
|
||||
|
||||
@JsonProperty("SN")
|
||||
private String sn;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user