详情查询修改

This commit is contained in:
秦鸿展
2026-05-07 17:43:54 +08:00
parent afdea9dbf1
commit b754aaf949
3 changed files with 24 additions and 6 deletions
@@ -7,6 +7,7 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.List;
/**
* 批次管理详情
@@ -66,6 +67,10 @@ public class BatchDetailDomainService {
* 获取批次管理详情详细信息
*/
public List<BatchDetailPO> getBatchDetailListByBatchId(Long batchId) {
// batchId 为空时不能查列表:XML 中 batchId 为 null 不拼条件,会返回全部批次属性
if (batchId == null) {
return new ArrayList<>();
}
BatchDetailDO batchDetailDO = new BatchDetailDO();
batchDetailDO.setBatchId(batchId);
return batchDetailService.queryList(batchDetailDO);