wms 添加抄码实体类

This commit is contained in:
zhaoqing
2026-04-15 08:47:06 +08:00
parent 6aee88748b
commit f56db21de4
4 changed files with 91 additions and 3 deletions
@@ -0,0 +1,85 @@
package com.mhd.wms.domain.copyCodeReference.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mhd.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
@Data
@ApiModel(value = "抄码商品对照表")
@TableName("copy_code_reference")
public class CopyCodeReference extends BaseEntity {
private static final long serialVersionUID = 1L;
@TableId(type = IdType.AUTO)
@ApiModelProperty("主键ID")
private Long id;
@ApiModelProperty("物料库存ID")
private Long materialInventoryId;
@ApiModelProperty("仓库ID")
private Long warehouseId;
@ApiModelProperty("仓库名称")
private String warehouseName;
@ApiModelProperty("物料基础信息ID")
private Long materialBaseInfoId;
@ApiModelProperty("物料编码")
private String materialCode;
@ApiModelProperty("物料名称")
private String materialName;
@ApiModelProperty("上架单物料明细ID")
private Long materialDetailId;
@ApiModelProperty("入库单号")
private String inOrderNumber;
@ApiModelProperty("LOT编码")
private String lotNumber;
@ApiModelProperty("批次号")
private String batchNumber;
@ApiModelProperty("托盘号")
private String boxPalletNo;
@ApiModelProperty("容器编码")
private String containerCode;
@ApiModelProperty("数量")
private BigDecimal inventoryQuantity;
@ApiModelProperty("净重(KG)")
private BigDecimal netWeight;
@ApiModelProperty("毛重(KG)")
private BigDecimal grossWeight;
@ApiModelProperty("物料状态编码")
private String materialStatusCode;
@ApiModelProperty("物料状态名称")
private String materialStatusName;
@ApiModelProperty("打印序号")
private Integer serialNumber;
@ApiModelProperty("组织ID")
private Long organizationId;
@ApiModelProperty("一级组织ID")
private Long topOrganizationId;
}
@@ -1,6 +1,7 @@
package com.mhd.wms.domain.copyCodeReference.repository.facade;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mhd.wms.domain.copyCodeReference.entity.CopyCodeReference;
import com.mhd.wms.domain.copyCodeReference.repository.po.CopyCodeReferencePO;
import com.mhd.wms.domain.copyCodeReference.repository.todo.CopyCodeReferenceDO;
import com.mhd.wms.interfaces.dto.copyCodeReference.CopyCodeReferenceDTO;
@@ -8,7 +9,7 @@ import com.mhd.wms.interfaces.dto.copyCodeReference.CopyCodeReferenceDTO;
import java.math.BigDecimal;
import java.util.List;
public interface ICopyCodeReferenceService extends IService<CopyCodeReferenceDO> {
public interface ICopyCodeReferenceService extends IService<CopyCodeReference> {
List<CopyCodeReferencePO> queryList(CopyCodeReferenceDO copyCodeReferenceDO);
@@ -1,6 +1,7 @@
package com.mhd.wms.domain.copyCodeReference.repository.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mhd.wms.domain.copyCodeReference.entity.CopyCodeReference;
import com.mhd.wms.domain.copyCodeReference.repository.po.CopyCodeReferencePO;
import com.mhd.wms.domain.copyCodeReference.repository.todo.CopyCodeReferenceDO;
import com.mhd.wms.interfaces.dto.copyCodeReference.CopyCodeReferenceDTO;
@@ -11,7 +12,7 @@ import java.util.List;
@Mapper
public interface CopyCodeReferenceMapper extends BaseMapper<CopyCodeReferenceDO> {
public interface CopyCodeReferenceMapper extends BaseMapper<CopyCodeReference> {
List<CopyCodeReferencePO> queryList(CopyCodeReferenceDO copyCodeReferenceDO);
List<CopyCodeReferencePO> queryWeightList(CopyCodeReferenceDTO dto);
@@ -1,6 +1,7 @@
package com.mhd.wms.domain.copyCodeReference.repository.persistence;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mhd.wms.domain.copyCodeReference.entity.CopyCodeReference;
import com.mhd.wms.domain.copyCodeReference.repository.facade.ICopyCodeReferenceService;
import com.mhd.wms.domain.copyCodeReference.repository.mapper.CopyCodeReferenceMapper;
import com.mhd.wms.domain.copyCodeReference.repository.po.CopyCodeReferencePO;
@@ -20,7 +21,7 @@ import java.util.List;
@Slf4j
@Service
public class CopyCodeReferenceImpl extends ServiceImpl<CopyCodeReferenceMapper, CopyCodeReferenceDO> implements ICopyCodeReferenceService {
public class CopyCodeReferenceImpl extends ServiceImpl<CopyCodeReferenceMapper, CopyCodeReference> implements ICopyCodeReferenceService {
@Autowired
CopyCodeReferenceMapper copyCodeReferenceMapper;