master:生产需求列表导出调优;
parent
6a6590040e
commit
c17e2e932a
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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<>();
|
||||
|
|
|
|||
Loading…
Reference in New Issue