领料问题修复

This commit is contained in:
liux 2025-07-11 10:32:15 +08:00
parent fbe4568fa4
commit 5f131141f3
3 changed files with 7 additions and 222 deletions

View File

@ -2,6 +2,7 @@ package com.bonus.canteen.core.ims.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@ -10,6 +11,7 @@ import java.time.LocalDateTime;
value = "领料明细表",
description = "领料明细表"
)
@Data
public class FetchMaterialDetailPageVO {
@ApiModelProperty("领料明细id")
private Long fetchDetailId;
@ -32,7 +34,7 @@ public class FetchMaterialDetailPageVO {
@ApiModelProperty("货品单位")
private String unitName;
@ApiModelProperty("库存数量")
private Long inventoryNum;
private Long materialNum;
@ApiModelProperty("领料数量")
private BigDecimal fetchNum;
@ApiModelProperty("备注")
@ -60,223 +62,6 @@ public class FetchMaterialDetailPageVO {
@ApiModelProperty("是否注册(1是2否)")
private Integer ifRegister;
public Long getFetchDetailId() {
return this.fetchDetailId;
}
public String getFetchMaterialId() {
return this.fetchMaterialId;
}
public Long getMaterialId() {
return this.materialId;
}
public Long getInventoryId() {
return this.inventoryId;
}
public String getMaterialName() {
return this.materialName;
}
public String getMaterialCode() {
return this.materialCode;
}
public Long getUnitId() {
return this.unitId;
}
public String getUnitName() {
return this.unitName;
}
public Long getInventoryNum() {
return this.inventoryNum;
}
public BigDecimal getFetchNum() {
return this.fetchNum;
}
public String getRemark() {
return this.remark;
}
public Long getStallId() {
return this.stallId;
}
public String getStallName() {
return this.stallName;
}
public BigDecimal getOutCount() {
return this.outCount;
}
public BigDecimal getResidueNum() {
return this.residueNum;
}
public String getBarCode() {
return this.barCode;
}
public Integer getSalesMode() {
return this.salesMode;
}
public Integer getIfRegister() {
return this.ifRegister;
}
public Long getMaterialTypeId() {
return materialTypeId;
}
public FetchMaterialDetailPageVO setMaterialTypeId(Long materialTypeId) {
this.materialTypeId = materialTypeId;
return this;
}
public String getMaterialTypeName() {
return materialTypeName;
}
public FetchMaterialDetailPageVO setMaterialTypeName(String materialTypeName) {
this.materialTypeName = materialTypeName;
return this;
}
public FetchMaterialDetailPageVO setFetchDetailId(final Long fetchDetailId) {
this.fetchDetailId = fetchDetailId;
return this;
}
public FetchMaterialDetailPageVO setFetchMaterialId(final String fetchMaterialId) {
this.fetchMaterialId = fetchMaterialId;
return this;
}
public FetchMaterialDetailPageVO setMaterialId(final Long materialId) {
this.materialId = materialId;
return this;
}
public FetchMaterialDetailPageVO setInventoryId(final Long inventoryId) {
this.inventoryId = inventoryId;
return this;
}
public FetchMaterialDetailPageVO setMaterialName(final String materialName) {
this.materialName = materialName;
return this;
}
public FetchMaterialDetailPageVO setMaterialCode(final String materialCode) {
this.materialCode = materialCode;
return this;
}
public FetchMaterialDetailPageVO setUnitId(final Long unitId) {
this.unitId = unitId;
return this;
}
public FetchMaterialDetailPageVO setUnitName(final String unitName) {
this.unitName = unitName;
return this;
}
public FetchMaterialDetailPageVO setInventoryNum(final Long inventoryNum) {
this.inventoryNum = inventoryNum;
return this;
}
public FetchMaterialDetailPageVO setFetchNum(final BigDecimal fetchNum) {
this.fetchNum = fetchNum;
return this;
}
public FetchMaterialDetailPageVO setRemark(final String remark) {
this.remark = remark;
return this;
}
public String getCreateBy() {
return createBy;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public String getUpdateBy() {
return updateBy;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public FetchMaterialDetailPageVO setCreateBy(final String crby) {
this.createBy = crby;
return this;
}
public FetchMaterialDetailPageVO setCreateTime(final LocalDateTime crtime) {
this.createTime = crtime;
return this;
}
public FetchMaterialDetailPageVO setUpdateBy(final String upby) {
this.updateBy = upby;
return this;
}
public FetchMaterialDetailPageVO setUpdateTime(final LocalDateTime uptime) {
this.updateTime = uptime;
return this;
}
public FetchMaterialDetailPageVO setStallId(final Long stallId) {
this.stallId = stallId;
return this;
}
public FetchMaterialDetailPageVO setStallName(final String stallName) {
this.stallName = stallName;
return this;
}
public FetchMaterialDetailPageVO setOutCount(final BigDecimal outCount) {
this.outCount = outCount;
return this;
}
public FetchMaterialDetailPageVO setResidueNum(final BigDecimal residueNum) {
this.residueNum = residueNum;
return this;
}
public FetchMaterialDetailPageVO setBarCode(final String barCode) {
this.barCode = barCode;
return this;
}
public FetchMaterialDetailPageVO setSalesMode(final Integer salesMode) {
this.salesMode = salesMode;
return this;
}
public FetchMaterialDetailPageVO setIfRegister(final Integer ifRegister) {
this.ifRegister = ifRegister;
return this;
}
}

View File

@ -116,7 +116,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
d.material_type_name ,
b.unit_id,
c.unit_name,
e.material_num inventoryNum,
e.material_num,
a.fetch_num,
a.create_by as createBy,
a.create_time as createTime,

View File

@ -182,11 +182,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<where>
<if test="content.fetchMaterialId != null and content.fetchMaterialId != ''">
and (a.fetch_material_id like #{content.fetchMaterialId}
and (a.fetch_material_id like concat('%', #{content.fetchMaterialId}, '%')
or
a.title like #{content.fetchMaterialId}
a.title like concat('%', #{content.fetchMaterialId}, '%')
or
a.fetch_material_code like #{content.fetchMaterialId}
a.fetch_material_code like concat('%', #{content.fetchMaterialId}, '%')
)
</if>
<if test="content.commitStatus != null">