Browse Source
仓库入库单 新增入库单详情Mapper 新增入库单详情Mapper.xml 新增入库单详情Service 新增入库单详情ServiceImpl 新增 暂收-采购单(仓库入库)页面temporaryPurchaseWarehouse.html 新增暂收按钮 后端新增暂收接口 后台新增 暂收-采购单(仓库入库) 供应商物料详情列表 接口 仓库入库单新增多个字段dev
liuxiaoxu
6 months ago
10 changed files with 1402 additions and 95 deletions
@ -0,0 +1,678 @@ |
|||
package com.ruoyi.warehouse.domain; |
|||
|
|||
import java.util.Date; |
|||
import com.fasterxml.jackson.annotation.JsonFormat; |
|||
import org.apache.commons.lang3.builder.ToStringBuilder; |
|||
import org.apache.commons.lang3.builder.ToStringStyle; |
|||
import com.ruoyi.common.annotation.Excel; |
|||
import com.ruoyi.common.core.domain.BaseEntity; |
|||
|
|||
/** |
|||
* 仓库入库单详情对象 warehouse_storage_order_detail |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-29 |
|||
*/ |
|||
public class WarehouseStorageOrderDetail extends BaseEntity |
|||
{ |
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** 入库单详情id */ |
|||
private Long warehouseStorageDetailId; |
|||
|
|||
/** 入库单号 */ |
|||
@Excel(name = "入库单号") |
|||
private String warehouseStorageCode; |
|||
|
|||
/** 关联订单号(多种订单类型) */ |
|||
@Excel(name = "关联订单号", readConverterExp = "多=种订单类型") |
|||
private String relatedOrderCode; |
|||
|
|||
/** 仓库入库状态 */ |
|||
@Excel(name = "仓库入库状态") |
|||
private String warehouseStorageStatus; |
|||
|
|||
/** 仓库品质状态 */ |
|||
@Excel(name = "仓库品质状态") |
|||
private String warehouseQualityStatus; |
|||
|
|||
/** 仓库入库类型 */ |
|||
@Excel(name = "仓库入库类型") |
|||
private String warehouseStorageType; |
|||
|
|||
/** 仓库入库类别 */ |
|||
@Excel(name = "仓库入库类别") |
|||
private String warehouseStorageClass; |
|||
|
|||
/** 仓库订单类型 */ |
|||
@Excel(name = "仓库订单类型") |
|||
private String warehouseOrderType; |
|||
|
|||
/** 仓库入库部门类型 */ |
|||
@Excel(name = "仓库入库部门类型") |
|||
private String warehouseDeptType; |
|||
|
|||
/** 仓库员工 */ |
|||
@Excel(name = "仓库员工") |
|||
private String warehouseEmployee; |
|||
|
|||
/** 仓库ID */ |
|||
@Excel(name = "仓库ID") |
|||
private String warehouseCode; |
|||
|
|||
/** 仓库名称 */ |
|||
@Excel(name = "仓库名称") |
|||
private String warehouseName; |
|||
|
|||
/** 仓库详细地址 */ |
|||
@Excel(name = "仓库详细地址") |
|||
private String warehouseDetailAddress; |
|||
|
|||
/** 供应商ID */ |
|||
@Excel(name = "供应商ID") |
|||
private String supplierCode; |
|||
|
|||
/** 供应商名称 */ |
|||
@Excel(name = "供应商名称") |
|||
private String supplierName; |
|||
|
|||
/** 退货联系人 */ |
|||
@Excel(name = "退货联系人") |
|||
private String customerContact; |
|||
|
|||
/** 联系人电话 */ |
|||
@Excel(name = "联系人电话") |
|||
private String contactNumber; |
|||
|
|||
/** 公司地址 */ |
|||
@Excel(name = "公司地址") |
|||
private String supplierAddress; |
|||
|
|||
/** 料号 */ |
|||
@Excel(name = "料号") |
|||
private String materialNo; |
|||
|
|||
/** 物料名称 */ |
|||
@Excel(name = "物料名称") |
|||
private String materialName; |
|||
|
|||
/** 物料类型 */ |
|||
@Excel(name = "物料类型") |
|||
private String materialType; |
|||
|
|||
/** 物料图片地址 */ |
|||
@Excel(name = "物料图片地址") |
|||
private String materialPhotourl; |
|||
|
|||
/** 物料品牌 */ |
|||
@Excel(name = "物料品牌") |
|||
private String materialBrand; |
|||
|
|||
/** 物料单位 */ |
|||
@Excel(name = "物料单位") |
|||
private String materialUnit; |
|||
|
|||
/** 物料描述 */ |
|||
@Excel(name = "物料描述") |
|||
private String materialDescribe; |
|||
|
|||
/** 物料加工方式 */ |
|||
@Excel(name = "物料加工方式") |
|||
private String materialProcessMethod; |
|||
|
|||
/** 物料入库部门 */ |
|||
@Excel(name = "物料入库部门") |
|||
private String materialDeptType; |
|||
|
|||
/** 生产订单数 */ |
|||
@Excel(name = "生产订单数") |
|||
private Integer makeTotal; |
|||
|
|||
/** 通知已到货数量 */ |
|||
@Excel(name = "通知已到货数量") |
|||
private Integer notifyHasArrivedNum; |
|||
|
|||
/** 通知到货数量 */ |
|||
@Excel(name = "通知到货数量") |
|||
private Integer notifyArriveNum; |
|||
|
|||
/** 实际已到货数量 */ |
|||
@Excel(name = "实际已到货数量") |
|||
private Integer actualHasArrivedNum; |
|||
|
|||
/** 实际到货数量 */ |
|||
@Excel(name = "实际到货数量") |
|||
private Integer actualArriveNum; |
|||
|
|||
/** 暂收已合格数量 */ |
|||
@Excel(name = "暂收已合格数量") |
|||
private Integer temporaryHasQualifiedNum; |
|||
|
|||
/** 暂收合格数量 */ |
|||
@Excel(name = "暂收合格数量") |
|||
private Integer temporaryQualifiedNum; |
|||
|
|||
/** 已入库数量 */ |
|||
@Excel(name = "已入库数量") |
|||
private Integer hasStorageNum; |
|||
|
|||
/** 入库数量 */ |
|||
@Excel(name = "入库数量") |
|||
private Integer storageNum; |
|||
|
|||
/** 品质已合格数量 */ |
|||
@Excel(name = "品质已合格数量") |
|||
private Integer qualityHasQualifiedNum; |
|||
|
|||
/** 品质合格数量 */ |
|||
@Excel(name = "品质合格数量") |
|||
private Integer qualityQualifiedNum; |
|||
|
|||
/** 退换货数 */ |
|||
@Excel(name = "退换货数") |
|||
private Integer refundsExchangesNum; |
|||
|
|||
/** 到货时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "到货时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date arrivedTime; |
|||
|
|||
/** 暂收时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "暂收时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date temporaryTime; |
|||
|
|||
/** 交付质检时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "交付质检时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date deliveryInspectionTime; |
|||
|
|||
/** 品质时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "品质时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date qualityTime; |
|||
|
|||
/** 入库时间 */ |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd") |
|||
private Date storageTime; |
|||
|
|||
/** 暂收备注 */ |
|||
@Excel(name = "暂收备注") |
|||
private String temporaryRemark; |
|||
|
|||
/** 暂收报告 */ |
|||
@Excel(name = "暂收报告") |
|||
private String temporaryReportUrl; |
|||
|
|||
public void setWarehouseStorageDetailId(Long warehouseStorageDetailId) |
|||
{ |
|||
this.warehouseStorageDetailId = warehouseStorageDetailId; |
|||
} |
|||
|
|||
public Long getWarehouseStorageDetailId() |
|||
{ |
|||
return warehouseStorageDetailId; |
|||
} |
|||
public void setWarehouseStorageCode(String warehouseStorageCode) |
|||
{ |
|||
this.warehouseStorageCode = warehouseStorageCode; |
|||
} |
|||
|
|||
public String getWarehouseStorageCode() |
|||
{ |
|||
return warehouseStorageCode; |
|||
} |
|||
public void setRelatedOrderCode(String relatedOrderCode) |
|||
{ |
|||
this.relatedOrderCode = relatedOrderCode; |
|||
} |
|||
|
|||
public String getRelatedOrderCode() |
|||
{ |
|||
return relatedOrderCode; |
|||
} |
|||
public void setWarehouseStorageStatus(String warehouseStorageStatus) |
|||
{ |
|||
this.warehouseStorageStatus = warehouseStorageStatus; |
|||
} |
|||
|
|||
public String getWarehouseStorageStatus() |
|||
{ |
|||
return warehouseStorageStatus; |
|||
} |
|||
public void setWarehouseQualityStatus(String warehouseQualityStatus) |
|||
{ |
|||
this.warehouseQualityStatus = warehouseQualityStatus; |
|||
} |
|||
|
|||
public String getWarehouseQualityStatus() |
|||
{ |
|||
return warehouseQualityStatus; |
|||
} |
|||
public void setWarehouseStorageType(String warehouseStorageType) |
|||
{ |
|||
this.warehouseStorageType = warehouseStorageType; |
|||
} |
|||
|
|||
public String getWarehouseStorageType() |
|||
{ |
|||
return warehouseStorageType; |
|||
} |
|||
public void setWarehouseStorageClass(String warehouseStorageClass) |
|||
{ |
|||
this.warehouseStorageClass = warehouseStorageClass; |
|||
} |
|||
|
|||
public String getWarehouseStorageClass() |
|||
{ |
|||
return warehouseStorageClass; |
|||
} |
|||
public void setWarehouseOrderType(String warehouseOrderType) |
|||
{ |
|||
this.warehouseOrderType = warehouseOrderType; |
|||
} |
|||
|
|||
public String getWarehouseOrderType() |
|||
{ |
|||
return warehouseOrderType; |
|||
} |
|||
public void setWarehouseDeptType(String warehouseDeptType) |
|||
{ |
|||
this.warehouseDeptType = warehouseDeptType; |
|||
} |
|||
|
|||
public String getWarehouseDeptType() |
|||
{ |
|||
return warehouseDeptType; |
|||
} |
|||
public void setWarehouseEmployee(String warehouseEmployee) |
|||
{ |
|||
this.warehouseEmployee = warehouseEmployee; |
|||
} |
|||
|
|||
public String getWarehouseEmployee() |
|||
{ |
|||
return warehouseEmployee; |
|||
} |
|||
public void setWarehouseCode(String warehouseCode) |
|||
{ |
|||
this.warehouseCode = warehouseCode; |
|||
} |
|||
|
|||
public String getWarehouseCode() |
|||
{ |
|||
return warehouseCode; |
|||
} |
|||
public void setWarehouseName(String warehouseName) |
|||
{ |
|||
this.warehouseName = warehouseName; |
|||
} |
|||
|
|||
public String getWarehouseName() |
|||
{ |
|||
return warehouseName; |
|||
} |
|||
public void setWarehouseDetailAddress(String warehouseDetailAddress) |
|||
{ |
|||
this.warehouseDetailAddress = warehouseDetailAddress; |
|||
} |
|||
|
|||
public String getWarehouseDetailAddress() |
|||
{ |
|||
return warehouseDetailAddress; |
|||
} |
|||
public void setSupplierCode(String supplierCode) |
|||
{ |
|||
this.supplierCode = supplierCode; |
|||
} |
|||
|
|||
public String getSupplierCode() |
|||
{ |
|||
return supplierCode; |
|||
} |
|||
public void setSupplierName(String supplierName) |
|||
{ |
|||
this.supplierName = supplierName; |
|||
} |
|||
|
|||
public String getSupplierName() |
|||
{ |
|||
return supplierName; |
|||
} |
|||
public void setCustomerContact(String customerContact) |
|||
{ |
|||
this.customerContact = customerContact; |
|||
} |
|||
|
|||
public String getCustomerContact() |
|||
{ |
|||
return customerContact; |
|||
} |
|||
public void setContactNumber(String contactNumber) |
|||
{ |
|||
this.contactNumber = contactNumber; |
|||
} |
|||
|
|||
public String getContactNumber() |
|||
{ |
|||
return contactNumber; |
|||
} |
|||
public void setSupplierAddress(String supplierAddress) |
|||
{ |
|||
this.supplierAddress = supplierAddress; |
|||
} |
|||
|
|||
public String getSupplierAddress() |
|||
{ |
|||
return supplierAddress; |
|||
} |
|||
public void setMaterialNo(String materialNo) |
|||
{ |
|||
this.materialNo = materialNo; |
|||
} |
|||
|
|||
public String getMaterialNo() |
|||
{ |
|||
return materialNo; |
|||
} |
|||
public void setMaterialName(String materialName) |
|||
{ |
|||
this.materialName = materialName; |
|||
} |
|||
|
|||
public String getMaterialName() |
|||
{ |
|||
return materialName; |
|||
} |
|||
public void setMaterialType(String materialType) |
|||
{ |
|||
this.materialType = materialType; |
|||
} |
|||
|
|||
public String getMaterialType() |
|||
{ |
|||
return materialType; |
|||
} |
|||
public void setMaterialPhotourl(String materialPhotourl) |
|||
{ |
|||
this.materialPhotourl = materialPhotourl; |
|||
} |
|||
|
|||
public String getMaterialPhotourl() |
|||
{ |
|||
return materialPhotourl; |
|||
} |
|||
public void setMaterialBrand(String materialBrand) |
|||
{ |
|||
this.materialBrand = materialBrand; |
|||
} |
|||
|
|||
public String getMaterialBrand() |
|||
{ |
|||
return materialBrand; |
|||
} |
|||
public void setMaterialUnit(String materialUnit) |
|||
{ |
|||
this.materialUnit = materialUnit; |
|||
} |
|||
|
|||
public String getMaterialUnit() |
|||
{ |
|||
return materialUnit; |
|||
} |
|||
public void setMaterialDescribe(String materialDescribe) |
|||
{ |
|||
this.materialDescribe = materialDescribe; |
|||
} |
|||
|
|||
public String getMaterialDescribe() |
|||
{ |
|||
return materialDescribe; |
|||
} |
|||
public void setMaterialProcessMethod(String materialProcessMethod) |
|||
{ |
|||
this.materialProcessMethod = materialProcessMethod; |
|||
} |
|||
|
|||
public String getMaterialProcessMethod() |
|||
{ |
|||
return materialProcessMethod; |
|||
} |
|||
public void setMaterialDeptType(String materialDeptType) |
|||
{ |
|||
this.materialDeptType = materialDeptType; |
|||
} |
|||
|
|||
public String getMaterialDeptType() |
|||
{ |
|||
return materialDeptType; |
|||
} |
|||
public void setMakeTotal(Integer makeTotal) |
|||
{ |
|||
this.makeTotal = makeTotal; |
|||
} |
|||
|
|||
public Integer getMakeTotal() |
|||
{ |
|||
return makeTotal; |
|||
} |
|||
public void setNotifyHasArrivedNum(Integer notifyHasArrivedNum) |
|||
{ |
|||
this.notifyHasArrivedNum = notifyHasArrivedNum; |
|||
} |
|||
|
|||
public Integer getNotifyHasArrivedNum() |
|||
{ |
|||
return notifyHasArrivedNum; |
|||
} |
|||
public void setNotifyArriveNum(Integer notifyArriveNum) |
|||
{ |
|||
this.notifyArriveNum = notifyArriveNum; |
|||
} |
|||
|
|||
public Integer getNotifyArriveNum() |
|||
{ |
|||
return notifyArriveNum; |
|||
} |
|||
public void setActualHasArrivedNum(Integer actualHasArrivedNum) |
|||
{ |
|||
this.actualHasArrivedNum = actualHasArrivedNum; |
|||
} |
|||
|
|||
public Integer getActualHasArrivedNum() |
|||
{ |
|||
return actualHasArrivedNum; |
|||
} |
|||
public void setActualArriveNum(Integer actualArriveNum) |
|||
{ |
|||
this.actualArriveNum = actualArriveNum; |
|||
} |
|||
|
|||
public Integer getActualArriveNum() |
|||
{ |
|||
return actualArriveNum; |
|||
} |
|||
public void setTemporaryHasQualifiedNum(Integer temporaryHasQualifiedNum) |
|||
{ |
|||
this.temporaryHasQualifiedNum = temporaryHasQualifiedNum; |
|||
} |
|||
|
|||
public Integer getTemporaryHasQualifiedNum() |
|||
{ |
|||
return temporaryHasQualifiedNum; |
|||
} |
|||
public void setTemporaryQualifiedNum(Integer temporaryQualifiedNum) |
|||
{ |
|||
this.temporaryQualifiedNum = temporaryQualifiedNum; |
|||
} |
|||
|
|||
public Integer getTemporaryQualifiedNum() |
|||
{ |
|||
return temporaryQualifiedNum; |
|||
} |
|||
public void setHasStorageNum(Integer hasStorageNum) |
|||
{ |
|||
this.hasStorageNum = hasStorageNum; |
|||
} |
|||
|
|||
public Integer getHasStorageNum() |
|||
{ |
|||
return hasStorageNum; |
|||
} |
|||
public void setStorageNum(Integer storageNum) |
|||
{ |
|||
this.storageNum = storageNum; |
|||
} |
|||
|
|||
public Integer getStorageNum() |
|||
{ |
|||
return storageNum; |
|||
} |
|||
public void setQualityHasQualifiedNum(Integer qualityHasQualifiedNum) |
|||
{ |
|||
this.qualityHasQualifiedNum = qualityHasQualifiedNum; |
|||
} |
|||
|
|||
public Integer getQualityHasQualifiedNum() |
|||
{ |
|||
return qualityHasQualifiedNum; |
|||
} |
|||
public void setQualityQualifiedNum(Integer qualityQualifiedNum) |
|||
{ |
|||
this.qualityQualifiedNum = qualityQualifiedNum; |
|||
} |
|||
|
|||
public Integer getQualityQualifiedNum() |
|||
{ |
|||
return qualityQualifiedNum; |
|||
} |
|||
public void setRefundsExchangesNum(Integer refundsExchangesNum) |
|||
{ |
|||
this.refundsExchangesNum = refundsExchangesNum; |
|||
} |
|||
|
|||
public Integer getRefundsExchangesNum() |
|||
{ |
|||
return refundsExchangesNum; |
|||
} |
|||
public void setArrivedTime(Date arrivedTime) |
|||
{ |
|||
this.arrivedTime = arrivedTime; |
|||
} |
|||
|
|||
public Date getArrivedTime() |
|||
{ |
|||
return arrivedTime; |
|||
} |
|||
public void setTemporaryTime(Date temporaryTime) |
|||
{ |
|||
this.temporaryTime = temporaryTime; |
|||
} |
|||
|
|||
public Date getTemporaryTime() |
|||
{ |
|||
return temporaryTime; |
|||
} |
|||
public void setDeliveryInspectionTime(Date deliveryInspectionTime) |
|||
{ |
|||
this.deliveryInspectionTime = deliveryInspectionTime; |
|||
} |
|||
|
|||
public Date getDeliveryInspectionTime() |
|||
{ |
|||
return deliveryInspectionTime; |
|||
} |
|||
public void setQualityTime(Date qualityTime) |
|||
{ |
|||
this.qualityTime = qualityTime; |
|||
} |
|||
|
|||
public Date getQualityTime() |
|||
{ |
|||
return qualityTime; |
|||
} |
|||
public void setStorageTime(Date storageTime) |
|||
{ |
|||
this.storageTime = storageTime; |
|||
} |
|||
|
|||
public Date getStorageTime() |
|||
{ |
|||
return storageTime; |
|||
} |
|||
public void setTemporaryRemark(String temporaryRemark) |
|||
{ |
|||
this.temporaryRemark = temporaryRemark; |
|||
} |
|||
|
|||
public String getTemporaryRemark() |
|||
{ |
|||
return temporaryRemark; |
|||
} |
|||
public void setTemporaryReportUrl(String temporaryReportUrl) |
|||
{ |
|||
this.temporaryReportUrl = temporaryReportUrl; |
|||
} |
|||
|
|||
public String getTemporaryReportUrl() |
|||
{ |
|||
return temporaryReportUrl; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) |
|||
.append("warehouseStorageDetailId", getWarehouseStorageDetailId()) |
|||
.append("warehouseStorageCode", getWarehouseStorageCode()) |
|||
.append("relatedOrderCode", getRelatedOrderCode()) |
|||
.append("warehouseStorageStatus", getWarehouseStorageStatus()) |
|||
.append("warehouseQualityStatus", getWarehouseQualityStatus()) |
|||
.append("warehouseStorageType", getWarehouseStorageType()) |
|||
.append("warehouseStorageClass", getWarehouseStorageClass()) |
|||
.append("warehouseOrderType", getWarehouseOrderType()) |
|||
.append("warehouseDeptType", getWarehouseDeptType()) |
|||
.append("warehouseEmployee", getWarehouseEmployee()) |
|||
.append("warehouseCode", getWarehouseCode()) |
|||
.append("warehouseName", getWarehouseName()) |
|||
.append("warehouseDetailAddress", getWarehouseDetailAddress()) |
|||
.append("supplierCode", getSupplierCode()) |
|||
.append("supplierName", getSupplierName()) |
|||
.append("customerContact", getCustomerContact()) |
|||
.append("contactNumber", getContactNumber()) |
|||
.append("supplierAddress", getSupplierAddress()) |
|||
.append("materialNo", getMaterialNo()) |
|||
.append("materialName", getMaterialName()) |
|||
.append("materialType", getMaterialType()) |
|||
.append("materialPhotourl", getMaterialPhotourl()) |
|||
.append("materialBrand", getMaterialBrand()) |
|||
.append("materialUnit", getMaterialUnit()) |
|||
.append("materialDescribe", getMaterialDescribe()) |
|||
.append("materialProcessMethod", getMaterialProcessMethod()) |
|||
.append("materialDeptType", getMaterialDeptType()) |
|||
.append("makeTotal", getMakeTotal()) |
|||
.append("notifyHasArrivedNum", getNotifyHasArrivedNum()) |
|||
.append("notifyArriveNum", getNotifyArriveNum()) |
|||
.append("actualHasArrivedNum", getActualHasArrivedNum()) |
|||
.append("actualArriveNum", getActualArriveNum()) |
|||
.append("temporaryHasQualifiedNum", getTemporaryHasQualifiedNum()) |
|||
.append("temporaryQualifiedNum", getTemporaryQualifiedNum()) |
|||
.append("hasStorageNum", getHasStorageNum()) |
|||
.append("storageNum", getStorageNum()) |
|||
.append("qualityHasQualifiedNum", getQualityHasQualifiedNum()) |
|||
.append("qualityQualifiedNum", getQualityQualifiedNum()) |
|||
.append("refundsExchangesNum", getRefundsExchangesNum()) |
|||
.append("arrivedTime", getArrivedTime()) |
|||
.append("temporaryTime", getTemporaryTime()) |
|||
.append("deliveryInspectionTime", getDeliveryInspectionTime()) |
|||
.append("qualityTime", getQualityTime()) |
|||
.append("storageTime", getStorageTime()) |
|||
.append("temporaryRemark", getTemporaryRemark()) |
|||
.append("temporaryReportUrl", getTemporaryReportUrl()) |
|||
.append("createTime", getCreateTime()) |
|||
.append("createBy", getCreateBy()) |
|||
.append("updateBy", getUpdateBy()) |
|||
.append("updateTime", getUpdateTime()) |
|||
.toString(); |
|||
} |
|||
} |
@ -0,0 +1,83 @@ |
|||
package com.ruoyi.warehouse.mapper; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.warehouse.domain.WarehouseStorageOrderDetail; |
|||
|
|||
/** |
|||
* 仓库入库单详情Mapper接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-29 |
|||
*/ |
|||
public interface WarehouseStorageOrderDetailMapper |
|||
{ |
|||
/** |
|||
* 查询仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 仓库入库单详情 |
|||
*/ |
|||
public WarehouseStorageOrderDetail selectWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 查询仓库入库单详情列表 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 仓库入库单详情集合 |
|||
*/ |
|||
public List<WarehouseStorageOrderDetail> selectWarehouseStorageOrderDetailList(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 新增仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 修改仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 删除仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 批量删除仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailIds 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseStorageOrderDetailByIds(String[] warehouseStorageDetailIds); |
|||
|
|||
/** |
|||
* 作废仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int cancelWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 恢复仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int restoreWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
|
|||
/* |
|||
* 根据入库单号查询入库单详情列表 |
|||
* */ |
|||
List<WarehouseStorageOrderDetail> selectStorageOrderDetailListByCode(String warehouseStorageCode); |
|||
} |
@ -0,0 +1,80 @@ |
|||
package com.ruoyi.warehouse.service; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.warehouse.domain.WarehouseStorageOrderDetail; |
|||
|
|||
/** |
|||
* 仓库入库单详情Service接口 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-29 |
|||
*/ |
|||
public interface IWarehouseStorageOrderDetailService |
|||
{ |
|||
/** |
|||
* 查询仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 仓库入库单详情 |
|||
*/ |
|||
public WarehouseStorageOrderDetail selectWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 查询仓库入库单详情列表 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 仓库入库单详情集合 |
|||
*/ |
|||
public List<WarehouseStorageOrderDetail> selectWarehouseStorageOrderDetailList(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 新增仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int insertWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 修改仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
public int updateWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail); |
|||
|
|||
/** |
|||
* 批量删除仓库入库单详情 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseStorageOrderDetailByIds(String ids); |
|||
|
|||
/** |
|||
* 删除仓库入库单详情信息 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
public int deleteWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 作废仓库入库单详情 |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return |
|||
*/ |
|||
int cancelWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/** |
|||
* 恢复仓库入库单详情 |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return |
|||
*/ |
|||
int restoreWarehouseStorageOrderDetailById(Long warehouseStorageDetailId); |
|||
|
|||
/* |
|||
* 根据入库单号查询入库单详情列表 |
|||
* */ |
|||
List<WarehouseStorageOrderDetail> selectStorageOrderDetailListByCode(String warehouseStorageCode); |
|||
} |
@ -0,0 +1,135 @@ |
|||
package com.ruoyi.warehouse.service.impl; |
|||
|
|||
import java.util.List; |
|||
import com.ruoyi.common.utils.DateUtils; |
|||
import com.ruoyi.common.utils.ShiroUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import com.ruoyi.warehouse.mapper.WarehouseStorageOrderDetailMapper; |
|||
import com.ruoyi.warehouse.domain.WarehouseStorageOrderDetail; |
|||
import com.ruoyi.warehouse.service.IWarehouseStorageOrderDetailService; |
|||
import com.ruoyi.common.core.text.Convert; |
|||
|
|||
/** |
|||
* 仓库入库单详情Service业务层处理 |
|||
* |
|||
* @author 刘晓旭 |
|||
* @date 2024-05-29 |
|||
*/ |
|||
@Service |
|||
public class WarehouseStorageOrderDetailServiceImpl implements IWarehouseStorageOrderDetailService |
|||
{ |
|||
@Autowired |
|||
private WarehouseStorageOrderDetailMapper warehouseStorageOrderDetailMapper; |
|||
|
|||
/** |
|||
* 查询仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 仓库入库单详情 |
|||
*/ |
|||
@Override |
|||
public WarehouseStorageOrderDetail selectWarehouseStorageOrderDetailById(Long warehouseStorageDetailId) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.selectWarehouseStorageOrderDetailById(warehouseStorageDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 查询仓库入库单详情列表 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 仓库入库单详情 |
|||
*/ |
|||
@Override |
|||
public List<WarehouseStorageOrderDetail> selectWarehouseStorageOrderDetailList(WarehouseStorageOrderDetail warehouseStorageOrderDetail) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.selectWarehouseStorageOrderDetailList(warehouseStorageOrderDetail); |
|||
} |
|||
|
|||
/** |
|||
* 新增仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int insertWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail) |
|||
{ |
|||
warehouseStorageOrderDetail.setCreateTime(DateUtils.getNowDate()); |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseStorageOrderDetail.setCreateBy(loginName); |
|||
return warehouseStorageOrderDetailMapper.insertWarehouseStorageOrderDetail(warehouseStorageOrderDetail); |
|||
} |
|||
|
|||
/** |
|||
* 修改仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageOrderDetail 仓库入库单详情 |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int updateWarehouseStorageOrderDetail(WarehouseStorageOrderDetail warehouseStorageOrderDetail) |
|||
{ |
|||
String loginName = ShiroUtils.getLoginName(); |
|||
warehouseStorageOrderDetail.setUpdateBy(loginName); |
|||
warehouseStorageOrderDetail.setUpdateTime(DateUtils.getNowDate()); |
|||
return warehouseStorageOrderDetailMapper.updateWarehouseStorageOrderDetail(warehouseStorageOrderDetail); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库入库单详情对象 |
|||
* |
|||
* @param ids 需要删除的数据ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseStorageOrderDetailByIds(String ids) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.deleteWarehouseStorageOrderDetailByIds(Convert.toStrArray(ids)); |
|||
} |
|||
|
|||
/** |
|||
* 删除仓库入库单详情信息 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int deleteWarehouseStorageOrderDetailById(Long warehouseStorageDetailId) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.deleteWarehouseStorageOrderDetailById(warehouseStorageDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 作废仓库入库单详情 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int cancelWarehouseStorageOrderDetailById(Long warehouseStorageDetailId) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.cancelWarehouseStorageOrderDetailById(warehouseStorageDetailId); |
|||
} |
|||
|
|||
/** |
|||
* 恢复仓库入库单详情信息 |
|||
* |
|||
* @param warehouseStorageDetailId 仓库入库单详情ID |
|||
* @return 结果 |
|||
*/ |
|||
@Override |
|||
public int restoreWarehouseStorageOrderDetailById(Long warehouseStorageDetailId) |
|||
{ |
|||
return warehouseStorageOrderDetailMapper.restoreWarehouseStorageOrderDetailById(warehouseStorageDetailId); |
|||
} |
|||
|
|||
/* |
|||
* 根据入库单号查询入库单详情列表 |
|||
* */ |
|||
@Override |
|||
public List<WarehouseStorageOrderDetail> selectStorageOrderDetailListByCode(String warehouseStorageCode) { |
|||
|
|||
return warehouseStorageOrderDetailMapper.selectStorageOrderDetailListByCode(warehouseStorageCode); |
|||
} |
|||
} |
@ -0,0 +1,262 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE mapper |
|||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ruoyi.warehouse.mapper.WarehouseStorageOrderDetailMapper"> |
|||
|
|||
<resultMap type="WarehouseStorageOrderDetail" id="WarehouseStorageOrderDetailResult"> |
|||
<result property="warehouseStorageDetailId" column="warehouse_storage_detail_id" /> |
|||
<result property="warehouseStorageCode" column="warehouse_storage_code" /> |
|||
<result property="relatedOrderCode" column="related_order_code" /> |
|||
<result property="warehouseStorageStatus" column="warehouse_storage_status" /> |
|||
<result property="warehouseQualityStatus" column="warehouse_quality_status" /> |
|||
<result property="warehouseStorageType" column="warehouse_storage_type" /> |
|||
<result property="warehouseStorageClass" column="warehouse_storage_class" /> |
|||
<result property="warehouseOrderType" column="warehouse_order_type" /> |
|||
<result property="warehouseDeptType" column="warehouse_dept_type" /> |
|||
<result property="warehouseEmployee" column="warehouse_employee" /> |
|||
<result property="warehouseCode" column="warehouse_code" /> |
|||
<result property="warehouseName" column="warehouse_name" /> |
|||
<result property="warehouseDetailAddress" column="warehouse_detail_address" /> |
|||
<result property="supplierCode" column="supplier_code" /> |
|||
<result property="supplierName" column="supplier_name" /> |
|||
<result property="customerContact" column="customer_contact" /> |
|||
<result property="contactNumber" column="contact_number" /> |
|||
<result property="supplierAddress" column="supplier_address" /> |
|||
<result property="materialNo" column="material_no" /> |
|||
<result property="materialName" column="material_name" /> |
|||
<result property="materialType" column="material_type" /> |
|||
<result property="materialPhotourl" column="material_photoUrl" /> |
|||
<result property="materialBrand" column="material_brand" /> |
|||
<result property="materialUnit" column="material_unit" /> |
|||
<result property="materialDescribe" column="material_describe" /> |
|||
<result property="materialProcessMethod" column="material_process_method" /> |
|||
<result property="materialDeptType" column="material_dept_type" /> |
|||
<result property="makeTotal" column="make_total" /> |
|||
<result property="notifyHasArrivedNum" column="notify_has_arrived_num" /> |
|||
<result property="notifyArriveNum" column="notify_arrive_num" /> |
|||
<result property="actualHasArrivedNum" column="actual_has_arrived_num" /> |
|||
<result property="actualArriveNum" column="actual_arrive_num" /> |
|||
<result property="temporaryHasQualifiedNum" column="temporary_has_qualified_num" /> |
|||
<result property="temporaryQualifiedNum" column="temporary_qualified_num" /> |
|||
<result property="hasStorageNum" column="has_storage_num" /> |
|||
<result property="storageNum" column="storage_num" /> |
|||
<result property="qualityHasQualifiedNum" column="quality_has_qualified_num" /> |
|||
<result property="qualityQualifiedNum" column="quality_qualified_num" /> |
|||
<result property="refundsExchangesNum" column="refunds_exchanges_num" /> |
|||
<result property="arrivedTime" column="arrived_time" /> |
|||
<result property="temporaryTime" column="temporary_time" /> |
|||
<result property="deliveryInspectionTime" column="delivery_inspection_time" /> |
|||
<result property="qualityTime" column="quality_time" /> |
|||
<result property="storageTime" column="storage_time" /> |
|||
<result property="temporaryRemark" column="temporary_remark" /> |
|||
<result property="temporaryReportUrl" column="temporary_report_url" /> |
|||
<result property="createTime" column="create_time" /> |
|||
<result property="createBy" column="create_by" /> |
|||
<result property="updateBy" column="update_by" /> |
|||
<result property="updateTime" column="update_time" /> |
|||
</resultMap> |
|||
|
|||
<sql id="selectWarehouseStorageOrderDetailVo"> |
|||
select warehouse_storage_detail_id, warehouse_storage_code, related_order_code, warehouse_storage_status, warehouse_quality_status, warehouse_storage_type, warehouse_storage_class, warehouse_order_type, warehouse_dept_type, warehouse_employee, warehouse_code, warehouse_name, warehouse_detail_address, supplier_code, supplier_name, customer_contact, contact_number, supplier_address, material_no, material_name, material_type, material_photoUrl, material_brand, material_unit, material_describe, material_process_method, material_dept_type, make_total, notify_has_arrived_num, notify_arrive_num, actual_has_arrived_num, actual_arrive_num, temporary_has_qualified_num, temporary_qualified_num, has_storage_num, storage_num, quality_has_qualified_num, quality_qualified_num, refunds_exchanges_num, arrived_time, temporary_time, delivery_inspection_time, quality_time, storage_time, temporary_remark, temporary_report_url, create_time, create_by, update_by, update_time from warehouse_storage_order_detail |
|||
</sql> |
|||
|
|||
<select id="selectWarehouseStorageOrderDetailList" parameterType="WarehouseStorageOrderDetail" resultMap="WarehouseStorageOrderDetailResult"> |
|||
<include refid="selectWarehouseStorageOrderDetailVo"/> |
|||
<where> |
|||
</where> |
|||
</select> |
|||
|
|||
<select id="selectWarehouseStorageOrderDetailById" parameterType="Long" resultMap="WarehouseStorageOrderDetailResult"> |
|||
<include refid="selectWarehouseStorageOrderDetailVo"/> |
|||
where warehouse_storage_detail_id = #{warehouseStorageDetailId} |
|||
</select> |
|||
|
|||
<select id="selectStorageOrderDetailListByCode" parameterType="String" resultMap="WarehouseStorageOrderDetailResult"> |
|||
<include refid="selectWarehouseStorageOrderDetailVo"/> |
|||
where warehouse_storage_code = #{warehouseStorageCode} |
|||
</select> |
|||
|
|||
|
|||
<insert id="insertWarehouseStorageOrderDetail" parameterType="WarehouseStorageOrderDetail" useGeneratedKeys="true" keyProperty="warehouseStorageDetailId"> |
|||
insert into warehouse_storage_order_detail |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="warehouseStorageCode != null">warehouse_storage_code,</if> |
|||
<if test="relatedOrderCode != null">related_order_code,</if> |
|||
<if test="warehouseStorageStatus != null">warehouse_storage_status,</if> |
|||
<if test="warehouseQualityStatus != null">warehouse_quality_status,</if> |
|||
<if test="warehouseStorageType != null">warehouse_storage_type,</if> |
|||
<if test="warehouseStorageClass != null">warehouse_storage_class,</if> |
|||
<if test="warehouseOrderType != null">warehouse_order_type,</if> |
|||
<if test="warehouseDeptType != null">warehouse_dept_type,</if> |
|||
<if test="warehouseEmployee != null">warehouse_employee,</if> |
|||
<if test="warehouseCode != null">warehouse_code,</if> |
|||
<if test="warehouseName != null">warehouse_name,</if> |
|||
<if test="warehouseDetailAddress != null">warehouse_detail_address,</if> |
|||
<if test="supplierCode != null">supplier_code,</if> |
|||
<if test="supplierName != null">supplier_name,</if> |
|||
<if test="customerContact != null">customer_contact,</if> |
|||
<if test="contactNumber != null">contact_number,</if> |
|||
<if test="supplierAddress != null">supplier_address,</if> |
|||
<if test="materialNo != null">material_no,</if> |
|||
<if test="materialName != null">material_name,</if> |
|||
<if test="materialType != null">material_type,</if> |
|||
<if test="materialPhotourl != null">material_photoUrl,</if> |
|||
<if test="materialBrand != null">material_brand,</if> |
|||
<if test="materialUnit != null">material_unit,</if> |
|||
<if test="materialDescribe != null">material_describe,</if> |
|||
<if test="materialProcessMethod != null">material_process_method,</if> |
|||
<if test="materialDeptType != null">material_dept_type,</if> |
|||
<if test="makeTotal != null">make_total,</if> |
|||
<if test="notifyHasArrivedNum != null">notify_has_arrived_num,</if> |
|||
<if test="notifyArriveNum != null">notify_arrive_num,</if> |
|||
<if test="actualHasArrivedNum != null">actual_has_arrived_num,</if> |
|||
<if test="actualArriveNum != null">actual_arrive_num,</if> |
|||
<if test="temporaryHasQualifiedNum != null">temporary_has_qualified_num,</if> |
|||
<if test="temporaryQualifiedNum != null">temporary_qualified_num,</if> |
|||
<if test="hasStorageNum != null">has_storage_num,</if> |
|||
<if test="storageNum != null">storage_num,</if> |
|||
<if test="qualityHasQualifiedNum != null">quality_has_qualified_num,</if> |
|||
<if test="qualityQualifiedNum != null">quality_qualified_num,</if> |
|||
<if test="refundsExchangesNum != null">refunds_exchanges_num,</if> |
|||
<if test="arrivedTime != null">arrived_time,</if> |
|||
<if test="temporaryTime != null">temporary_time,</if> |
|||
<if test="deliveryInspectionTime != null">delivery_inspection_time,</if> |
|||
<if test="qualityTime != null">quality_time,</if> |
|||
<if test="storageTime != null">storage_time,</if> |
|||
<if test="temporaryRemark != null">temporary_remark,</if> |
|||
<if test="temporaryReportUrl != null">temporary_report_url,</if> |
|||
<if test="createTime != null">create_time,</if> |
|||
<if test="createBy != null">create_by,</if> |
|||
<if test="updateBy != null">update_by,</if> |
|||
<if test="updateTime != null">update_time,</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="warehouseStorageCode != null">#{warehouseStorageCode},</if> |
|||
<if test="relatedOrderCode != null">#{relatedOrderCode},</if> |
|||
<if test="warehouseStorageStatus != null">#{warehouseStorageStatus},</if> |
|||
<if test="warehouseQualityStatus != null">#{warehouseQualityStatus},</if> |
|||
<if test="warehouseStorageType != null">#{warehouseStorageType},</if> |
|||
<if test="warehouseStorageClass != null">#{warehouseStorageClass},</if> |
|||
<if test="warehouseOrderType != null">#{warehouseOrderType},</if> |
|||
<if test="warehouseDeptType != null">#{warehouseDeptType},</if> |
|||
<if test="warehouseEmployee != null">#{warehouseEmployee},</if> |
|||
<if test="warehouseCode != null">#{warehouseCode},</if> |
|||
<if test="warehouseName != null">#{warehouseName},</if> |
|||
<if test="warehouseDetailAddress != null">#{warehouseDetailAddress},</if> |
|||
<if test="supplierCode != null">#{supplierCode},</if> |
|||
<if test="supplierName != null">#{supplierName},</if> |
|||
<if test="customerContact != null">#{customerContact},</if> |
|||
<if test="contactNumber != null">#{contactNumber},</if> |
|||
<if test="supplierAddress != null">#{supplierAddress},</if> |
|||
<if test="materialNo != null">#{materialNo},</if> |
|||
<if test="materialName != null">#{materialName},</if> |
|||
<if test="materialType != null">#{materialType},</if> |
|||
<if test="materialPhotourl != null">#{materialPhotourl},</if> |
|||
<if test="materialBrand != null">#{materialBrand},</if> |
|||
<if test="materialUnit != null">#{materialUnit},</if> |
|||
<if test="materialDescribe != null">#{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">#{materialProcessMethod},</if> |
|||
<if test="materialDeptType != null">#{materialDeptType},</if> |
|||
<if test="makeTotal != null">#{makeTotal},</if> |
|||
<if test="notifyHasArrivedNum != null">#{notifyHasArrivedNum},</if> |
|||
<if test="notifyArriveNum != null">#{notifyArriveNum},</if> |
|||
<if test="actualHasArrivedNum != null">#{actualHasArrivedNum},</if> |
|||
<if test="actualArriveNum != null">#{actualArriveNum},</if> |
|||
<if test="temporaryHasQualifiedNum != null">#{temporaryHasQualifiedNum},</if> |
|||
<if test="temporaryQualifiedNum != null">#{temporaryQualifiedNum},</if> |
|||
<if test="hasStorageNum != null">#{hasStorageNum},</if> |
|||
<if test="storageNum != null">#{storageNum},</if> |
|||
<if test="qualityHasQualifiedNum != null">#{qualityHasQualifiedNum},</if> |
|||
<if test="qualityQualifiedNum != null">#{qualityQualifiedNum},</if> |
|||
<if test="refundsExchangesNum != null">#{refundsExchangesNum},</if> |
|||
<if test="arrivedTime != null">#{arrivedTime},</if> |
|||
<if test="temporaryTime != null">#{temporaryTime},</if> |
|||
<if test="deliveryInspectionTime != null">#{deliveryInspectionTime},</if> |
|||
<if test="qualityTime != null">#{qualityTime},</if> |
|||
<if test="storageTime != null">#{storageTime},</if> |
|||
<if test="temporaryRemark != null">#{temporaryRemark},</if> |
|||
<if test="temporaryReportUrl != null">#{temporaryReportUrl},</if> |
|||
<if test="createTime != null">#{createTime},</if> |
|||
<if test="createBy != null">#{createBy},</if> |
|||
<if test="updateBy != null">#{updateBy},</if> |
|||
<if test="updateTime != null">#{updateTime},</if> |
|||
</trim> |
|||
</insert> |
|||
|
|||
<update id="updateWarehouseStorageOrderDetail" parameterType="WarehouseStorageOrderDetail"> |
|||
update warehouse_storage_order_detail |
|||
<trim prefix="SET" suffixOverrides=","> |
|||
<if test="warehouseStorageCode != null">warehouse_storage_code = #{warehouseStorageCode},</if> |
|||
<if test="relatedOrderCode != null">related_order_code = #{relatedOrderCode},</if> |
|||
<if test="warehouseStorageStatus != null">warehouse_storage_status = #{warehouseStorageStatus},</if> |
|||
<if test="warehouseQualityStatus != null">warehouse_quality_status = #{warehouseQualityStatus},</if> |
|||
<if test="warehouseStorageType != null">warehouse_storage_type = #{warehouseStorageType},</if> |
|||
<if test="warehouseStorageClass != null">warehouse_storage_class = #{warehouseStorageClass},</if> |
|||
<if test="warehouseOrderType != null">warehouse_order_type = #{warehouseOrderType},</if> |
|||
<if test="warehouseDeptType != null">warehouse_dept_type = #{warehouseDeptType},</if> |
|||
<if test="warehouseEmployee != null">warehouse_employee = #{warehouseEmployee},</if> |
|||
<if test="warehouseCode != null">warehouse_code = #{warehouseCode},</if> |
|||
<if test="warehouseName != null">warehouse_name = #{warehouseName},</if> |
|||
<if test="warehouseDetailAddress != null">warehouse_detail_address = #{warehouseDetailAddress},</if> |
|||
<if test="supplierCode != null">supplier_code = #{supplierCode},</if> |
|||
<if test="supplierName != null">supplier_name = #{supplierName},</if> |
|||
<if test="customerContact != null">customer_contact = #{customerContact},</if> |
|||
<if test="contactNumber != null">contact_number = #{contactNumber},</if> |
|||
<if test="supplierAddress != null">supplier_address = #{supplierAddress},</if> |
|||
<if test="materialNo != null">material_no = #{materialNo},</if> |
|||
<if test="materialName != null">material_name = #{materialName},</if> |
|||
<if test="materialType != null">material_type = #{materialType},</if> |
|||
<if test="materialPhotourl != null">material_photoUrl = #{materialPhotourl},</if> |
|||
<if test="materialBrand != null">material_brand = #{materialBrand},</if> |
|||
<if test="materialUnit != null">material_unit = #{materialUnit},</if> |
|||
<if test="materialDescribe != null">material_describe = #{materialDescribe},</if> |
|||
<if test="materialProcessMethod != null">material_process_method = #{materialProcessMethod},</if> |
|||
<if test="materialDeptType != null">material_dept_type = #{materialDeptType},</if> |
|||
<if test="makeTotal != null">make_total = #{makeTotal},</if> |
|||
<if test="notifyHasArrivedNum != null">notify_has_arrived_num = #{notifyHasArrivedNum},</if> |
|||
<if test="notifyArriveNum != null">notify_arrive_num = #{notifyArriveNum},</if> |
|||
<if test="actualHasArrivedNum != null">actual_has_arrived_num = #{actualHasArrivedNum},</if> |
|||
<if test="actualArriveNum != null">actual_arrive_num = #{actualArriveNum},</if> |
|||
<if test="temporaryHasQualifiedNum != null">temporary_has_qualified_num = #{temporaryHasQualifiedNum},</if> |
|||
<if test="temporaryQualifiedNum != null">temporary_qualified_num = #{temporaryQualifiedNum},</if> |
|||
<if test="hasStorageNum != null">has_storage_num = #{hasStorageNum},</if> |
|||
<if test="storageNum != null">storage_num = #{storageNum},</if> |
|||
<if test="qualityHasQualifiedNum != null">quality_has_qualified_num = #{qualityHasQualifiedNum},</if> |
|||
<if test="qualityQualifiedNum != null">quality_qualified_num = #{qualityQualifiedNum},</if> |
|||
<if test="refundsExchangesNum != null">refunds_exchanges_num = #{refundsExchangesNum},</if> |
|||
<if test="arrivedTime != null">arrived_time = #{arrivedTime},</if> |
|||
<if test="temporaryTime != null">temporary_time = #{temporaryTime},</if> |
|||
<if test="deliveryInspectionTime != null">delivery_inspection_time = #{deliveryInspectionTime},</if> |
|||
<if test="qualityTime != null">quality_time = #{qualityTime},</if> |
|||
<if test="storageTime != null">storage_time = #{storageTime},</if> |
|||
<if test="temporaryRemark != null">temporary_remark = #{temporaryRemark},</if> |
|||
<if test="temporaryReportUrl != null">temporary_report_url = #{temporaryReportUrl},</if> |
|||
<if test="createTime != null">create_time = #{createTime},</if> |
|||
<if test="createBy != null">create_by = #{createBy},</if> |
|||
<if test="updateBy != null">update_by = #{updateBy},</if> |
|||
<if test="updateTime != null">update_time = #{updateTime},</if> |
|||
</trim> |
|||
where warehouse_storage_detail_id = #{warehouseStorageDetailId} |
|||
</update> |
|||
|
|||
<delete id="deleteWarehouseStorageOrderDetailById" parameterType="Long"> |
|||
delete from warehouse_storage_order_detail where warehouse_storage_detail_id = #{warehouseStorageDetailId} |
|||
</delete> |
|||
|
|||
<delete id="deleteWarehouseStorageOrderDetailByIds" parameterType="String"> |
|||
delete from warehouse_storage_order_detail where warehouse_storage_detail_id in |
|||
<foreach item="warehouseStorageDetailId" collection="array" open="(" separator="," close=")"> |
|||
#{warehouseStorageDetailId} |
|||
</foreach> |
|||
</delete> |
|||
|
|||
<update id="cancelWarehouseStorageOrderDetailById" parameterType="Long"> |
|||
update warehouse_storage_order_detail set del_flag = '1' where warehouse_storage_detail_id = #{warehouseStorageDetailId} |
|||
</update> |
|||
|
|||
<update id="restoreWarehouseStorageOrderDetailById" parameterType="Long"> |
|||
update warehouse_storage_order_detail set del_flag = '0' where warehouse_storage_detail_id = #{warehouseStorageDetailId} |
|||
</update> |
|||
|
|||
</mapper> |
Loading…
Reference in new issue