为库存事务和库存记录表添加生产工单字段,以支持线边库中的库存按生产工单搜索。
This commit is contained in:
parent
bcb724158a
commit
ba4f252285
@ -105,6 +105,15 @@ public class WmMaterialStock extends BaseEntity
|
||||
@Excel(name = "在库数量")
|
||||
private BigDecimal quantityOnhand;
|
||||
|
||||
/**
|
||||
* 生产工单ID
|
||||
*/
|
||||
private Long workorderId;
|
||||
|
||||
/** 生产工单编号 */
|
||||
@Excel(name = "生产工单编号")
|
||||
private String workorderCode;
|
||||
|
||||
/** 库存有效期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
@Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
|
||||
@ -338,6 +347,22 @@ public class WmMaterialStock extends BaseEntity
|
||||
this.recptDate = recptDate;
|
||||
}
|
||||
|
||||
public Long getWorkorderId() {
|
||||
return workorderId;
|
||||
}
|
||||
|
||||
public void setWorkorderId(Long workorderId) {
|
||||
this.workorderId = workorderId;
|
||||
}
|
||||
|
||||
public String getWorkorderCode() {
|
||||
return workorderCode;
|
||||
}
|
||||
|
||||
public void setWorkorderCode(String workorderCode) {
|
||||
this.workorderCode = workorderCode;
|
||||
}
|
||||
|
||||
public void setExpireDate(Date expireDate)
|
||||
{
|
||||
this.expireDate = expireDate;
|
||||
@ -386,39 +411,37 @@ public class WmMaterialStock extends BaseEntity
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
|
||||
.append("materialStockId", getMaterialStockId())
|
||||
.append("itemTypeId", getItemTypeId())
|
||||
.append("itemId", getItemId())
|
||||
.append("itemCode", getItemCode())
|
||||
.append("itemName", getItemName())
|
||||
.append("specification", getSpecification())
|
||||
.append("unitOfMeasure", getUnitOfMeasure())
|
||||
.append("batchCode", getBatchCode())
|
||||
.append("warehouseId", getWarehouseId())
|
||||
.append("warehouseCode", getWarehouseCode())
|
||||
.append("warehouseName", getWarehouseName())
|
||||
.append("locationId", getLocationId())
|
||||
.append("locationCode", getLocationCode())
|
||||
.append("locationName", getLocationName())
|
||||
.append("areaId", getAreaId())
|
||||
.append("areaCode", getAreaCode())
|
||||
.append("areaName", getAreaName())
|
||||
.append("vendorId", getVendorId())
|
||||
.append("vendorCode", getVendorCode())
|
||||
.append("vendorName", getVendorName())
|
||||
.append("vendorNick", getVendorNick())
|
||||
.append("quantityOnhand", getQuantityOnhand())
|
||||
.append("recptDate",getRecptDate())
|
||||
.append("expireDate", getExpireDate())
|
||||
.append("attr1", getAttr1())
|
||||
.append("attr2", getAttr2())
|
||||
.append("attr3", getAttr3())
|
||||
.append("attr4", getAttr4())
|
||||
.append("createBy", getCreateBy())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("updateBy", getUpdateBy())
|
||||
.append("updateTime", getUpdateTime())
|
||||
.toString();
|
||||
return "WmMaterialStock{" +
|
||||
"materialStockId=" + materialStockId +
|
||||
", itemTypeId=" + itemTypeId +
|
||||
", itemId=" + itemId +
|
||||
", itemCode='" + itemCode + '\'' +
|
||||
", itemName='" + itemName + '\'' +
|
||||
", specification='" + specification + '\'' +
|
||||
", unitOfMeasure='" + unitOfMeasure + '\'' +
|
||||
", batchCode='" + batchCode + '\'' +
|
||||
", warehouseId=" + warehouseId +
|
||||
", warehouseCode='" + warehouseCode + '\'' +
|
||||
", warehouseName='" + warehouseName + '\'' +
|
||||
", locationId=" + locationId +
|
||||
", locationCode='" + locationCode + '\'' +
|
||||
", locationName='" + locationName + '\'' +
|
||||
", areaId=" + areaId +
|
||||
", areaCode='" + areaCode + '\'' +
|
||||
", areaName='" + areaName + '\'' +
|
||||
", vendorId=" + vendorId +
|
||||
", vendorCode='" + vendorCode + '\'' +
|
||||
", vendorName='" + vendorName + '\'' +
|
||||
", vendorNick='" + vendorNick + '\'' +
|
||||
", quantityOnhand=" + quantityOnhand +
|
||||
", workorderId=" + workorderId +
|
||||
", workorderCode='" + workorderCode + '\'' +
|
||||
", recptDate=" + recptDate +
|
||||
", expireDate=" + expireDate +
|
||||
", attr1='" + attr1 + '\'' +
|
||||
", attr2='" + attr2 + '\'' +
|
||||
", attr3=" + attr3 +
|
||||
", attr4=" + attr4 +
|
||||
'}';
|
||||
}
|
||||
}
|
||||
|
@ -143,6 +143,17 @@ public class WmTransaction extends BaseEntity
|
||||
@Excel(name = "ERP账期", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date erpDate;
|
||||
|
||||
/**
|
||||
* 生产工单ID
|
||||
*/
|
||||
private Long workorderId;
|
||||
|
||||
/**
|
||||
* 生产工单编号
|
||||
*/
|
||||
@Excel(name = "生产工单编号")
|
||||
private String workorderCode;
|
||||
|
||||
/** 入库日期 */
|
||||
@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
|
||||
@Excel(name = "入库日期", width = 30, dateFormat = "yyyy-MM-dd hh:mm:ss")
|
||||
@ -449,6 +460,22 @@ public class WmTransaction extends BaseEntity
|
||||
return erpDate;
|
||||
}
|
||||
|
||||
public Long getWorkorderId() {
|
||||
return workorderId;
|
||||
}
|
||||
|
||||
public void setWorkorderId(Long workorderId) {
|
||||
this.workorderId = workorderId;
|
||||
}
|
||||
|
||||
public String getWorkorderCode() {
|
||||
return workorderCode;
|
||||
}
|
||||
|
||||
public void setWorkorderCode(String workorderCode) {
|
||||
this.workorderCode = workorderCode;
|
||||
}
|
||||
|
||||
public Date getRecptDate() {
|
||||
return recptDate;
|
||||
}
|
||||
@ -537,6 +564,8 @@ public class WmTransaction extends BaseEntity
|
||||
", transactionDate=" + transactionDate +
|
||||
", relatedTransactionId=" + relatedTransactionId +
|
||||
", erpDate=" + erpDate +
|
||||
", workorderId=" + workorderId +
|
||||
", workorderCode='" + workorderCode + '\'' +
|
||||
", recptDate=" + recptDate +
|
||||
", expireDate=" + expireDate +
|
||||
", attr1='" + attr1 + '\'' +
|
||||
|
@ -28,6 +28,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="vendorNick" column="vendor_nick" />
|
||||
<result property="quantityOnhand" column="quantity_onhand" />
|
||||
<result property="recptDate" column="recpt_date"></result>
|
||||
<result property="workorderId" column="workorder_id"></result>
|
||||
<result property="workorderCode" column="workorder_code"></result>
|
||||
<result property="expireDate" column="expire_date" />
|
||||
<result property="attr1" column="attr1" />
|
||||
<result property="attr2" column="attr2" />
|
||||
@ -40,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmMaterialStockVo">
|
||||
select material_stock_id, item_type_id, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, quantity_onhand,recpt_date, expire_date, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_material_stock
|
||||
select material_stock_id, item_type_id, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, quantity_onhand,recpt_date,workorder_id,workorder_code, expire_date, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_material_stock
|
||||
</sql>
|
||||
|
||||
<select id="selectWmMaterialStockList" parameterType="WmMaterialStock" resultMap="WmMaterialStockResult">
|
||||
@ -68,6 +70,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="vendorNick != null and vendorNick != ''"> and vendor_nick = #{vendorNick}</if>
|
||||
<if test="quantityOnhand != null "> and quantity_onhand = #{quantityOnhand}</if>
|
||||
<if test="recptDate !=null"> and recpt_date = #{recptDate}</if>
|
||||
<if test="workorderId !=null">and workorder_id = #{workorderId}</if>
|
||||
<if test="workorderCode !=null">and workorder_code = #{workorderCode}</if>
|
||||
<if test="expireDate != null "> and expire_date = #{expireDate}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
|
||||
@ -93,6 +97,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="areaId != null "> and area_id = #{areaId}</if>
|
||||
<if test="vendorId != null "> and vendor_id = #{vendorId}</if>
|
||||
<if test="recptDate !=null"> and recpt_date = #{recptDate}</if>
|
||||
<if test="workorderId !=null">and workorder_id = #{workorderId}</if>
|
||||
<if test="workorderCode !=null">and workorder_code = #{workorderCode}</if>
|
||||
</where>
|
||||
and 1=1 limit 1
|
||||
</select>
|
||||
@ -122,6 +128,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="vendorNick != null">vendor_nick,</if>
|
||||
<if test="quantityOnhand != null">quantity_onhand,</if>
|
||||
<if test="recptDate !=null">recpt_date,</if>
|
||||
<if test="workorderId !=null">workorder_id,</if>
|
||||
<if test="workorderCode !=null">workorder_code,</if>
|
||||
<if test="expireDate != null">expire_date,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
@ -155,6 +163,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="vendorNick != null">#{vendorNick},</if>
|
||||
<if test="quantityOnhand != null">#{quantityOnhand},</if>
|
||||
<if test="recptDate !=null">#{recptDate},</if>
|
||||
<if test="workorderId !=null">#{workorderId},</if>
|
||||
<if test="workorderCode !=null">#{workorderCode},</if>
|
||||
<if test="expireDate != null">#{expireDate},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
@ -192,6 +202,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="vendorNick != null">vendor_nick = #{vendorNick},</if>
|
||||
<if test="quantityOnhand != null">quantity_onhand = #{quantityOnhand},</if>
|
||||
<if test="recptDate !=null">recpt_date = #{recptDate},</if>
|
||||
<if test="workorderId !=null">workorder_id = #{workorderId},</if>
|
||||
<if test="workorderCode !=null">workorder_code = #{workorderCode},</if>
|
||||
<if test="expireDate != null">expire_date = #{expireDate},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
<if test="attr2 != null">attr2 = #{attr2},</if>
|
||||
|
@ -36,6 +36,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="transactionDate" column="transaction_date" />
|
||||
<result property="relatedTransactionId" column="related_transaction_id" />
|
||||
<result property="recptDate" column="recpt_date"></result>
|
||||
<result property="workorderId" column="workorder_id"></result>
|
||||
<result property="workorderCode" column="workorder_code"></result>
|
||||
<result property="erpDate" column="erp_date" />
|
||||
<result property="expireDate" column="expire_date" />
|
||||
<result property="attr1" column="attr1" />
|
||||
@ -49,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectWmTransactionVo">
|
||||
select transaction_id, transaction_type, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, source_doc_type, source_doc_id, source_doc_code, source_doc_line_id, material_stock_id, transaction_flag, transaction_quantity, transaction_date, related_transaction_id, erp_date,recpt_date, expire_date, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_transaction
|
||||
select transaction_id, transaction_type, item_id, item_code, item_name, specification, unit_of_measure, batch_code, warehouse_id, warehouse_code, warehouse_name, location_id, location_code, location_name, area_id, area_code, area_name, vendor_id, vendor_code, vendor_name, vendor_nick, source_doc_type, source_doc_id, source_doc_code, source_doc_line_id, material_stock_id, transaction_flag, transaction_quantity, transaction_date, related_transaction_id, erp_date,workorder_id,workorder_code,recpt_date, expire_date, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_transaction
|
||||
</sql>
|
||||
|
||||
<select id="selectWmTransactionList" parameterType="WmTransaction" resultMap="WmTransactionResult">
|
||||
@ -85,6 +87,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="transactionDate != null "> and transaction_date = #{transactionDate}</if>
|
||||
<if test="relatedTransactionId != null "> and related_transaction_id = #{relatedTransactionId}</if>
|
||||
<if test="recptDate != null"> and recpt_date = #{recptDate}</if>
|
||||
<if test="workorderId !=null">and workorder_id = #{workorderId}</if>
|
||||
<if test="workorderCode !=null">and workorder_code = #{workorderCode}</if>
|
||||
<if test="erpDate != null "> and erp_date = #{erpDate}</if>
|
||||
<if test="expireDate != null "> and expire_date = #{expireDate}</if>
|
||||
<if test="attr1 != null and attr1 != ''"> and attr1 = #{attr1}</if>
|
||||
@ -133,6 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="relatedTransactionId != null">related_transaction_id,</if>
|
||||
<if test="erpDate != null">erp_date,</if>
|
||||
<if test="recptDate != null">recpt_date,</if>
|
||||
<if test="workorderId !=null">workorder_id,</if>
|
||||
<if test="workorderCode !=null">workorder_code,</if>
|
||||
<if test="expireDate != null">expire_date,</if>
|
||||
<if test="attr1 != null">attr1,</if>
|
||||
<if test="attr2 != null">attr2,</if>
|
||||
@ -175,6 +181,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="relatedTransactionId != null">#{relatedTransactionId},</if>
|
||||
<if test="erpDate != null">#{erpDate},</if>
|
||||
<if test="recptDate != null">#{recptDate},</if>
|
||||
<if test="workorderId !=null">#{workorderId},</if>
|
||||
<if test="workorderCode !=null">#{workorderCode},</if>
|
||||
<if test="expireDate != null">#{expireDate},</if>
|
||||
<if test="attr1 != null">#{attr1},</if>
|
||||
<if test="attr2 != null">#{attr2},</if>
|
||||
@ -220,6 +228,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="transactionDate != null">transaction_date = #{transactionDate},</if>
|
||||
<if test="relatedTransactionId != null">related_transaction_id = #{relatedTransactionId},</if>
|
||||
<if test="erpDate != null">erp_date = #{erpDate},</if>
|
||||
<if test="workorderId !=null">workorder_id = #{workorderId},</if>
|
||||
<if test="workorderCode !=null">workorder_code = #{workorderCode},</if>
|
||||
<if test="recptDate != null">recp_date = #{recptDate},</if>
|
||||
<if test="expireDate != null">expire_date = #{expireDate},</if>
|
||||
<if test="attr1 != null">attr1 = #{attr1},</if>
|
||||
|
Loading…
Reference in New Issue
Block a user