wms 库存管理-抄码商品对照表-打印页面查询

This commit is contained in:
zhaoqing
2026-04-14 20:52:03 +08:00
parent 281bf9b965
commit 76e82f635a
10 changed files with 97 additions and 9 deletions
@@ -1,13 +1,14 @@
package com.mhd.wms.interfaces.dto.copyCodeReference;
import com.mhd.common.core.annotation.Excel;
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")
@ApiModel(value = "抄码商品对照表请求DTO")
public class CopyCodeReferenceDTO extends BaseVOEntity {
private static final long serialVersionUID = 1L;
@@ -24,6 +25,8 @@ public class CopyCodeReferenceDTO extends BaseVOEntity {
private String batchNumber;
@ApiModelProperty("托盘号")
private String containerCode;
private String boxPalletNo;
}
@@ -2,6 +2,7 @@ package com.mhd.wms.interfaces.facadeApi.copyCodeReference;
import com.mhd.common.core.web.controller.BaseController;
import com.mhd.common.core.web.domain.AjaxResult;
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;
@@ -10,11 +11,10 @@ import com.mhd.wms.interfaces.assember.copyCodeReference.CopyCodeReferenceAssemb
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 org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.math.BigDecimal;
import java.util.List;
@RestController
@@ -32,13 +32,19 @@ public class CopyCodeReferenceApi extends BaseController {
*/
@ApiOperation("查询抄码商品对照表列表")
@GetMapping("/list")
public TableDataInfo list(CopyCodeReferenceDTO dto) {
CopyCodeReferenceDO copyCodeReferenceDO = copyCodeReferenceAssembler.toDO(dto);
public TableDataInfo list(CopyCodeReferenceDTO copyCodeReferenceDTO) {
CopyCodeReferenceDO copyCodeReferenceDO = copyCodeReferenceAssembler.toDO(copyCodeReferenceDTO);
startPage();
List<CopyCodeReferencePO> list = copyCodeReferenceApplicationService.queryList(copyCodeReferenceDO);
return getDataTable(list);
}
@ApiOperation("打印-查询重量列表")
@PostMapping("/queryWeightList")
public AjaxResult queryWeightList(@RequestBody CopyCodeReferenceDTO dto) {
List<CopyCodeReferencePO> weightList = copyCodeReferenceApplicationService.queryWeightList(dto);
return AjaxResult.success(weightList);
}
}