master:生产需求列表导出调优;

pull/1121/head
liujiang 2025-10-22 19:34:06 +08:00
parent 6a6590040e
commit c17e2e932a
3 changed files with 7 additions and 0 deletions

View File

@ -20,6 +20,8 @@ public class StoreProdDemandExportVO {
@ApiModelProperty(value = "档口ID", required = true)
@NotNull(message = "档口ID不能为空")
private Long storeId;
@ApiModelProperty(value = "需求状态 1 待生产 2 生产中 3 生产完成")
private Integer detailStatus;
@ApiModelProperty(value = "档口需求明细ID")
private List<Long> storeProdDemandDetailIdList;

View File

@ -16,6 +16,8 @@ public class StoreProdDemandExportDTO {
@ApiModelProperty(value = "档口ID")
private Long storeId;
@ApiModelProperty(value = "需求状态 1 待生产 2 生产中 3 生产完成")
private Integer detailStatus;
@ApiModelProperty(value = "档口需求明细ID")
private List<Long> storeProdDemandDetailIdList;

View File

@ -406,6 +406,9 @@ public class StoreProductDemandServiceImpl implements IStoreProductDemandService
if (CollectionUtils.isNotEmpty(exportDTO.getStoreProdDemandDetailIdList())) {
queryWrapper.in(StoreProductDemandDetail::getId, exportDTO.getStoreProdDemandDetailIdList());
}
if (ObjectUtils.isNotEmpty(exportDTO.getDetailStatus())) {
queryWrapper.eq(StoreProductDemandDetail::getDetailStatus, exportDTO.getDetailStatus());
}
List<StoreProductDemandDetail> demandDetailList = this.storeProdDemandDetailMapper.selectList(queryWrapper);
if (CollectionUtils.isEmpty(demandDetailList)) {
return new ArrayList<>();