w 库存管理-抄码商品对照表

This commit is contained in:
zhaoqing
2026-04-14 17:22:52 +08:00
parent d10d899a1c
commit 1fa6d88545
11 changed files with 346 additions and 0 deletions
@@ -0,0 +1,22 @@
package com.mhd.wms.interfaces.assember.copyCodeReference;
import com.mhd.common.core.utils.bean.BeanUtils;
import com.mhd.wms.domain.copyCodeReference.repository.todo.CopyCodeReferenceDO;
import com.mhd.wms.interfaces.dto.copyCodeReference.CopyCodeReferenceDTO;
import org.springframework.stereotype.Component;
@Component
public class CopyCodeReferenceAssembler {
public CopyCodeReferenceDO toDO(CopyCodeReferenceDTO copyCodeReferenceDTO){
if(copyCodeReferenceDTO == null){
return null;
}
CopyCodeReferenceDO copyCodeReferenceDO = new CopyCodeReferenceDO();
BeanUtils.copyProperties(copyCodeReferenceDTO,copyCodeReferenceDO);
return copyCodeReferenceDO;
}
}
@@ -0,0 +1,29 @@
package com.mhd.wms.interfaces.dto.copyCodeReference;
import com.mhd.common.core.web.domain.BaseVOEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
@ApiModel(value = "潮妈商品对照表请求DTO")
public class CopyCodeReferenceDTO extends BaseVOEntity {
private static final long serialVersionUID = 1L;
@ApiModelProperty("货主ID")
private Long shipperId;
@ApiModelProperty("仓库ID")
private Long warehouseId;
@ApiModelProperty("物料编码")
private String materialCode;
@ApiModelProperty("批次号")
private String batchNumber;
@ApiModelProperty("托盘号")
private String containerCode;
}
@@ -0,0 +1,44 @@
package com.mhd.wms.interfaces.facadeApi.copyCodeReference;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.page.TableDataInfo;
import com.mhd.wms.application.service.CopyCodeReference.CopyCodeReferenceApplicationService;
import com.mhd.wms.domain.copyCodeReference.repository.po.CopyCodeReferencePO;
import com.mhd.wms.domain.copyCodeReference.repository.todo.CopyCodeReferenceDO;
import com.mhd.wms.interfaces.assember.copyCodeReference.CopyCodeReferenceAssembler;
import com.mhd.wms.interfaces.dto.copyCodeReference.CopyCodeReferenceDTO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@RequestMapping("/copyCodeRederenceApi")
public class CopyCodeReferenceApi extends BaseController {
@Autowired
private CopyCodeReferenceApplicationService copyCodeReferenceApplicationService;
@Resource
private CopyCodeReferenceAssembler copyCodeReferenceAssembler;
/**
* 分页查询列表
*/
@ApiOperation("查询抄码商品对照表列表")
@GetMapping("/list")
public TableDataInfo list(CopyCodeReferenceDTO dto) {
CopyCodeReferenceDO copyCodeReferenceDO = copyCodeReferenceAssembler.toDO(dto);
startPage();
List<CopyCodeReferencePO> list = copyCodeReferenceApplicationService.queryList(copyCodeReferenceDO);
return getDataTable(list);
}
}