完善盘点计划

This commit is contained in:
liumingxiy 2024-11-12 09:05:55 +08:00
parent f83513ab8c
commit 5b5f836ad8
2 changed files with 121 additions and 101 deletions

View File

@ -1,149 +1,165 @@
package com.ktg.mes.md.domain; package com.ktg.mes.md.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktg.common.annotation.Excel; import com.ktg.common.annotation.Excel;
import com.ktg.common.core.domain.BaseEntity; import com.ktg.common.core.domain.BaseEntity;
import com.ktg.mes.wm.domain.WmWarehouse;
/** /**
* 盘点计划配置对象 WMS_INVENTORY_CONFIGURE * 盘点计划配置对象 WMS_INVENTORY_CONFIGURE
* *
* @author yinjinlu * @author yinjinlu
* @date 2024-11-11 * @date 2024-11-11
*/ */
public class WmsInventoryConfigure extends BaseEntity public class WmsInventoryConfigure extends BaseEntity {
{
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** 主键 */ /**
* 主键
*/
private Long wmsInventoryConfigureId; private Long wmsInventoryConfigureId;
/** 配置名称 */ /**
* 配置名称
*/
@Excel(name = "配置名称") @Excel(name = "配置名称")
private String configureName; private String configureName;
/** 盘点类型 */ /**
* 盘点类型
*/
@Excel(name = "盘点类型") @Excel(name = "盘点类型")
private String dataType; private String dataType;
/** 盘点形式 */ /**
* 盘点形式
*/
@Excel(name = "盘点形式") @Excel(name = "盘点形式")
private String inventoryType; private String inventoryType;
/** 盘点仓库 */ /**
* 盘点仓库
*/
@Excel(name = "盘点仓库") @Excel(name = "盘点仓库")
private Long mWarehouseId; private Long mWarehouseId;
/** 预留字段1 */ /**
* 预留字段1
*/
private String attr1; private String attr1;
/** 预留字段2 */ /**
* 预留字段2
*/
private String attr2; private String attr2;
/** 预留字段3 */ /**
* 预留字段3
*/
private String attr3; private String attr3;
/** 预留字段4 */ /**
* 预留字段4
*/
private String attr4; private String attr4;
public void setWmsInventoryConfigureId(Long wmsInventoryConfigureId) /**
{ * 仓库
*/
private WmWarehouse mWarehouse;
public Long getWmsInventoryConfigureId() {
return wmsInventoryConfigureId;
}
public void setWmsInventoryConfigureId(Long wmsInventoryConfigureId) {
this.wmsInventoryConfigureId = wmsInventoryConfigureId; this.wmsInventoryConfigureId = wmsInventoryConfigureId;
} }
public Long getWmsInventoryConfigureId() public String getConfigureName() {
{ return configureName;
return wmsInventoryConfigureId;
} }
public void setConfigureName(String configureName)
{ public void setConfigureName(String configureName) {
this.configureName = configureName; this.configureName = configureName;
} }
public String getConfigureName() public String getDataType() {
{ return dataType;
return configureName;
} }
public void setDataType(String dataType)
{ public void setDataType(String dataType) {
this.dataType = dataType; this.dataType = dataType;
} }
public String getDataType() public String getInventoryType() {
{ return inventoryType;
return dataType;
} }
public void setInventoryType(String inventoryType)
{ public void setInventoryType(String inventoryType) {
this.inventoryType = inventoryType; this.inventoryType = inventoryType;
} }
public String getInventoryType() public Long getmWarehouseId() {
{ return mWarehouseId;
return inventoryType;
} }
public void setmWarehouseId(Long mWarehouseId)
{ public void setmWarehouseId(Long mWarehouseId) {
this.mWarehouseId = mWarehouseId; this.mWarehouseId = mWarehouseId;
} }
public Long getmWarehouseId() public String getAttr1() {
{ return attr1;
return mWarehouseId;
} }
public void setAttr1(String attr1)
{ public void setAttr1(String attr1) {
this.attr1 = attr1; this.attr1 = attr1;
} }
public String getAttr1() public String getAttr2() {
{ return attr2;
return attr1;
} }
public void setAttr2(String attr2)
{ public void setAttr2(String attr2) {
this.attr2 = attr2; this.attr2 = attr2;
} }
public String getAttr2() public String getAttr3() {
{ return attr3;
return attr2;
} }
public void setAttr3(String attr3)
{ public void setAttr3(String attr3) {
this.attr3 = attr3; this.attr3 = attr3;
} }
public String getAttr3() public String getAttr4() {
{ return attr4;
return attr3;
} }
public void setAttr4(String attr4)
{ public void setAttr4(String attr4) {
this.attr4 = attr4; this.attr4 = attr4;
} }
public String getAttr4() public WmWarehouse getmWarehouse() {
{ return mWarehouse;
return attr4; }
public void setmWarehouse(WmWarehouse mWarehouse) {
this.mWarehouse = mWarehouse;
} }
@Override @Override
public String toString() { public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return "WmsInventoryConfigure{" +
.append("wmsInventoryConfigureId", getWmsInventoryConfigureId()) "wmsInventoryConfigureId=" + wmsInventoryConfigureId +
.append("configureName", getConfigureName()) ", configureName='" + configureName + '\'' +
.append("dataType", getDataType()) ", dataType='" + dataType + '\'' +
.append("inventoryType", getInventoryType()) ", inventoryType='" + inventoryType + '\'' +
.append("mWarehouseId", getmWarehouseId()) ", mWarehouseId=" + mWarehouseId +
.append("attr1", getAttr1()) ", attr1='" + attr1 + '\'' +
.append("attr2", getAttr2()) ", attr2='" + attr2 + '\'' +
.append("attr3", getAttr3()) ", attr3='" + attr3 + '\'' +
.append("attr4", getAttr4()) ", attr4='" + attr4 + '\'' +
.append("createBy", getCreateBy()) ", mWarehouse=" + mWarehouse +
.append("createTime", getCreateTime()) '}';
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
} }
} }

View File

@ -1,96 +1,100 @@
package com.ktg.mes.md.service.impl; package com.ktg.mes.md.service.impl;
import java.util.List;
import com.ktg.common.utils.DateUtils; import com.ktg.common.utils.DateUtils;
import com.ktg.mes.md.domain.WmsInventoryConfigure;
import com.ktg.mes.md.mapper.WmsInventoryConfigureMapper;
import com.ktg.mes.md.service.IWmsInventoryConfigureService;
import com.ktg.mes.wm.mapper.WmWarehouseMapper;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import com.ktg.mes.md.mapper.WmsInventoryConfigureMapper;
import com.ktg.mes.md.domain.WmsInventoryConfigure; import java.util.List;
import com.ktg.mes.md.service.IWmsInventoryConfigureService;
/** /**
* 盘点计划配置Service业务层处理 * 盘点计划配置Service业务层处理
* *
* @author yinjinlu * @author yinjinlu
* @date 2024-11-11 * @date 2024-11-11
*/ */
@Service @Service
public class WmsInventoryConfigureServiceImpl implements IWmsInventoryConfigureService public class WmsInventoryConfigureServiceImpl implements IWmsInventoryConfigureService {
{
@Autowired @Autowired
private WmsInventoryConfigureMapper wmsInventoryConfigureMapper; private WmsInventoryConfigureMapper wmsInventoryConfigureMapper;
@Autowired
private WmWarehouseMapper wmWarehouseMapper;
/** /**
* 查询盘点计划配置 * 查询盘点计划配置
* *
* @param wmsInventoryConfigureId 盘点计划配置主键 * @param wmsInventoryConfigureId 盘点计划配置主键
* @return 盘点计划配置 * @return 盘点计划配置
*/ */
@Override @Override
public WmsInventoryConfigure selectWmsInventoryConfigureByWmsInventoryConfigureId(Long wmsInventoryConfigureId) public WmsInventoryConfigure selectWmsInventoryConfigureByWmsInventoryConfigureId(Long wmsInventoryConfigureId) {
{ WmsInventoryConfigure wmsInventoryConfigure = wmsInventoryConfigureMapper.selectWmsInventoryConfigureByWmsInventoryConfigureId(wmsInventoryConfigureId);
return wmsInventoryConfigureMapper.selectWmsInventoryConfigureByWmsInventoryConfigureId(wmsInventoryConfigureId); wmsInventoryConfigure.setmWarehouse(wmWarehouseMapper.selectWmWarehouseByWarehouseId(wmsInventoryConfigure.getmWarehouseId()));
return wmsInventoryConfigure;
} }
/** /**
* 查询盘点计划配置列表 * 查询盘点计划配置列表
* *
* @param wmsInventoryConfigure 盘点计划配置 * @param wmsInventoryConfigure 盘点计划配置
* @return 盘点计划配置 * @return 盘点计划配置
*/ */
@Override @Override
public List<WmsInventoryConfigure> selectWmsInventoryConfigureList(WmsInventoryConfigure wmsInventoryConfigure) public List<WmsInventoryConfigure> selectWmsInventoryConfigureList(WmsInventoryConfigure wmsInventoryConfigure) {
{ List<WmsInventoryConfigure> wmsInventoryConfigureList = wmsInventoryConfigureMapper.selectWmsInventoryConfigureList(wmsInventoryConfigure);
return wmsInventoryConfigureMapper.selectWmsInventoryConfigureList(wmsInventoryConfigure); wmsInventoryConfigureList.forEach(item -> {
item.setmWarehouse(wmWarehouseMapper.selectWmWarehouseByWarehouseId(item.getmWarehouseId()));
});
return wmsInventoryConfigureList;
} }
/** /**
* 新增盘点计划配置 * 新增盘点计划配置
* *
* @param wmsInventoryConfigure 盘点计划配置 * @param wmsInventoryConfigure 盘点计划配置
* @return 结果 * @return 结果
*/ */
@Override @Override
public int insertWmsInventoryConfigure(WmsInventoryConfigure wmsInventoryConfigure) public int insertWmsInventoryConfigure(WmsInventoryConfigure wmsInventoryConfigure) {
{
wmsInventoryConfigure.setCreateTime(DateUtils.getNowDate()); wmsInventoryConfigure.setCreateTime(DateUtils.getNowDate());
return wmsInventoryConfigureMapper.insertWmsInventoryConfigure(wmsInventoryConfigure); return wmsInventoryConfigureMapper.insertWmsInventoryConfigure(wmsInventoryConfigure);
} }
/** /**
* 修改盘点计划配置 * 修改盘点计划配置
* *
* @param wmsInventoryConfigure 盘点计划配置 * @param wmsInventoryConfigure 盘点计划配置
* @return 结果 * @return 结果
*/ */
@Override @Override
public int updateWmsInventoryConfigure(WmsInventoryConfigure wmsInventoryConfigure) public int updateWmsInventoryConfigure(WmsInventoryConfigure wmsInventoryConfigure) {
{
wmsInventoryConfigure.setUpdateTime(DateUtils.getNowDate()); wmsInventoryConfigure.setUpdateTime(DateUtils.getNowDate());
return wmsInventoryConfigureMapper.updateWmsInventoryConfigure(wmsInventoryConfigure); return wmsInventoryConfigureMapper.updateWmsInventoryConfigure(wmsInventoryConfigure);
} }
/** /**
* 批量删除盘点计划配置 * 批量删除盘点计划配置
* *
* @param wmsInventoryConfigureIds 需要删除的盘点计划配置主键 * @param wmsInventoryConfigureIds 需要删除的盘点计划配置主键
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteWmsInventoryConfigureByWmsInventoryConfigureIds(Long[] wmsInventoryConfigureIds) public int deleteWmsInventoryConfigureByWmsInventoryConfigureIds(Long[] wmsInventoryConfigureIds) {
{
return wmsInventoryConfigureMapper.deleteWmsInventoryConfigureByWmsInventoryConfigureIds(wmsInventoryConfigureIds); return wmsInventoryConfigureMapper.deleteWmsInventoryConfigureByWmsInventoryConfigureIds(wmsInventoryConfigureIds);
} }
/** /**
* 删除盘点计划配置信息 * 删除盘点计划配置信息
* *
* @param wmsInventoryConfigureId 盘点计划配置主键 * @param wmsInventoryConfigureId 盘点计划配置主键
* @return 结果 * @return 结果
*/ */
@Override @Override
public int deleteWmsInventoryConfigureByWmsInventoryConfigureId(Long wmsInventoryConfigureId) public int deleteWmsInventoryConfigureByWmsInventoryConfigureId(Long wmsInventoryConfigureId) {
{
return wmsInventoryConfigureMapper.deleteWmsInventoryConfigureByWmsInventoryConfigureId(wmsInventoryConfigureId); return wmsInventoryConfigureMapper.deleteWmsInventoryConfigureByWmsInventoryConfigureId(wmsInventoryConfigureId);
} }
} }