forked from sfms3.0/sfms3.0
20 changed files with 1449 additions and 91 deletions
@ -0,0 +1,171 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Base VO,提供给添加、修改、详细的子 VO 使用 |
||||
|
* 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PurchaseshortageDetailBaseVO { |
||||
|
|
||||
|
@Schema(description = "从包装号", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "从包装号不能为空") |
||||
|
private String fromPackingNumber; |
||||
|
|
||||
|
@Schema(description = "到包装号", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "到包装号不能为空") |
||||
|
private String toPackingNumber; |
||||
|
|
||||
|
@Schema(description = "从器具号") |
||||
|
private String fromContainerNumber; |
||||
|
|
||||
|
@Schema(description = "到器具号") |
||||
|
private String toContainerNumber; |
||||
|
|
||||
|
@Schema(description = "从批次") |
||||
|
private String fromBatch; |
||||
|
|
||||
|
@Schema(description = "替代批次") |
||||
|
private String altBatch; |
||||
|
|
||||
|
@Schema(description = "到货日期", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "到货日期不能为空") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime arriveDate; |
||||
|
|
||||
|
@Schema(description = "生产日期", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "生产日期不能为空") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime produceDate; |
||||
|
|
||||
|
@Schema(description = "过期日期", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "过期日期不能为空") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime expireDate; |
||||
|
|
||||
|
@Schema(description = "库存状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
||||
|
@NotNull(message = "库存状态不能为空") |
||||
|
private String inventoryStatus; |
||||
|
|
||||
|
@Schema(description = "从库位代码") |
||||
|
private String fromLocationCode; |
||||
|
|
||||
|
@Schema(description = "到库位代码") |
||||
|
private String toLocationCode; |
||||
|
|
||||
|
@Schema(description = "从库位组代码") |
||||
|
private String fromLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "到库位组代码") |
||||
|
private String toLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "从库区代码") |
||||
|
private String fromAreaCodes; |
||||
|
|
||||
|
@Schema(description = "到库区代码") |
||||
|
private String toAreaCodes; |
||||
|
|
||||
|
@Schema(description = "订单号", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "订单号不能为空") |
||||
|
private String poNumber; |
||||
|
|
||||
|
@Schema(description = "订单行", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "订单行不能为空") |
||||
|
private String poLine; |
||||
|
|
||||
|
@Schema(description = "标包数量", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "标包数量不能为空") |
||||
|
private BigDecimal stdPackQty; |
||||
|
|
||||
|
@Schema(description = "标包单位", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "标包单位不能为空") |
||||
|
private String stdPackUnit; |
||||
|
|
||||
|
@Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "数量不能为空") |
||||
|
private BigDecimal qty; |
||||
|
|
||||
|
@Schema(description = "单位") |
||||
|
private String uom; |
||||
|
|
||||
|
@Schema(description = "供应商计量数量") |
||||
|
private BigDecimal supplierQty; |
||||
|
|
||||
|
@Schema(description = "供应商计量单位") |
||||
|
private String supplierUom; |
||||
|
|
||||
|
@Schema(description = "转换率") |
||||
|
private BigDecimal convertRate; |
||||
|
|
||||
|
@Schema(description = "目检结果") |
||||
|
private String visualInspectResult; |
||||
|
|
||||
|
@Schema(description = "目检照片") |
||||
|
private String visualInspectPhotos; |
||||
|
|
||||
|
@Schema(description = "不合格原因", example = "不对") |
||||
|
private String failedReason; |
||||
|
|
||||
|
@Schema(description = "单价", example = "25384") |
||||
|
private BigDecimal singlePrice; |
||||
|
|
||||
|
@Schema(description = "金额") |
||||
|
private BigDecimal amount; |
||||
|
|
||||
|
@Schema(description = "任务明细ID", example = "20190") |
||||
|
private String jobDetailId; |
||||
|
|
||||
|
@Schema(description = "物品代码", requiredMode = Schema.RequiredMode.REQUIRED) |
||||
|
@NotNull(message = "物品代码不能为空") |
||||
|
private String itemCode; |
||||
|
|
||||
|
@Schema(description = "物品名称", example = "赵六") |
||||
|
private String itemName; |
||||
|
|
||||
|
@Schema(description = "物品描述1") |
||||
|
private String itemDesc1; |
||||
|
|
||||
|
@Schema(description = "物品描述2") |
||||
|
private String itemDesc2; |
||||
|
|
||||
|
@Schema(description = "主表ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "30925") |
||||
|
@NotNull(message = "主表ID不能为空") |
||||
|
private Long masterId; |
||||
|
|
||||
|
@Schema(description = "单据号") |
||||
|
private String number; |
||||
|
|
||||
|
@Schema(description = "备注", example = "随便") |
||||
|
private String remark; |
||||
|
|
||||
|
@Schema(description = "地点ID", example = "25612") |
||||
|
private String siteId; |
||||
|
|
||||
|
@Schema(description = "项目代码") |
||||
|
private String projectCode; |
||||
|
|
||||
|
@Schema(description = "代码") |
||||
|
private String code; |
||||
|
|
||||
|
@Schema(description = "接口类型", example = "1") |
||||
|
private String interfaceType; |
||||
|
|
||||
|
@Schema(description = "从货主代码") |
||||
|
private String fromOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到货主代码") |
||||
|
private String toOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到批次") |
||||
|
private String toBatch; |
||||
|
|
||||
|
} |
@ -0,0 +1,14 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
import lombok.ToString; |
||||
|
|
||||
|
@Schema(description = "管理后台 - 采购收货记录子创建 Request VO") |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@ToString(callSuper = true) |
||||
|
public class PurchaseshortageDetailCreateReqVO extends PurchaseshortageDetailBaseVO { |
||||
|
|
||||
|
} |
@ -0,0 +1,158 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import com.alibaba.excel.annotation.ExcelProperty; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Excel VO |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class PurchaseshortageDetailExcelVO { |
||||
|
|
||||
|
@ExcelProperty("id") |
||||
|
private Long id; |
||||
|
|
||||
|
@ExcelProperty("从包装号") |
||||
|
private String fromPackingNumber; |
||||
|
|
||||
|
@ExcelProperty("到包装号") |
||||
|
private String toPackingNumber; |
||||
|
|
||||
|
@ExcelProperty("从器具号") |
||||
|
private String fromContainerNumber; |
||||
|
|
||||
|
@ExcelProperty("到器具号") |
||||
|
private String toContainerNumber; |
||||
|
|
||||
|
@ExcelProperty("从批次") |
||||
|
private String fromBatch; |
||||
|
|
||||
|
@ExcelProperty("替代批次") |
||||
|
private String altBatch; |
||||
|
|
||||
|
@ExcelProperty("到货日期") |
||||
|
private LocalDateTime arriveDate; |
||||
|
|
||||
|
@ExcelProperty("生产日期") |
||||
|
private LocalDateTime produceDate; |
||||
|
|
||||
|
@ExcelProperty("过期日期") |
||||
|
private LocalDateTime expireDate; |
||||
|
|
||||
|
@ExcelProperty("库存状态") |
||||
|
private String inventoryStatus; |
||||
|
|
||||
|
@ExcelProperty("从库位代码") |
||||
|
private String fromLocationCode; |
||||
|
|
||||
|
@ExcelProperty("到库位代码") |
||||
|
private String toLocationCode; |
||||
|
|
||||
|
@ExcelProperty("从库位组代码") |
||||
|
private String fromLocationGroupCode; |
||||
|
|
||||
|
@ExcelProperty("到库位组代码") |
||||
|
private String toLocationGroupCode; |
||||
|
|
||||
|
@ExcelProperty("从库区代码") |
||||
|
private String fromAreaCodes; |
||||
|
|
||||
|
@ExcelProperty("到库区代码") |
||||
|
private String toAreaCodes; |
||||
|
|
||||
|
@ExcelProperty("订单号") |
||||
|
private String poNumber; |
||||
|
|
||||
|
@ExcelProperty("订单行") |
||||
|
private String poLine; |
||||
|
|
||||
|
@ExcelProperty("标包数量") |
||||
|
private BigDecimal stdPackQty; |
||||
|
|
||||
|
@ExcelProperty("标包单位") |
||||
|
private String stdPackUnit; |
||||
|
|
||||
|
@ExcelProperty("数量") |
||||
|
private BigDecimal qty; |
||||
|
|
||||
|
@ExcelProperty("单位") |
||||
|
private String uom; |
||||
|
|
||||
|
@ExcelProperty("供应商计量数量") |
||||
|
private BigDecimal supplierQty; |
||||
|
|
||||
|
@ExcelProperty("供应商计量单位") |
||||
|
private String supplierUom; |
||||
|
|
||||
|
@ExcelProperty("转换率") |
||||
|
private BigDecimal convertRate; |
||||
|
|
||||
|
@ExcelProperty("目检结果") |
||||
|
private String visualInspectResult; |
||||
|
|
||||
|
@ExcelProperty("目检照片") |
||||
|
private String visualInspectPhotos; |
||||
|
|
||||
|
@ExcelProperty("不合格原因") |
||||
|
private String failedReason; |
||||
|
|
||||
|
@ExcelProperty("单价") |
||||
|
private BigDecimal singlePrice; |
||||
|
|
||||
|
@ExcelProperty("金额") |
||||
|
private BigDecimal amount; |
||||
|
|
||||
|
@ExcelProperty("任务明细ID") |
||||
|
private String jobDetailId; |
||||
|
|
||||
|
@ExcelProperty("物品代码") |
||||
|
private String itemCode; |
||||
|
|
||||
|
@ExcelProperty("物品名称") |
||||
|
private String itemName; |
||||
|
|
||||
|
@ExcelProperty("物品描述1") |
||||
|
private String itemDesc1; |
||||
|
|
||||
|
@ExcelProperty("物品描述2") |
||||
|
private String itemDesc2; |
||||
|
|
||||
|
@ExcelProperty("主表ID") |
||||
|
private Long masterId; |
||||
|
|
||||
|
@ExcelProperty("单据号") |
||||
|
private String number; |
||||
|
|
||||
|
@ExcelProperty("备注") |
||||
|
private String remark; |
||||
|
|
||||
|
@ExcelProperty("创建时间") |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
@ExcelProperty("地点ID") |
||||
|
private String siteId; |
||||
|
|
||||
|
@ExcelProperty("项目代码") |
||||
|
private String projectCode; |
||||
|
|
||||
|
@ExcelProperty("代码") |
||||
|
private String code; |
||||
|
|
||||
|
@ExcelProperty("接口类型") |
||||
|
private String interfaceType; |
||||
|
|
||||
|
@ExcelProperty("从货主代码") |
||||
|
private String fromOwnerCode; |
||||
|
|
||||
|
@ExcelProperty("到货主代码") |
||||
|
private String toOwnerCode; |
||||
|
|
||||
|
@ExcelProperty("到批次") |
||||
|
private String toBatch; |
||||
|
|
||||
|
} |
@ -0,0 +1,158 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
||||
|
|
||||
|
@Schema(description = "管理后台 - 采购收货记录子 Excel 导出 Request VO,参数和 PurchaseshortageDetailPageReqVO 是一致的") |
||||
|
@Data |
||||
|
public class PurchaseshortageDetailExportReqVO { |
||||
|
|
||||
|
@Schema(description = "从包装号") |
||||
|
private String fromPackingNumber; |
||||
|
|
||||
|
@Schema(description = "到包装号") |
||||
|
private String toPackingNumber; |
||||
|
|
||||
|
@Schema(description = "从器具号") |
||||
|
private String fromContainerNumber; |
||||
|
|
||||
|
@Schema(description = "到器具号") |
||||
|
private String toContainerNumber; |
||||
|
|
||||
|
@Schema(description = "从批次") |
||||
|
private String fromBatch; |
||||
|
|
||||
|
@Schema(description = "替代批次") |
||||
|
private String altBatch; |
||||
|
|
||||
|
@Schema(description = "到货日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] arriveDate; |
||||
|
|
||||
|
@Schema(description = "生产日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] produceDate; |
||||
|
|
||||
|
@Schema(description = "过期日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] expireDate; |
||||
|
|
||||
|
@Schema(description = "库存状态", example = "1") |
||||
|
private String inventoryStatus; |
||||
|
|
||||
|
@Schema(description = "从库位代码") |
||||
|
private String fromLocationCode; |
||||
|
|
||||
|
@Schema(description = "到库位代码") |
||||
|
private String toLocationCode; |
||||
|
|
||||
|
@Schema(description = "从库位组代码") |
||||
|
private String fromLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "到库位组代码") |
||||
|
private String toLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "从库区代码") |
||||
|
private String fromAreaCodes; |
||||
|
|
||||
|
@Schema(description = "到库区代码") |
||||
|
private String toAreaCodes; |
||||
|
|
||||
|
@Schema(description = "订单号") |
||||
|
private String poNumber; |
||||
|
|
||||
|
@Schema(description = "订单行") |
||||
|
private String poLine; |
||||
|
|
||||
|
@Schema(description = "标包数量") |
||||
|
private BigDecimal stdPackQty; |
||||
|
|
||||
|
@Schema(description = "标包单位") |
||||
|
private String stdPackUnit; |
||||
|
|
||||
|
@Schema(description = "数量") |
||||
|
private BigDecimal qty; |
||||
|
|
||||
|
@Schema(description = "单位") |
||||
|
private String uom; |
||||
|
|
||||
|
@Schema(description = "供应商计量数量") |
||||
|
private BigDecimal supplierQty; |
||||
|
|
||||
|
@Schema(description = "供应商计量单位") |
||||
|
private String supplierUom; |
||||
|
|
||||
|
@Schema(description = "转换率") |
||||
|
private BigDecimal convertRate; |
||||
|
|
||||
|
@Schema(description = "目检结果") |
||||
|
private String visualInspectResult; |
||||
|
|
||||
|
@Schema(description = "目检照片") |
||||
|
private String visualInspectPhotos; |
||||
|
|
||||
|
@Schema(description = "不合格原因", example = "不对") |
||||
|
private String failedReason; |
||||
|
|
||||
|
@Schema(description = "单价", example = "25384") |
||||
|
private BigDecimal singlePrice; |
||||
|
|
||||
|
@Schema(description = "金额") |
||||
|
private BigDecimal amount; |
||||
|
|
||||
|
@Schema(description = "任务明细ID", example = "20190") |
||||
|
private String jobDetailId; |
||||
|
|
||||
|
@Schema(description = "物品代码") |
||||
|
private String itemCode; |
||||
|
|
||||
|
@Schema(description = "物品名称", example = "赵六") |
||||
|
private String itemName; |
||||
|
|
||||
|
@Schema(description = "物品描述1") |
||||
|
private String itemDesc1; |
||||
|
|
||||
|
@Schema(description = "物品描述2") |
||||
|
private String itemDesc2; |
||||
|
|
||||
|
@Schema(description = "主表ID", example = "30925") |
||||
|
private Long masterId; |
||||
|
|
||||
|
@Schema(description = "单据号") |
||||
|
private String number; |
||||
|
|
||||
|
@Schema(description = "备注", example = "随便") |
||||
|
private String remark; |
||||
|
|
||||
|
@Schema(description = "创建时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] createTime; |
||||
|
|
||||
|
@Schema(description = "地点ID", example = "25612") |
||||
|
private String siteId; |
||||
|
|
||||
|
@Schema(description = "项目代码") |
||||
|
private String projectCode; |
||||
|
|
||||
|
@Schema(description = "代码") |
||||
|
private String code; |
||||
|
|
||||
|
@Schema(description = "接口类型", example = "1") |
||||
|
private String interfaceType; |
||||
|
|
||||
|
@Schema(description = "从货主代码") |
||||
|
private String fromOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到货主代码") |
||||
|
private String toOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到批次") |
||||
|
private String toBatch; |
||||
|
|
||||
|
} |
@ -0,0 +1,163 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import com.win.framework.common.pojo.PageParam; |
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
import lombok.ToString; |
||||
|
import org.springframework.format.annotation.DateTimeFormat; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
import static com.win.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; |
||||
|
|
||||
|
@Schema(description = "管理后台 - 采购收货记录子分页 Request VO") |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@ToString(callSuper = true) |
||||
|
public class PurchaseshortageDetailPageReqVO extends PageParam { |
||||
|
|
||||
|
@Schema(description = "从包装号") |
||||
|
private String fromPackingNumber; |
||||
|
|
||||
|
@Schema(description = "到包装号") |
||||
|
private String toPackingNumber; |
||||
|
|
||||
|
@Schema(description = "从器具号") |
||||
|
private String fromContainerNumber; |
||||
|
|
||||
|
@Schema(description = "到器具号") |
||||
|
private String toContainerNumber; |
||||
|
|
||||
|
@Schema(description = "从批次") |
||||
|
private String fromBatch; |
||||
|
|
||||
|
@Schema(description = "替代批次") |
||||
|
private String altBatch; |
||||
|
|
||||
|
@Schema(description = "到货日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] arriveDate; |
||||
|
|
||||
|
@Schema(description = "生产日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] produceDate; |
||||
|
|
||||
|
@Schema(description = "过期日期") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] expireDate; |
||||
|
|
||||
|
@Schema(description = "库存状态", example = "1") |
||||
|
private String inventoryStatus; |
||||
|
|
||||
|
@Schema(description = "从库位代码") |
||||
|
private String fromLocationCode; |
||||
|
|
||||
|
@Schema(description = "到库位代码") |
||||
|
private String toLocationCode; |
||||
|
|
||||
|
@Schema(description = "从库位组代码") |
||||
|
private String fromLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "到库位组代码") |
||||
|
private String toLocationGroupCode; |
||||
|
|
||||
|
@Schema(description = "从库区代码") |
||||
|
private String fromAreaCodes; |
||||
|
|
||||
|
@Schema(description = "到库区代码") |
||||
|
private String toAreaCodes; |
||||
|
|
||||
|
@Schema(description = "订单号") |
||||
|
private String poNumber; |
||||
|
|
||||
|
@Schema(description = "订单行") |
||||
|
private String poLine; |
||||
|
|
||||
|
@Schema(description = "标包数量") |
||||
|
private BigDecimal stdPackQty; |
||||
|
|
||||
|
@Schema(description = "标包单位") |
||||
|
private String stdPackUnit; |
||||
|
|
||||
|
@Schema(description = "数量") |
||||
|
private BigDecimal qty; |
||||
|
|
||||
|
@Schema(description = "单位") |
||||
|
private String uom; |
||||
|
|
||||
|
@Schema(description = "供应商计量数量") |
||||
|
private BigDecimal supplierQty; |
||||
|
|
||||
|
@Schema(description = "供应商计量单位") |
||||
|
private String supplierUom; |
||||
|
|
||||
|
@Schema(description = "转换率") |
||||
|
private BigDecimal convertRate; |
||||
|
|
||||
|
@Schema(description = "目检结果") |
||||
|
private String visualInspectResult; |
||||
|
|
||||
|
@Schema(description = "目检照片") |
||||
|
private String visualInspectPhotos; |
||||
|
|
||||
|
@Schema(description = "不合格原因", example = "不对") |
||||
|
private String failedReason; |
||||
|
|
||||
|
@Schema(description = "单价", example = "25384") |
||||
|
private BigDecimal singlePrice; |
||||
|
|
||||
|
@Schema(description = "金额") |
||||
|
private BigDecimal amount; |
||||
|
|
||||
|
@Schema(description = "任务明细ID", example = "20190") |
||||
|
private String jobDetailId; |
||||
|
|
||||
|
@Schema(description = "物品代码") |
||||
|
private String itemCode; |
||||
|
|
||||
|
@Schema(description = "物品名称", example = "赵六") |
||||
|
private String itemName; |
||||
|
|
||||
|
@Schema(description = "物品描述1") |
||||
|
private String itemDesc1; |
||||
|
|
||||
|
@Schema(description = "物品描述2") |
||||
|
private String itemDesc2; |
||||
|
|
||||
|
@Schema(description = "主表ID", example = "30925") |
||||
|
private Long masterId; |
||||
|
|
||||
|
@Schema(description = "单据号") |
||||
|
private String number; |
||||
|
|
||||
|
@Schema(description = "备注", example = "随便") |
||||
|
private String remark; |
||||
|
|
||||
|
@Schema(description = "创建时间") |
||||
|
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) |
||||
|
private LocalDateTime[] createTime; |
||||
|
|
||||
|
@Schema(description = "地点ID", example = "25612") |
||||
|
private String siteId; |
||||
|
|
||||
|
@Schema(description = "项目代码") |
||||
|
private String projectCode; |
||||
|
|
||||
|
@Schema(description = "代码") |
||||
|
private String code; |
||||
|
|
||||
|
@Schema(description = "接口类型", example = "1") |
||||
|
private String interfaceType; |
||||
|
|
||||
|
@Schema(description = "从货主代码") |
||||
|
private String fromOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到货主代码") |
||||
|
private String toOwnerCode; |
||||
|
|
||||
|
@Schema(description = "到批次") |
||||
|
private String toBatch; |
||||
|
|
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.*; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
@Schema(description = "管理后台 - 采购收货记录子 Response VO") |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@ToString(callSuper = true) |
||||
|
public class PurchaseshortageDetailRespVO extends PurchaseshortageDetailBaseVO { |
||||
|
|
||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26980") |
||||
|
private Long id; |
||||
|
|
||||
|
@Schema(description = "创建时间") |
||||
|
private LocalDateTime createTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,20 @@ |
|||||
|
package com.win.module.wms.controller.purchasereceiptRecord.vo; |
||||
|
|
||||
|
import io.swagger.v3.oas.annotations.media.Schema; |
||||
|
import lombok.Data; |
||||
|
import lombok.EqualsAndHashCode; |
||||
|
import lombok.ToString; |
||||
|
|
||||
|
import javax.validation.constraints.NotNull; |
||||
|
|
||||
|
@Schema(description = "管理后台 - 采购收货记录子更新 Request VO") |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@ToString(callSuper = true) |
||||
|
public class PurchaseshortageDetailUpdateReqVO extends PurchaseshortageDetailBaseVO { |
||||
|
|
||||
|
@Schema(description = "id", requiredMode = Schema.RequiredMode.REQUIRED, example = "26980") |
||||
|
@NotNull(message = "id不能为空") |
||||
|
private Long id; |
||||
|
|
||||
|
} |
@ -0,0 +1,36 @@ |
|||||
|
package com.win.module.wms.convert.purchasereceiptRecord; |
||||
|
|
||||
|
import com.win.framework.common.pojo.PageResult; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailCreateReqVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailExcelVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailRespVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailUpdateReqVO; |
||||
|
import com.win.module.wms.dal.dataobject.purchasereceiptRecord.PurchaseshortageDetailDO; |
||||
|
import org.mapstruct.Mapper; |
||||
|
import org.mapstruct.factory.Mappers; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Convert |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface PurchaseshortageDetailConvert { |
||||
|
|
||||
|
PurchaseshortageDetailConvert INSTANCE = Mappers.getMapper(PurchaseshortageDetailConvert.class); |
||||
|
|
||||
|
PurchaseshortageDetailDO convert(PurchaseshortageDetailCreateReqVO bean); |
||||
|
|
||||
|
PurchaseshortageDetailDO convert(PurchaseshortageDetailUpdateReqVO bean); |
||||
|
|
||||
|
PurchaseshortageDetailRespVO convert(PurchaseshortageDetailDO bean); |
||||
|
|
||||
|
List<PurchaseshortageDetailRespVO> convertList(List<PurchaseshortageDetailDO> list); |
||||
|
|
||||
|
PageResult<PurchaseshortageDetailRespVO> convertPage(PageResult<PurchaseshortageDetailDO> page); |
||||
|
|
||||
|
List<PurchaseshortageDetailExcelVO> convertList02(List<PurchaseshortageDetailDO> list); |
||||
|
|
||||
|
} |
@ -0,0 +1,211 @@ |
|||||
|
package com.win.module.wms.dal.dataobject.purchasereceiptRecord; |
||||
|
|
||||
|
import com.baomidou.mybatisplus.annotation.TableId; |
||||
|
import com.baomidou.mybatisplus.annotation.TableName; |
||||
|
import com.win.framework.mybatis.core.dataobject.BaseDO; |
||||
|
import lombok.*; |
||||
|
|
||||
|
import java.math.BigDecimal; |
||||
|
import java.time.LocalDateTime; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 DO |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
@TableName("record_purchaseshortage_detail") |
||||
|
@Data |
||||
|
@EqualsAndHashCode(callSuper = true) |
||||
|
@ToString(callSuper = true) |
||||
|
@Builder |
||||
|
@NoArgsConstructor |
||||
|
@AllArgsConstructor |
||||
|
public class PurchaseshortageDetailDO extends BaseDO { |
||||
|
|
||||
|
/** |
||||
|
* id |
||||
|
*/ |
||||
|
@TableId |
||||
|
private Long id; |
||||
|
/** |
||||
|
* 从包装号 |
||||
|
*/ |
||||
|
private String fromPackingNumber; |
||||
|
/** |
||||
|
* 到包装号 |
||||
|
*/ |
||||
|
private String toPackingNumber; |
||||
|
/** |
||||
|
* 从器具号 |
||||
|
*/ |
||||
|
private String fromContainerNumber; |
||||
|
/** |
||||
|
* 到器具号 |
||||
|
*/ |
||||
|
private String toContainerNumber; |
||||
|
/** |
||||
|
* 从批次 |
||||
|
*/ |
||||
|
private String fromBatch; |
||||
|
/** |
||||
|
* 替代批次 |
||||
|
*/ |
||||
|
private String altBatch; |
||||
|
/** |
||||
|
* 到货日期 |
||||
|
*/ |
||||
|
private LocalDateTime arriveDate; |
||||
|
/** |
||||
|
* 生产日期 |
||||
|
*/ |
||||
|
private LocalDateTime produceDate; |
||||
|
/** |
||||
|
* 过期日期 |
||||
|
*/ |
||||
|
private LocalDateTime expireDate; |
||||
|
/** |
||||
|
* 库存状态 |
||||
|
*/ |
||||
|
private String inventoryStatus; |
||||
|
/** |
||||
|
* 从库位代码 |
||||
|
*/ |
||||
|
private String fromLocationCode; |
||||
|
/** |
||||
|
* 到库位代码 |
||||
|
*/ |
||||
|
private String toLocationCode; |
||||
|
/** |
||||
|
* 从库位组代码 |
||||
|
*/ |
||||
|
private String fromLocationGroupCode; |
||||
|
/** |
||||
|
* 到库位组代码 |
||||
|
*/ |
||||
|
private String toLocationGroupCode; |
||||
|
/** |
||||
|
* 从库区代码 |
||||
|
*/ |
||||
|
private String fromAreaCodes; |
||||
|
/** |
||||
|
* 到库区代码 |
||||
|
*/ |
||||
|
private String toAreaCodes; |
||||
|
/** |
||||
|
* 订单号 |
||||
|
*/ |
||||
|
private String poNumber; |
||||
|
/** |
||||
|
* 订单行 |
||||
|
*/ |
||||
|
private String poLine; |
||||
|
/** |
||||
|
* 标包数量 |
||||
|
*/ |
||||
|
private BigDecimal stdPackQty; |
||||
|
/** |
||||
|
* 标包单位 |
||||
|
*/ |
||||
|
private String stdPackUnit; |
||||
|
/** |
||||
|
* 数量 |
||||
|
*/ |
||||
|
private BigDecimal qty; |
||||
|
/** |
||||
|
* 单位 |
||||
|
*/ |
||||
|
private String uom; |
||||
|
/** |
||||
|
* 供应商计量数量 |
||||
|
*/ |
||||
|
private BigDecimal supplierQty; |
||||
|
/** |
||||
|
* 供应商计量单位 |
||||
|
*/ |
||||
|
private String supplierUom; |
||||
|
/** |
||||
|
* 转换率 |
||||
|
*/ |
||||
|
private BigDecimal convertRate; |
||||
|
/** |
||||
|
* 目检结果 |
||||
|
*/ |
||||
|
private String visualInspectResult; |
||||
|
/** |
||||
|
* 目检照片 |
||||
|
*/ |
||||
|
private String visualInspectPhotos; |
||||
|
/** |
||||
|
* 不合格原因 |
||||
|
*/ |
||||
|
private String failedReason; |
||||
|
/** |
||||
|
* 单价 |
||||
|
*/ |
||||
|
private BigDecimal singlePrice; |
||||
|
/** |
||||
|
* 金额 |
||||
|
*/ |
||||
|
private BigDecimal amount; |
||||
|
/** |
||||
|
* 任务明细ID |
||||
|
*/ |
||||
|
private String jobDetailId; |
||||
|
/** |
||||
|
* 物品代码 |
||||
|
*/ |
||||
|
private String itemCode; |
||||
|
/** |
||||
|
* 物品名称 |
||||
|
*/ |
||||
|
private String itemName; |
||||
|
/** |
||||
|
* 物品描述1 |
||||
|
*/ |
||||
|
private String itemDesc1; |
||||
|
/** |
||||
|
* 物品描述2 |
||||
|
*/ |
||||
|
private String itemDesc2; |
||||
|
/** |
||||
|
* 主表ID |
||||
|
*/ |
||||
|
private Long masterId; |
||||
|
/** |
||||
|
* 单据号 |
||||
|
*/ |
||||
|
private String number; |
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remark; |
||||
|
/** |
||||
|
* 地点ID |
||||
|
*/ |
||||
|
private String siteId; |
||||
|
/** |
||||
|
* 项目代码 |
||||
|
*/ |
||||
|
private String projectCode; |
||||
|
/** |
||||
|
* 代码 |
||||
|
*/ |
||||
|
private String code; |
||||
|
/** |
||||
|
* 接口类型 |
||||
|
*/ |
||||
|
private String interfaceType; |
||||
|
/** |
||||
|
* 从货主代码 |
||||
|
*/ |
||||
|
private String fromOwnerCode; |
||||
|
/** |
||||
|
* 到货主代码 |
||||
|
*/ |
||||
|
private String toOwnerCode; |
||||
|
/** |
||||
|
* 到批次 |
||||
|
*/ |
||||
|
private String toBatch; |
||||
|
|
||||
|
} |
@ -0,0 +1,123 @@ |
|||||
|
package com.win.module.wms.dal.mysql.purchasereceiptRecord; |
||||
|
|
||||
|
import com.win.framework.common.pojo.PageResult; |
||||
|
import com.win.framework.mybatis.core.mapper.BaseMapperX; |
||||
|
import com.win.framework.mybatis.core.query.LambdaQueryWrapperX; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailExportReqVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailPageReqVO; |
||||
|
import com.win.module.wms.dal.dataobject.purchasereceiptRecord.PurchaseshortageDetailDO; |
||||
|
import org.apache.ibatis.annotations.Mapper; |
||||
|
|
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Mapper |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
@Mapper |
||||
|
public interface PurchaseshortageDetailMapper extends BaseMapperX<PurchaseshortageDetailDO> { |
||||
|
|
||||
|
default PageResult<PurchaseshortageDetailDO> selectPage(PurchaseshortageDetailPageReqVO reqVO) { |
||||
|
return selectPage(reqVO, new LambdaQueryWrapperX<PurchaseshortageDetailDO>() |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromBatch, reqVO.getFromBatch()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getAltBatch, reqVO.getAltBatch()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getArriveDate, reqVO.getArriveDate()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getProduceDate, reqVO.getProduceDate()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getExpireDate, reqVO.getExpireDate()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getInventoryStatus, reqVO.getInventoryStatus()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromLocationCode, reqVO.getFromLocationCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToLocationCode, reqVO.getToLocationCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromLocationGroupCode, reqVO.getFromLocationGroupCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToLocationGroupCode, reqVO.getToLocationGroupCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromAreaCodes, reqVO.getFromAreaCodes()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToAreaCodes, reqVO.getToAreaCodes()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getPoNumber, reqVO.getPoNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getPoLine, reqVO.getPoLine()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getStdPackQty, reqVO.getStdPackQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getStdPackUnit, reqVO.getStdPackUnit()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getQty, reqVO.getQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getUom, reqVO.getUom()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSupplierQty, reqVO.getSupplierQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSupplierUom, reqVO.getSupplierUom()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getConvertRate, reqVO.getConvertRate()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getVisualInspectResult, reqVO.getVisualInspectResult()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getVisualInspectPhotos, reqVO.getVisualInspectPhotos()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFailedReason, reqVO.getFailedReason()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSinglePrice, reqVO.getSinglePrice()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getAmount, reqVO.getAmount()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getJobDetailId, reqVO.getJobDetailId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemCode, reqVO.getItemCode()) |
||||
|
.likeIfPresent(PurchaseshortageDetailDO::getItemName, reqVO.getItemName()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getMasterId, reqVO.getMasterId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getNumber, reqVO.getNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getRemark, reqVO.getRemark()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getCreateTime, reqVO.getCreateTime()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSiteId, reqVO.getSiteId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getProjectCode, reqVO.getProjectCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getCode, reqVO.getCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToBatch, reqVO.getToBatch()) |
||||
|
.orderByDesc(PurchaseshortageDetailDO::getId)); |
||||
|
} |
||||
|
|
||||
|
default List<PurchaseshortageDetailDO> selectList(PurchaseshortageDetailExportReqVO reqVO) { |
||||
|
return selectList(new LambdaQueryWrapperX<PurchaseshortageDetailDO>() |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromPackingNumber, reqVO.getFromPackingNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToPackingNumber, reqVO.getToPackingNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromContainerNumber, reqVO.getFromContainerNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToContainerNumber, reqVO.getToContainerNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromBatch, reqVO.getFromBatch()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getAltBatch, reqVO.getAltBatch()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getArriveDate, reqVO.getArriveDate()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getProduceDate, reqVO.getProduceDate()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getExpireDate, reqVO.getExpireDate()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getInventoryStatus, reqVO.getInventoryStatus()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromLocationCode, reqVO.getFromLocationCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToLocationCode, reqVO.getToLocationCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromLocationGroupCode, reqVO.getFromLocationGroupCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToLocationGroupCode, reqVO.getToLocationGroupCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromAreaCodes, reqVO.getFromAreaCodes()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToAreaCodes, reqVO.getToAreaCodes()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getPoNumber, reqVO.getPoNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getPoLine, reqVO.getPoLine()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getStdPackQty, reqVO.getStdPackQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getStdPackUnit, reqVO.getStdPackUnit()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getQty, reqVO.getQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getUom, reqVO.getUom()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSupplierQty, reqVO.getSupplierQty()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSupplierUom, reqVO.getSupplierUom()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getConvertRate, reqVO.getConvertRate()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getVisualInspectResult, reqVO.getVisualInspectResult()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getVisualInspectPhotos, reqVO.getVisualInspectPhotos()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFailedReason, reqVO.getFailedReason()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSinglePrice, reqVO.getSinglePrice()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getAmount, reqVO.getAmount()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getJobDetailId, reqVO.getJobDetailId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemCode, reqVO.getItemCode()) |
||||
|
.likeIfPresent(PurchaseshortageDetailDO::getItemName, reqVO.getItemName()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemDesc1, reqVO.getItemDesc1()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getItemDesc2, reqVO.getItemDesc2()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getMasterId, reqVO.getMasterId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getNumber, reqVO.getNumber()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getRemark, reqVO.getRemark()) |
||||
|
.betweenIfPresent(PurchaseshortageDetailDO::getCreateTime, reqVO.getCreateTime()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getSiteId, reqVO.getSiteId()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getProjectCode, reqVO.getProjectCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getCode, reqVO.getCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getInterfaceType, reqVO.getInterfaceType()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getFromOwnerCode, reqVO.getFromOwnerCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToOwnerCode, reqVO.getToOwnerCode()) |
||||
|
.eqIfPresent(PurchaseshortageDetailDO::getToBatch, reqVO.getToBatch()) |
||||
|
.orderByDesc(PurchaseshortageDetailDO::getId)); |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
package com.win.module.wms.service.purchasereceiptRecord; |
||||
|
|
||||
|
import com.win.framework.common.pojo.PageResult; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.*; |
||||
|
import com.win.module.wms.dal.dataobject.purchasereceiptRecord.PurchaseshortageDetailDO; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.util.Collection; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Service 接口 |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
public interface PurchaseshortageDetailService { |
||||
|
|
||||
|
/** |
||||
|
* 创建采购收货记录子 |
||||
|
* |
||||
|
* @param createReqVO 创建信息 |
||||
|
* @return 编号 |
||||
|
*/ |
||||
|
Long createPurchaseshortageDetail(@Valid PurchaseshortageDetailCreateReqVO createReqVO); |
||||
|
|
||||
|
/** |
||||
|
* 获得采购收货记录子 |
||||
|
* |
||||
|
* @param id 编号 |
||||
|
* @return 采购收货记录子 |
||||
|
*/ |
||||
|
PurchaseshortageDetailDO getPurchaseshortageDetail(Long id); |
||||
|
|
||||
|
/** |
||||
|
* 获得采购收货记录子列表 |
||||
|
* |
||||
|
* @param ids 编号 |
||||
|
* @return 采购收货记录子列表 |
||||
|
*/ |
||||
|
List<PurchaseshortageDetailDO> getPurchaseshortageDetailList(Collection<Long> ids); |
||||
|
|
||||
|
/** |
||||
|
* 获得采购收货记录子分页 |
||||
|
* |
||||
|
* @param pageReqVO 分页查询 |
||||
|
* @return 采购收货记录子分页 |
||||
|
*/ |
||||
|
PageResult<PurchaseshortageDetailDO> getPurchaseshortageDetailPage(PurchaseshortageDetailPageReqVO pageReqVO); |
||||
|
|
||||
|
/** |
||||
|
* 获得采购收货记录子列表, 用于 Excel 导出 |
||||
|
* |
||||
|
* @param exportReqVO 查询条件 |
||||
|
* @return 采购收货记录子列表 |
||||
|
*/ |
||||
|
List<PurchaseshortageDetailDO> getPurchaseshortageDetailList(PurchaseshortageDetailExportReqVO exportReqVO); |
||||
|
|
||||
|
} |
@ -0,0 +1,58 @@ |
|||||
|
package com.win.module.wms.service.purchasereceiptRecord; |
||||
|
|
||||
|
import com.win.framework.common.pojo.PageResult; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailCreateReqVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailExportReqVO; |
||||
|
import com.win.module.wms.controller.purchasereceiptRecord.vo.PurchaseshortageDetailPageReqVO; |
||||
|
import com.win.module.wms.convert.purchasereceiptRecord.PurchaseshortageDetailConvert; |
||||
|
import com.win.module.wms.dal.dataobject.purchasereceiptRecord.PurchaseshortageDetailDO; |
||||
|
import com.win.module.wms.dal.mysql.purchasereceiptRecord.PurchaseshortageDetailMapper; |
||||
|
import org.springframework.stereotype.Service; |
||||
|
import org.springframework.validation.annotation.Validated; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
import java.util.Collection; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 采购收货记录子 Service 实现类 |
||||
|
* |
||||
|
* @author 超级管理员 |
||||
|
*/ |
||||
|
@Service |
||||
|
@Validated |
||||
|
public class PurchaseshortageDetailServiceImpl implements PurchaseshortageDetailService { |
||||
|
|
||||
|
@Resource |
||||
|
private PurchaseshortageDetailMapper purchaseshortageDetailMapper; |
||||
|
|
||||
|
@Override |
||||
|
public Long createPurchaseshortageDetail(PurchaseshortageDetailCreateReqVO createReqVO) { |
||||
|
// 插入
|
||||
|
PurchaseshortageDetailDO purchaseshortageDetail = PurchaseshortageDetailConvert.INSTANCE.convert(createReqVO); |
||||
|
purchaseshortageDetailMapper.insert(purchaseshortageDetail); |
||||
|
// 返回
|
||||
|
return purchaseshortageDetail.getId(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public PurchaseshortageDetailDO getPurchaseshortageDetail(Long id) { |
||||
|
return purchaseshortageDetailMapper.selectById(id); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<PurchaseshortageDetailDO> getPurchaseshortageDetailList(Collection<Long> ids) { |
||||
|
return purchaseshortageDetailMapper.selectBatchIds(ids); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public PageResult<PurchaseshortageDetailDO> getPurchaseshortageDetailPage(PurchaseshortageDetailPageReqVO pageReqVO) { |
||||
|
return purchaseshortageDetailMapper.selectPage(pageReqVO); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public List<PurchaseshortageDetailDO> getPurchaseshortageDetailList(PurchaseshortageDetailExportReqVO exportReqVO) { |
||||
|
return purchaseshortageDetailMapper.selectList(exportReqVO); |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue