wms白坯部分代码修改3

master
mengjiao 11 months ago
parent 04ee02c8e9
commit 131d132a2a

@ -94,12 +94,5 @@ public class WmsOdsWhiteEmbryoInController extends BaseController {
return toAjax(wmsOdsWhiteEmbryoInService.deleteWmsOdsWhiteEmbryoInByIDs(IDs));
}
/**
*
*/
@PostMapping("/Warehousing")
public AjaxResult addWarehousing(@RequestBody List<WmsOdsWhiteEmbryoIn> wmsOdsWhiteEmbryoIns) {
return toAjax(wmsOdsWhiteEmbryoInService.insertWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIns));
}
}

@ -9,17 +9,16 @@ import com.op.common.core.web.domain.AjaxResult;
import com.op.common.log.annotation.Log;
import com.op.common.log.enums.BusinessType;
import com.op.wms.domain.*;
import com.op.wms.service.IBaseWarehouseService;
import com.op.wms.service.IOdsProcureOrderService;
import com.op.wms.service.IWmsProductPutService;
import com.op.wms.service.IWmsToWCSmissionService;
import com.op.wms.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import java.util.List;
import static com.op.common.core.web.domain.AjaxResult.success;
/*
wms/WmsToWCSmission
*/
@RestController
@RequestMapping("/WmsToWCSmission")
public class WmsToWCSmissionController {
@ -31,7 +30,8 @@ public class WmsToWCSmissionController {
private IOdsProcureOrderService odsProcureOrderService;
@Autowired
private IBaseWarehouseService baseWarehouseService;
@Autowired
private IOdsWhiteEmbryoService iOdsWhiteEmbryoService;
/**
* ---
*
@ -235,4 +235,58 @@ public class WmsToWCSmissionController {
public AjaxResult WmsProductPutByWorkOrderConfirm(@RequestBody WmsProductPut wmsProductPut) {
return AjaxResult.success(wmsProductPutService.WmsProductPutByWorkOrderConfirm(wmsProductPut));
}
/**
*
*/
@PostMapping("/selectWmsOdsWhiteEmbryoInhAnd")
public AjaxResult selectWmsOdsWhiteEmbryoInhAnd(@RequestBody WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIns) {
return success(wmsProductPutService.selectWmsOdsWhiteEmbryoInhAnd(wmsOdsWhiteEmbryoIns));
}
/**
*
*/
@PostMapping("/addtWmsOdsWhiteEmbryoInhAnd")
public AjaxResult addtWmsOdsWhiteEmbryoInhAnd(@RequestBody WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
return success(wmsProductPutService.addtWmsOdsWhiteEmbryoInhAnd(wmsOdsWhiteEmbryoIn));
}
//**
/**
*
*
* @param odsProcureOrder
* @return
*/
@PostMapping("/selectWhiteEmbryoDeliveryOrder")
public AjaxResult selectWhiteEmbryoDeliveryOrder(@RequestBody OdsProcureOutOrder odsProcureOrder) {
// OdsProcureOutOrder orderList = odsProcureOrderService.PurchaseOrderOutboundPda(odsProcureOrder);
OdsProcureOutOrder orderList1= iOdsWhiteEmbryoService.selectWhiteEmbryoDeliveryOrder(odsProcureOrder);
return success(orderList1);
}
/**
* --
*
* @param wmsOdsEmStorageNewsSn
* @return
*/
@PostMapping("/selectQueryTrayInfor")
public AjaxResult selectQueryTrayInfor(@RequestBody WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn) {
// OdsProcureOutOrder orderList = odsProcureOrderService.PurchaseOrderOutboundPda(odsProcureOrder);
WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn1= iOdsWhiteEmbryoService.selectQueryTrayInfor(wmsOdsEmStorageNewsSn);
return success(wmsOdsEmStorageNewsSn1);
}
/**
* --
*
* @param odsWhiteEmbryo
* @return
*/
@PostMapping("/WhiteEmbryoOutbound")
public AjaxResult WhiteEmbryoOutbound(@RequestBody OdsWhiteEmbryo odsWhiteEmbryo) {
// OdsProcureOutOrder orderList = odsProcureOrderService.PurchaseOrderOutboundPda(odsProcureOrder);
String result= iOdsWhiteEmbryoService.WhiteEmbryoOutbound(odsWhiteEmbryo);
return success(result);
}
}

@ -13,7 +13,7 @@ import com.op.common.core.annotation.Excel;
import com.op.common.core.web.domain.BaseEntity;
/**
* ods_procure_out_order
* ods_procure_out_order
*
* @author Open Platform
* @date 2023-07-06

@ -2,6 +2,7 @@ package com.op.wms.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
@ -64,7 +65,7 @@ public class OdsWhiteEmbryo extends BaseEntity {
*
*/
@Excel(name = "单位")
private String Unit;
private String unit;
/**
*
@ -200,6 +201,8 @@ public class OdsWhiteEmbryo extends BaseEntity {
@Excel(name = "可用标识")
private String Active;
/**
*
*/
@ -211,6 +214,16 @@ public class OdsWhiteEmbryo extends BaseEntity {
*/
@Excel(name = "企业编码")
private String enterpriseCode;
//出库的托盘信息
private List<WmsOdsEmStorageNewsSn> wmsOdsEmStorageNewsSns;
public List<WmsOdsEmStorageNewsSn> getWmsOdsEmStorageNewsSns() {
return wmsOdsEmStorageNewsSns;
}
public void setWmsOdsEmStorageNewsSns(List<WmsOdsEmStorageNewsSn> wmsOdsEmStorageNewsSns) {
this.wmsOdsEmStorageNewsSns = wmsOdsEmStorageNewsSns;
}
public void setSiteCode(String siteCode) {
this.siteCode = siteCode;
@ -269,11 +282,11 @@ public class OdsWhiteEmbryo extends BaseEntity {
}
public void setUnit(String Unit) {
this.Unit = Unit;
this.unit = Unit;
}
public String getUnit() {
return Unit;
return unit;
}
public void setRealityNumber(BigDecimal realityNumber) {

@ -0,0 +1,594 @@
package com.op.wms.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.op.common.core.annotation.Excel;
import com.op.common.core.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import java.util.Date;
import java.util.List;
/**
* pro_order_workorder
*s
* @author Open Platform
* @date 2023-07-18
*/
public class ProOrderWorkorder extends TreeEntity {
private static final long serialVersionUID = 1L;
/**
* ID
*/
private String workorderId;
/**
*
*/
@Excel(name = "工单编码")
private String workorderCode;
/**
*
*/
@Excel(name = "sap工单编码")
private String workorderCodeSap;
public String getWorkorderCodeSap() {
return workorderCodeSap;
}
public void setWorkorderCodeSap(String workorderCodeSap) {
this.workorderCodeSap = workorderCodeSap;
}
/**
*
*/
@Excel(name = "工单名称")
private String workorderName;
/**
* id
*/
@Excel(name = "订单id")
private String orderId;
/**
*
*/
@Excel(name = "订单编码")
private String orderCode;
/**
* ID
*/
@Excel(name = "产品ID")
private String productId;
/**
*
*/
@Excel(name = "产品编号")
private String productCode;
/**
*
*/
@Excel(name = "产品名称")
private String productName;
/**
*
*/
@Excel(name = "规格型号")
private String productSpc;
/**
*
*/
@Excel(name = "单位")
private String unit;
/**
*
*/
@Excel(name = "已生产数量")
private Long quantityProduced;
/**
*
*/
@Excel(name = "已拆分数量")
private Long quantitySplit;
/**
*
*/
@Excel(name = "工艺编码")
private String routeCode;
/**
* 线
*/
@Excel(name = "产线编码")
private String prodLineCode;
/**
*
*/
@JsonFormat(pattern = "yyyy-MM-dd")
@Excel(name = "工单生产日期", width = 30, dateFormat = "yyyy-MM-dd")
private Date productDate;
// 工单生产日期开始
private String productDateStart;
// 工单生产日期结束
private String productDateEnd;
/**
*
*/
@Excel(name = "班次")
private String shiftId;
/**
*
*/
@Excel(name = "父工单")
private String parentOrder;
/**
* ID
*/
@Excel(name = "所有父节点ID")
private String ancestors;
/**
*
*/
@Excel(name = "单据状态")
private String status;
/**
* 1
*/
@Excel(name = "预留字段1")
private String attr1;
/**
* 2
*/
@Excel(name = "预留字段2")
private String attr2;
/**
* 3
*/
@Excel(name = "预留字段3")
private String attr3;
/**
* 4
*/
@Excel(name = "预留字段4")
private String attr4;
/**
*
*/
@Excel(name = "产品类型")
private String prodType;
/**
* 1 0
*/
@Excel(name = "是否为底层节点")
private Integer endFlag;
public Integer getEndFlag() {
return endFlag;
}
public void setEndFlag(Integer endFlag) {
this.endFlag = endFlag;
}
private List<ProOrderWorkorderBatch> proOrderWorkorderBatchList;
public List<ProOrderWorkorderBatch> getProOrderWorkorderBatchList() {
return proOrderWorkorderBatchList;
}
public void setProOrderWorkorderBatchList(List<ProOrderWorkorderBatch> proOrderWorkorderBatchList) {
this.proOrderWorkorderBatchList = proOrderWorkorderBatchList;
}
/**
*
*/
private String shiftDesc;
// 料罐id湿料计划模块使用
private Integer bucketId;
// 料罐编码(湿料计划模块使用)
private String bucketCode;
// 物料id湿料计划模块使用
private Integer materialId;
// 物料编码(湿料计划模块使用)
private String materialCode;
// 物料名称(湿料计划模块使用)
private String materialName;
// 计划日期(湿料计划模块使用)
private Date planTime;
// 料罐名称(湿料计划模块使用)
private String bucketName;
private String batchCode;
private String batchId;
public String getBatchCode() {
return batchCode;
}
public void setBatchCode(String batchCode) {
this.batchCode = batchCode;
}
public String getBatchId() {
return batchId;
}
public void setBatchId(String batchId) {
this.batchId = batchId;
}
public String getBucketName() {
return bucketName;
}
public void setBucketName(String bucketName) {
this.bucketName = bucketName;
}
public Integer getBucketId() {
return bucketId;
}
public void setBucketId(Integer bucketId) {
this.bucketId = bucketId;
}
public String getBucketCode() {
return bucketCode;
}
public void setBucketCode(String bucketCode) {
this.bucketCode = bucketCode;
}
public Integer getMaterialId() {
return materialId;
}
public void setMaterialId(Integer materialId) {
this.materialId = materialId;
}
public String getMaterialCode() {
return materialCode;
}
public void setMaterialCode(String materialCode) {
this.materialCode = materialCode;
}
public String getMaterialName() {
return materialName;
}
public void setMaterialName(String materialName) {
this.materialName = materialName;
}
public Date getPlanTime() {
return planTime;
}
public void setPlanTime(Date planTime) {
this.planTime = planTime;
}
public String getShiftDesc() {
return shiftDesc;
}
public void setShiftDesc(String shiftDesc) {
this.shiftDesc = shiftDesc;
}
/**
*
*/
private List<StringBuilder> batchCodeList;
public List<StringBuilder> getBatchCodeList() {
return batchCodeList;
}
public void setBatchCodeList(List<StringBuilder> batchCodeList) {
this.batchCodeList = batchCodeList;
}
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String factoryCode;
public void setWorkorderId(String workorderId) {
this.workorderId = workorderId;
}
public String getWorkorderId() {
return workorderId;
}
public void setWorkorderCode(String workorderCode) {
this.workorderCode = workorderCode;
}
public String getWorkorderCode() {
return workorderCode;
}
public void setWorkorderName(String workorderName) {
this.workorderName = workorderName;
}
public String getWorkorderName() {
return workorderName;
}
public void setOrderId(String orderId) {
this.orderId = orderId;
}
public String getOrderId() {
return orderId;
}
public void setOrderCode(String orderCode) {
this.orderCode = orderCode;
}
public String getOrderCode() {
return orderCode;
}
public void setProductId(String productId) {
this.productId = productId;
}
public String getProductId() {
return productId;
}
public void setProductCode(String productCode) {
this.productCode = productCode;
}
public String getProductCode() {
return productCode;
}
public void setProductName(String productName) {
this.productName = productName;
}
public String getProductName() {
return productName;
}
public void setProductSpc(String productSpc) {
this.productSpc = productSpc;
}
public String getProductSpc() {
return productSpc;
}
public void setUnit(String unit) {
this.unit = unit;
}
public String getUnit() {
return unit;
}
public void setQuantityProduced(Long quantityProduced) {
this.quantityProduced = quantityProduced;
}
public Long getQuantityProduced() {
return quantityProduced;
}
public void setQuantitySplit(Long quantitySplit) {
this.quantitySplit = quantitySplit;
}
public Long getQuantitySplit() {
return quantitySplit;
}
public void setRouteCode(String routeCode) {
this.routeCode = routeCode;
}
public String getRouteCode() {
return routeCode;
}
public void setProdLineCode(String prodLineCode) {
this.prodLineCode = prodLineCode;
}
public String getProdLineCode() {
return prodLineCode;
}
public void setProductDate(Date productDate) {
this.productDate = productDate;
}
public Date getProductDate() {
return productDate;
}
public void setShiftId(String shiftId) {
this.shiftId = shiftId;
}
public String getShiftId() {
return shiftId;
}
public void setParentOrder(String parentOrder) {
this.parentOrder = parentOrder;
}
public String getParentOrder() {
return parentOrder;
}
public void setAncestors(String ancestors) {
this.ancestors = ancestors;
}
public String getAncestors() {
return ancestors;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
public void setAttr1(String attr1) {
this.attr1 = attr1;
}
public String getAttr1() {
return attr1;
}
public void setAttr2(String attr2) {
this.attr2 = attr2;
}
public String getAttr2() {
return attr2;
}
public void setAttr3(String attr3) {
this.attr3 = attr3;
}
public String getAttr3() {
return attr3;
}
public void setAttr4(String attr4) {
this.attr4 = attr4;
}
public String getAttr4() {
return attr4;
}
public void setProdType(String prodType) {
this.prodType = prodType;
}
public String getProdType() {
return prodType;
}
public void setFactoryCode(String factoryCode) {
this.factoryCode = factoryCode;
}
public String getFactoryCode() {
return factoryCode;
}
public String getProductDateStart() {
return productDateStart;
}
public void setProductDateStart(String productDateStart) {
this.productDateStart = productDateStart;
}
public String getProductDateEnd() {
return productDateEnd;
}
public void setProductDateEnd(String productDateEnd) {
this.productDateEnd = productDateEnd;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("workorderId", getWorkorderId())
.append("workorderCode", getWorkorderCode())
.append("workorderName", getWorkorderName())
.append("orderId", getOrderId())
.append("orderCode", getOrderCode())
.append("productId", getProductId())
.append("productCode", getProductCode())
.append("productName", getProductName())
.append("productSpc", getProductSpc())
.append("unit", getUnit())
.append("quantityProduced", getQuantityProduced())
.append("quantitySplit", getQuantitySplit())
.append("routeCode", getRouteCode())
.append("prodLineCode", getProdLineCode())
.append("productDate", getProductDate())
.append("shiftId", getShiftId())
.append("parentOrder", getParentOrder())
.append("ancestors", getAncestors())
.append("status", getStatus())
.append("remark", getRemark())
.append("attr1", getAttr1())
.append("attr2", getAttr2())
.append("attr3", getAttr3())
.append("attr4", getAttr4())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("prodType", getProdType())
.append("factoryCode", getFactoryCode())
.append("batchCodeList", getBatchCodeList())
.append("endFlag", getEndFlag())
.append("shiftDesc", getShiftDesc())
.append("bucketId", getBucketId())
.append("bucketCode", getBucketCode())
.append("materialId", getMaterialId())
.append("materialCode", getMaterialCode())
.append("materialName", getMaterialName())
.append("planTime", getPlanTime())
.append("bucketName", getBucketName())
.toString();
}
}

@ -0,0 +1,201 @@
package com.op.wms.domain;
import com.op.common.core.annotation.Excel;
import com.op.common.core.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
/**
* pro_order_workorder_batch
*s
* @author Open Platform
* @date 2023-07-18
*/
public class ProOrderWorkorderBatch extends BaseEntity {
private static final long serialVersionUID = 1L;
/**
* ID
*/
@Excel(name = "批次ID")
private String batchId;
/**
* ID
*/
private String workorderId;
/**
*
*/
@Excel(name = "批次号")
private String batchCode;
/**
*
*/
@Excel(name = "批次数量")
private Long batchQuantity;
@Excel(name = "已入数量")
private Long includedQuantity;
public Long getIncludedQuantity() {
return includedQuantity;
}
public void setIncludedQuantity(Long includedQuantity) {
this.includedQuantity = includedQuantity;
}
/**
*
*/
@Excel(name = "单据状态")
private String status;
/**
* 1
*/
@Excel(name = "预留字段1")
private String attr1;
/**
* 2
*/
@Excel(name = "预留字段2")
private String attr2;
/**
* 3
*/
@Excel(name = "预留字段3")
private String attr3;
/**
* 4
*/
@Excel(name = "预留字段4")
private String attr4;
/**
*
*/
@Excel(name = "产品类型")
private String prodType;
/**
* $column.columnComment
*/
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
private String factoryCode;
public void setBatchId(String batchId) {
this.batchId = batchId;
}
public String getBatchId() {
return batchId;
}
public void setWorkorderId(String workorderId) {
this.workorderId = workorderId;
}
public String getWorkorderId() {
return workorderId;
}
public void setBatchCode(String batchCode) {
this.batchCode = batchCode;
}
public String getBatchCode() {
return batchCode;
}
public void setBatchQuantity(Long batchQuantity) {
this.batchQuantity = batchQuantity;
}
public Long getBatchQuantity() {
return batchQuantity;
}
public void setStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
public void setAttr1(String attr1) {
this.attr1 = attr1;
}
public String getAttr1() {
return attr1;
}
public void setAttr2(String attr2) {
this.attr2 = attr2;
}
public String getAttr2() {
return attr2;
}
public void setAttr3(String attr3) {
this.attr3 = attr3;
}
public String getAttr3() {
return attr3;
}
public void setAttr4(String attr4) {
this.attr4 = attr4;
}
public String getAttr4() {
return attr4;
}
public void setProdType(String prodType) {
this.prodType = prodType;
}
public String getProdType() {
return prodType;
}
public void setFactoryCode(String factoryCode) {
this.factoryCode = factoryCode;
}
public String getFactoryCode() {
return factoryCode;
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
.append("batchId", getBatchId())
.append("workorderId", getWorkorderId())
.append("batchCode", getBatchCode())
.append("batchQuantity", getBatchQuantity())
.append("status", getStatus())
.append("remark", getRemark())
.append("attr1", getAttr1())
.append("attr2", getAttr2())
.append("attr3", getAttr3())
.append("attr4", getAttr4())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.append("prodType", getProdType())
.append("factoryCode", getFactoryCode())
.toString();
}
}

@ -80,7 +80,7 @@ public class WmsOdsEmStorageNewsSn extends BaseEntity {
/**
*
*/
@Excel(name = "条码")
@Excel(name = "批次")
private String barCode;
/**

@ -2,6 +2,7 @@ package com.op.wms.domain;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
@ -64,7 +65,7 @@ public class WmsOdsWhiteEmbryoIn extends BaseEntity {
*
*/
@Excel(name = "单位")
private String Unit;
private String unit;
/**
*
@ -208,6 +209,17 @@ public class WmsOdsWhiteEmbryoIn extends BaseEntity {
private String Remark;
private List<WmsWhiteBilletInfor> wmsWhiteBilletInforList;
public List<WmsWhiteBilletInfor> getWmsWhiteBilletInforList() {
return wmsWhiteBilletInforList;
}
public void setWmsWhiteBilletInforList(List<WmsWhiteBilletInfor> wmsWhiteBilletInforList) {
this.wmsWhiteBilletInforList = wmsWhiteBilletInforList;
}
public String getRemark() {
return Remark;
}
@ -279,11 +291,11 @@ public class WmsOdsWhiteEmbryoIn extends BaseEntity {
}
public void setUnit(String Unit) {
this.Unit = Unit;
this.unit = Unit;
}
public String getUnit() {
return Unit;
return unit;
}
public void setRealityNumber(BigDecimal realityNumber) {
@ -488,7 +500,7 @@ public class WmsOdsWhiteEmbryoIn extends BaseEntity {
.append("materialDesc", getMaterialDesc())
.append("planDate", getPlanDate())
.append("planNumber", getPlanNumber())
.append("Unit", getUnit())
.append("unit", getUnit())
.append("realityNumber", getRealityNumber())
.append("orderStatus", getOrderStatus())
.append("userDefined1", getUserDefined1())

@ -0,0 +1,60 @@
package com.op.wms.domain;
import com.op.common.core.annotation.Excel;
/**
*
*/
public class WmsWhiteBilletInfor {
/**
*
*/
@Excel(name = "批次号")
private String batchCode;
/**
*
*/
@Excel(name = "托盘数量")
private String batchQuantity;
/**
*
*/
@Excel(name = "托盘号")
private String sn;
@Excel(name = "库位")
private String wlCode;
public String getBatchCode() {
return batchCode;
}
public void setBatchCode(String batchCode) {
this.batchCode = batchCode;
}
public String getBatchQuantity() {
return batchQuantity;
}
public void setBatchQuantity(String batchQuantity) {
this.batchQuantity = batchQuantity;
}
public String getSn() {
return sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public String getWlCode() {
return wlCode;
}
public void setWlCode(String wlCode) {
this.wlCode = wlCode;
}
}

@ -84,4 +84,6 @@ public interface OdsProcureOutOrderMapper {
List<String> selectOdsProcureOutOrderListZUKENX(OdsProcureOutOrder order);
String selectMachineCode(@Param("order")OdsProcureOutOrder odsProcureOutOrder);
List<OdsProcureOutOrder> selectmesPrepareDetailWhite(OdsProcureOutOrder odsProcureOutOrder);
}

@ -58,4 +58,6 @@ public interface OdsWhiteEmbryoMapper {
* @return
*/
public int deleteOdsWhiteEmbryoByIDs(String[] IDs);
OdsWhiteEmbryo selectOdsWhiteEmbryoByOrderCode(OdsWhiteEmbryo odsWhiteEmbryo);
}

@ -3,6 +3,7 @@ package com.op.wms.mapper;
import java.util.List;
import com.op.wms.domain.WmsOdsEmStorageNews;
import com.op.wms.domain.WmsOdsEmStorageNewsSn;
/**
* Mapper
@ -60,4 +61,6 @@ public interface WmsOdsEmStorageNewsMapper {
public int deleteWmsOdsEmStorageNewsByStorageIds(String[] storageIds);
void updateAdd(WmsOdsEmStorageNews wmsOdsEmStorageNews);
WmsOdsEmStorageNews selectWmsOdsEmStorageNewsByWlCode(WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn);
}

@ -58,4 +58,6 @@ public interface WmsOdsEmStorageNewsSnMapper {
* @return
*/
public int deleteWmsOdsEmStorageNewsSnByEmOrderInSnIds(Long[] emOrderInSnIds);
WmsOdsEmStorageNewsSn selectWmsOdsEmStorageNewsSnBysn(WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn);
}

@ -2,6 +2,8 @@ package com.op.wms.mapper;
import java.util.List;
import com.op.wms.domain.ProOrderWorkorder;
import com.op.wms.domain.ProOrderWorkorderBatch;
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
/**
@ -62,4 +64,10 @@ public interface WmsOdsWhiteEmbryoInMapper {
WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByWorkorderCode(String workorderCode);
void updateWmsOdsWhiteEmbryoInByOrderCode(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
ProOrderWorkorder selectProOrderWorkorder(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIns);
List<ProOrderWorkorderBatch> selectProOrderWorkorderBatch(ProOrderWorkorder proOrderWorkorder);
WmsOdsWhiteEmbryoIn selectWmsOdsWhiteEmbryoInByOrderCodeAndUserDefined1(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
}

@ -2,7 +2,9 @@ package com.op.wms.service;
import java.util.List;
import com.op.wms.domain.OdsProcureOutOrder;
import com.op.wms.domain.OdsWhiteEmbryo;
import com.op.wms.domain.WmsOdsEmStorageNewsSn;
/**
* Service
@ -58,4 +60,10 @@ public interface IOdsWhiteEmbryoService {
* @return
*/
public int deleteOdsWhiteEmbryoByID(String ID);
OdsProcureOutOrder selectWhiteEmbryoDeliveryOrder(OdsProcureOutOrder odsProcureOrder);
WmsOdsEmStorageNewsSn selectQueryTrayInfor(WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn);
String WhiteEmbryoOutbound(OdsWhiteEmbryo odsWhiteEmbryo);
}

@ -58,4 +58,5 @@ public interface IWmsOdsWhiteEmbryoInService {
* @return
*/
public int deleteWmsOdsWhiteEmbryoInByID(String ID);
}

@ -4,6 +4,8 @@ import java.text.ParseException;
import java.util.List;
import com.op.system.api.domain.wms.wmsReportWork;
import com.op.wms.domain.ProOrderWorkorder;
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
import com.op.wms.domain.WmsProductPut;
/**
@ -77,4 +79,7 @@ public interface IWmsProductPutService {
List<wmsReportWork> getReportList(wmsReportWork mesReportWork);
String addReportListSap(List<wmsReportWork> mesReportWork) throws ParseException;
ProOrderWorkorder selectWmsOdsWhiteEmbryoInhAnd(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIns);
String addtWmsOdsWhiteEmbryoInhAnd(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn);
}

@ -1,19 +1,18 @@
package com.op.wms.service.impl;
import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
import com.op.common.core.context.SecurityContextHolder;
import com.op.common.core.utils.uuid.IdUtils;
import com.op.wms.domain.Purcode;
import com.op.wms.domain.WmsOdsWhiteEmbryoIn;
import com.op.wms.mapper.PurcodeMapper;
import com.op.wms.domain.*;
import com.op.wms.mapper.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.op.wms.mapper.OdsWhiteEmbryoMapper;
import com.op.wms.domain.OdsWhiteEmbryo;
import com.op.wms.service.IOdsWhiteEmbryoService;
/**
@ -28,7 +27,12 @@ public class OdsWhiteEmbryoServiceImpl implements IOdsWhiteEmbryoService {
private OdsWhiteEmbryoMapper odsWhiteEmbryoMapper;
@Autowired
private PurcodeMapper purcodeMapper;
@Autowired
private OdsProcureOutOrderMapper odsProcureOutOrderMapper;
@Autowired
private WmsOdsEmStorageNewsSnMapper wmsOdsEmStorageNewsSnMapper;
@Autowired
private WmsOdsEmStorageNewsMapper wmsOdsEmStorageNewsMapper;
/**
*
*
@ -151,4 +155,65 @@ public class OdsWhiteEmbryoServiceImpl implements IOdsWhiteEmbryoService {
public int deleteOdsWhiteEmbryoByID(String ID) {
return odsWhiteEmbryoMapper.deleteOdsWhiteEmbryoByID(ID);
}
@Override
public OdsProcureOutOrder selectWhiteEmbryoDeliveryOrder(OdsProcureOutOrder odsProcureOrder) {
//母单其中list里面是对应的子单
DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getSiteCode());
OdsProcureOutOrder odsProcureOutOrder = odsProcureOutOrderMapper.selectmesPrepare(odsProcureOrder);
String machine= odsProcureOutOrderMapper.selectMachineCode(odsProcureOutOrder);
if (odsProcureOutOrder != null) {
List<OdsProcureOutOrder> orderList = odsProcureOutOrderMapper.selectmesPrepareDetailWhite(odsProcureOutOrder);
for (OdsProcureOutOrder order:orderList){
order.setProductionLineCode(machine);
}
odsProcureOutOrder.setList(orderList);
}
return odsProcureOutOrder;
}
@Override
public WmsOdsEmStorageNewsSn selectQueryTrayInfor(WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn) {
DynamicDataSourceContextHolder.push("ds_" + wmsOdsEmStorageNewsSn.getFactoryCode());
WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn1= wmsOdsEmStorageNewsSnMapper.selectWmsOdsEmStorageNewsSnBysn(wmsOdsEmStorageNewsSn);
return wmsOdsEmStorageNewsSn1;
}
@Override
public String WhiteEmbryoOutbound(OdsWhiteEmbryo odsWhiteEmbryo) {
DynamicDataSourceContextHolder.push("ds_" + odsWhiteEmbryo.getSiteCode());
String result="出库成功";
//先查询这个订单有没有插入,/如果没有就插入,如果有就修改
OdsWhiteEmbryo odsWhiteEmbryo1= odsWhiteEmbryoMapper.selectOdsWhiteEmbryoByOrderCode(odsWhiteEmbryo);
if (odsWhiteEmbryo1==null){
odsWhiteEmbryo.setID(IdUtils.fastSimpleUUID());
odsWhiteEmbryo.setRealityNumber(new BigDecimal("0"));
odsWhiteEmbryo.setOrderStatus("1");
odsWhiteEmbryo.setCreateDate(new Date());
odsWhiteEmbryoMapper.insertOdsWhiteEmbryo(odsWhiteEmbryo);
odsWhiteEmbryo1=odsWhiteEmbryo;
}
List<WmsOdsEmStorageNewsSn> wmsOdsEmStorageNewsSnList= odsWhiteEmbryo.getWmsOdsEmStorageNewsSns();
//然后调整库存//-先调整明细明细就修改标记为0/库存减掉
for (WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn: wmsOdsEmStorageNewsSnList){
OdsWhiteEmbryo odsWhiteEmbryo2= odsWhiteEmbryoMapper.selectOdsWhiteEmbryoByID(odsWhiteEmbryo1.getID());
BigDecimal runumber= odsWhiteEmbryo2.getRealityNumber().add(wmsOdsEmStorageNewsSn.getAmount());
BigDecimal planNumber= odsWhiteEmbryo1.getPlanNumber();
if (runumber.equals(planNumber)){//相等为true否则为false
odsWhiteEmbryo1.setOrderStatus("2");
}
odsWhiteEmbryo1.setRealityNumber(runumber);
odsWhiteEmbryo1.setLastUpdateBy(odsWhiteEmbryo.getCreateBy());
odsWhiteEmbryo1.setLastUpdateDate(new Date());
odsWhiteEmbryoMapper.updateOdsWhiteEmbryo(odsWhiteEmbryo1);
//修改订单入库数量和状态
wmsOdsEmStorageNewsSn.setActiveFlag("0");
wmsOdsEmStorageNewsSnMapper.updateWmsOdsEmStorageNewsSn(wmsOdsEmStorageNewsSn);//明细出库
WmsOdsEmStorageNews wmsOdsEmStorageNews= wmsOdsEmStorageNewsMapper.selectWmsOdsEmStorageNewsByWlCode(wmsOdsEmStorageNewsSn);
wmsOdsEmStorageNews.setAmount(new BigDecimal("0"));//一个库位一个托盘
wmsOdsEmStorageNewsMapper.updateWmsOdsEmStorageNews(wmsOdsEmStorageNews);
}
return result;
}
}

@ -49,7 +49,13 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
private RemoteSapService remoteSapService;
@Autowired
private RemoteQualityService remoteQualityService;
@Autowired
private WmsOdsWhiteEmbryoInMapper wmsOdsWhiteEmbryoInMapper;
@Autowired
private WmsOdsEmStorageNewsSnMapper wmsOdsEmStorageNewsSnMapper;
@Autowired
private WmsOdsEmStorageNewsMapper wmsOdsEmStorageNewsMapper;
/**
*
*
@ -534,4 +540,94 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService {
return SUCCESS;
}
@Override
public ProOrderWorkorder selectWmsOdsWhiteEmbryoInhAnd(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIns) {
//pro order workorder
//ipro order workorder batch
DynamicDataSourceContextHolder.push("ds_" + wmsOdsWhiteEmbryoIns.getSiteCode());
ProOrderWorkorder proOrderWorkorder= wmsOdsWhiteEmbryoInMapper.selectProOrderWorkorder(wmsOdsWhiteEmbryoIns);
if (proOrderWorkorder!=null){
List<ProOrderWorkorderBatch> proOrderWorkorderBatchList= wmsOdsWhiteEmbryoInMapper.selectProOrderWorkorderBatch(proOrderWorkorder);
proOrderWorkorder.setProOrderWorkorderBatchList(proOrderWorkorderBatchList);
}
return proOrderWorkorder;
}
@Override
public String addtWmsOdsWhiteEmbryoInhAnd(WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn) {
String result="入库成功";
//先判断这个订单是否存在//如果存在--就修改订单。-如果不存在就添加上,
DynamicDataSourceContextHolder.push("ds_" + wmsOdsWhiteEmbryoIn.getSiteCode());
WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn1= wmsOdsWhiteEmbryoInMapper.selectWmsOdsWhiteEmbryoInByOrderCodeAndUserDefined1(wmsOdsWhiteEmbryoIn);
if (wmsOdsWhiteEmbryoIn1==null){
//原来不存在
wmsOdsWhiteEmbryoIn.setID(IdUtils.fastSimpleUUID());
wmsOdsWhiteEmbryoIn.setActive("1");
wmsOdsWhiteEmbryoIn.setRealityNumber(new BigDecimal("0"));
wmsOdsWhiteEmbryoIn.setOrderStatus("1");
wmsOdsWhiteEmbryoIn.setCreateDate(new Date());
wmsOdsWhiteEmbryoInMapper.insertWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn);
wmsOdsWhiteEmbryoIn1=wmsOdsWhiteEmbryoIn;
}
// else {//原来就存在
// wmsOdsWhiteEmbryoIn1.setOrderStatus("1");
// wmsOdsWhiteEmbryoInMapper.updateWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn1);
// }
List<WmsWhiteBilletInfor> wmsWhiteBilletInforList= wmsOdsWhiteEmbryoIn.getWmsWhiteBilletInforList();
for (WmsWhiteBilletInfor wmsWhiteBilletInfor:
wmsWhiteBilletInforList) {
//判断是否入完
//wms_ods_em_storage_news_sn 明细
WmsOdsWhiteEmbryoIn wmsOdsWhiteEmbryoIn2= wmsOdsWhiteEmbryoInMapper.selectWmsOdsWhiteEmbryoInByID(wmsOdsWhiteEmbryoIn1.getID());
BigDecimal runumber= wmsOdsWhiteEmbryoIn2.getRealityNumber().add(new BigDecimal(wmsWhiteBilletInfor.getBatchQuantity()));
BigDecimal planNumber= wmsOdsWhiteEmbryoIn2.getPlanNumber();
if (runumber.equals(planNumber)){//相等为true否则为false
wmsOdsWhiteEmbryoIn2.setOrderStatus("2");
}
wmsOdsWhiteEmbryoIn2.setLastUpdateBy(wmsOdsWhiteEmbryoIn.getCreateBy());
wmsOdsWhiteEmbryoIn2.setLastUpdateDate(new Date());
wmsOdsWhiteEmbryoIn2.setRealityNumber(runumber);
wmsOdsWhiteEmbryoInMapper.updateWmsOdsWhiteEmbryoIn(wmsOdsWhiteEmbryoIn2);
//修改订单入库数量和状态
WmsOdsEmStorageNewsSn wmsOdsEmStorageNewsSn =new WmsOdsEmStorageNewsSn();
wmsOdsEmStorageNewsSn.setWlCode(wmsWhiteBilletInfor.getWlCode());//库位
wmsOdsEmStorageNewsSn.setMaterialCode(wmsOdsWhiteEmbryoIn.getMaterialCode());
wmsOdsEmStorageNewsSn.setMaterialDesc(wmsOdsWhiteEmbryoIn.getMaterialDesc());
wmsOdsEmStorageNewsSn.setSn(wmsWhiteBilletInfor.getSn());
wmsOdsEmStorageNewsSn.setBarCode(wmsWhiteBilletInfor.getBatchCode());
wmsOdsEmStorageNewsSn.setAmount(new BigDecimal(wmsWhiteBilletInfor.getBatchQuantity()));
wmsOdsEmStorageNewsSn.setCreateBy(wmsOdsWhiteEmbryoIn.getCreateBy());
wmsOdsEmStorageNewsSn.setGmtCreate(new Date());
wmsOdsEmStorageNewsSn.setActiveFlag("1");
wmsOdsEmStorageNewsSn.setFactoryCode(wmsOdsWhiteEmbryoIn.getSiteCode());
wmsOdsEmStorageNewsSnMapper.insertWmsOdsEmStorageNewsSn(wmsOdsEmStorageNewsSn);
WmsOdsEmStorageNews wmsOdsEmStorageNews=new WmsOdsEmStorageNews();
wmsOdsEmStorageNews.setWlCode(wmsWhiteBilletInfor.getWlCode());
wmsOdsEmStorageNews.setMaterialCode(wmsOdsWhiteEmbryoIn.getMaterialCode());
wmsOdsEmStorageNews.setMaterialDesc(wmsOdsWhiteEmbryoIn.getMaterialDesc());
wmsOdsEmStorageNews.setActiveFlag("1");
List<WmsOdsEmStorageNews> wmsOdsEmStorageNewsList= wmsOdsEmStorageNewsMapper.selectWmsOdsEmStorageNewsList(wmsOdsEmStorageNews);
if (wmsOdsEmStorageNewsList.size()>0){
WmsOdsEmStorageNews wmsOdsEmStorageNews1 = wmsOdsEmStorageNewsList.get(0);
BigDecimal Amount=wmsOdsEmStorageNews1.getAmount().add(new BigDecimal(wmsWhiteBilletInfor.getBatchQuantity()));
wmsOdsEmStorageNews1.setAmount(Amount);
wmsOdsEmStorageNewsMapper.updateWmsOdsEmStorageNews(wmsOdsEmStorageNews1);
}else {
wmsOdsEmStorageNews.setAmount(new BigDecimal(wmsWhiteBilletInfor.getBatchQuantity()));
wmsOdsEmStorageNews.setUserDefined1(wmsOdsWhiteEmbryoIn.getUnit());
wmsOdsEmStorageNews.setCreateBy(wmsOdsWhiteEmbryoIn.getCreateBy());
wmsOdsEmStorageNews.setGmtCreate(new Date());
wmsOdsEmStorageNews.setFactoryCode(wmsOdsWhiteEmbryoIn.getSiteCode());
wmsOdsEmStorageNews.setSapFactoryCode(wmsOdsWhiteEmbryoIn.getSiteCode());
wmsOdsEmStorageNews.setStorageId(IdUtils.fastSimpleUUID());
wmsOdsEmStorageNewsMapper.insertWmsOdsEmStorageNews(wmsOdsEmStorageNews);
}
// wms_ods_em_storage_news 主库
}
return result;
}
}

@ -407,4 +407,25 @@
FROM mes_report_work
WHERE workorder_code=#{order.workorderCode} AND end_report='1'
</select>
<select id="selectmesPrepareDetailWhite" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
SELECT
mes_prepare_detail.record_id ID,
mes_prepare.workorder_name,
mes_prepare_detail.prepare_id User_Defined2,
mes_prepare_detail.material_code Material_Code,
mes_prepare_detail.material_name Material_Desc,
mes_prepare_detail.prod_type User_Defined1,
mes_prepare_detail.unit Unit,
mes_prepare_detail.quantity Plan_Number,
COALESCE ( ods_white_embryo.Reality_Number, 0 ) Out_Number,
mes_prepare_detail.recoil User_Defined3,
mes_prepare_detail.factory_code Site_code
FROM
mes_prepare_detail
LEFT JOIN mes_prepare ON mes_prepare.prepare_id= mes_prepare_detail.prepare_id
LEFT JOIN ods_white_embryo ON ods_white_embryo.Order_Code= mes_prepare.workorder_name
AND ods_white_embryo.Material_Code= mes_prepare_detail.material_code
WHERE
mes_prepare_detail.prepare_id= #{ ID}
</select>
</mapper>

@ -12,7 +12,7 @@
<result property="materialDesc" column="Material_Desc"/>
<result property="planDate" column="Plan_Date"/>
<result property="planNumber" column="Plan_Number"/>
<result property="Unit" column="Unit"/>
<result property="unit" column="Unit"/>
<result property="realityNumber" column="Reality_Number"/>
<result property="orderStatus" column="Order_Status"/>
<result property="userDefined1" column="User_Defined1"/>
@ -54,7 +54,7 @@
<if test="materialDesc != null and materialDesc != ''">and Material_Desc = #{materialDesc}</if>
<if test="planDate != null ">and Plan_Date = #{planDate}</if>
<if test="planNumber != null ">and Plan_Number = #{planNumber}</if>
<if test="Unit != null and Unit != ''">and Unit = #{Unit}</if>
<if test="unit != null and unit != ''">and Unit = #{unit}</if>
<if test="realityNumber != null ">and Reality_Number = #{realityNumber}</if>
<if test="orderStatus != null and orderStatus != ''">and Order_Status = #{orderStatus}</if>
<if test="userDefined1 != null and userDefined1 != ''">and User_Defined1 = #{userDefined1}</if>
@ -105,7 +105,7 @@
<if test="materialDesc != null">Material_Desc,</if>
<if test="planDate != null">Plan_Date,</if>
<if test="planNumber != null">Plan_Number,</if>
<if test="Unit != null">Unit,</if>
<if test="unit != null">Unit,</if>
<if test="realityNumber != null">Reality_Number,</if>
<if test="orderStatus != null">Order_Status,</if>
<if test="userDefined1 != null">User_Defined1,</if>
@ -141,7 +141,7 @@
<if test="materialDesc != null">#{materialDesc},</if>
<if test="planDate != null">#{planDate},</if>
<if test="planNumber != null">#{planNumber},</if>
<if test="Unit != null">#{Unit},</if>
<if test="unit != null">#{unit},</if>
<if test="realityNumber != null">#{realityNumber},</if>
<if test="orderStatus != null">#{orderStatus},</if>
<if test="userDefined1 != null">#{userDefined1},</if>
@ -180,7 +180,7 @@
<if test="materialDesc != null">Material_Desc = #{materialDesc},</if>
<if test="planDate != null">Plan_Date = #{planDate},</if>
<if test="planNumber != null">Plan_Number = #{planNumber},</if>
<if test="Unit != null">Unit = #{Unit},</if>
<if test="unit != null">Unit = #{unit},</if>
<if test="realityNumber != null">Reality_Number = #{realityNumber},</if>
<if test="orderStatus != null">Order_Status = #{orderStatus},</if>
<if test="userDefined1 != null">User_Defined1 = #{userDefined1},</if>
@ -221,4 +221,9 @@
#{ID}
</foreach>
</delete>
<select id="selectOdsWhiteEmbryoByOrderCode" resultMap="OdsWhiteEmbryoResult">
<include refid="selectOdsWhiteEmbryoVo"/>
WHERE Order_Code=#{orderCode} AND Material_Code=#{materialCode}
and Active='1'
</select>
</mapper>

@ -218,4 +218,8 @@
gmt_modified=now()
where wh_code=#{whCode} and wl_code=#{wlCode} and material_code=#{materialCode}
</update>
<select id="selectWmsOdsEmStorageNewsByWlCode" resultMap="WmsOdsEmStorageNewsResult">
<include refid="selectWmsOdsEmStorageNewsVo"/>
WHERE wl_code=#{wlCode} AND material_code=#{materialCode} AND active_flag='1'
</select>
</mapper>

@ -190,4 +190,8 @@
#{emOrderInSnId}
</foreach>
</delete>
<select id="selectWmsOdsEmStorageNewsSnBysn" resultMap="WmsOdsEmStorageNewsSnResult">
<include refid="selectWmsOdsEmStorageNewsSnVo"/>
WHERE sn=#{sn} AND active_flag='1'
</select>
</mapper>

@ -12,7 +12,7 @@
<result property="materialDesc" column="Material_Desc"/>
<result property="planDate" column="Plan_Date"/>
<result property="planNumber" column="Plan_Number"/>
<result property="Unit" column="Unit"/>
<result property="unit" column="Unit"/>
<result property="realityNumber" column="Reality_Number"/>
<result property="orderStatus" column="Order_Status"/>
<result property="userDefined1" column="User_Defined1"/>
@ -55,7 +55,7 @@
<if test="materialDesc != null and materialDesc != ''">and Material_Desc = #{materialDesc}</if>
<if test="planDate != null ">and Plan_Date = #{planDate}</if>
<if test="planNumber != null ">and Plan_Number = #{planNumber}</if>
<if test="Unit != null and Unit != ''">and Unit = #{Unit}</if>
<if test="unit != null and unit != ''">and Unit = #{unit}</if>
<if test="realityNumber != null ">and Reality_Number = #{realityNumber}</if>
<if test="orderStatus != null and orderStatus != ''">and Order_Status = #{orderStatus}</if>
<if test="userDefined1 != null and userDefined1 != ''">and User_Defined1 = #{userDefined1}</if>
@ -113,7 +113,7 @@
<if test="materialDesc != null">Material_Desc,</if>
<if test="planDate != null">Plan_Date,</if>
<if test="planNumber != null">Plan_Number,</if>
<if test="Unit != null">Unit,</if>
<if test="unit != null">Unit,</if>
<if test="realityNumber != null">Reality_Number,</if>
<if test="orderStatus != null">Order_Status,</if>
<if test="userDefined1 != null">User_Defined1,</if>
@ -149,7 +149,7 @@
<if test="materialDesc != null">#{materialDesc},</if>
<if test="planDate != null">#{planDate},</if>
<if test="planNumber != null">#{planNumber},</if>
<if test="Unit != null">#{Unit},</if>
<if test="unit != null">#{unit},</if>
<if test="realityNumber != null">#{realityNumber},</if>
<if test="orderStatus != null">#{orderStatus},</if>
<if test="userDefined1 != null">#{userDefined1},</if>
@ -188,7 +188,7 @@
<if test="materialDesc != null">Material_Desc = #{materialDesc},</if>
<if test="planDate != null">Plan_Date = #{planDate},</if>
<if test="planNumber != null">Plan_Number = #{planNumber},</if>
<if test="Unit != null">Unit = #{Unit},</if>
<if test="unit != null">Unit = #{unit},</if>
<if test="realityNumber != null">Reality_Number = #{realityNumber},</if>
<if test="orderStatus != null">Order_Status = #{orderStatus},</if>
<if test="userDefined1 != null">User_Defined1 = #{userDefined1},</if>
@ -238,4 +238,43 @@
Last_Update_Date = now()
where Order_Code=#{orderCode}
</update>
<select id="selectProOrderWorkorder" resultType="com.op.wms.domain.ProOrderWorkorder">
SELECT
workorder_id workorderId,
workorder_code workorderCode,
workorder_name workorderName,
order_id orderId,
order_code orderCode,
product_code productCode ,
product_name productName,
unit unit,
quantity_split quantitySplit,
route_code routeCode,
prod_line_code prodLineCode,
product_date productDate,
factory_code factoryCode,
prod_type prodType,
workorder_code_sap workorderCodeSap
FROM
pro_order_workorder
WHERE workorder_code=#{orderCode}
AND del_flag='0'
</select>
<select id="selectProOrderWorkorderBatch" resultType="com.op.wms.domain.ProOrderWorkorderBatch">
SELECT
batch_code batchCode,
batch_quantity batchQuantity
FROM
pro_order_workorder_batch
WHERE
del_flag = '0'
AND workorder_id = #{workorderId}
</select>
<select id="selectWmsOdsWhiteEmbryoInByOrderCodeAndUserDefined1" resultMap="WmsOdsWhiteEmbryoInResult">
<include refid="selectWmsOdsWhiteEmbryoInVo"/>
WHERE Active='1' AND Order_Code=#{orderCode} AND User_Defined1=#{userDefined1}
</select>
</mapper>

Loading…
Cancel
Save