pad端指令预览接口增加逻辑处理:如果nu_id elder_id 时间 参数缺少则返回空数据

This commit is contained in:
1378012178@qq.com 2026-01-09 10:55:35 +08:00
parent b96f6e0125
commit acede50af2
1 changed files with 8 additions and 0 deletions

View File

@ -8,6 +8,7 @@ import com.nu.modules.care.api.ICareDirectivePlanApi;
import com.nu.modules.order.api.IDirectiveOrderApi;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.compress.utils.Lists;
import org.apache.commons.lang.StringUtils;
import org.jeecg.common.api.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
@ -264,6 +265,13 @@ public class CareDirectiveApi {
List<DirectiveOrderEntity> current = Lists.newArrayList();
List<DirectiveOrderEntity> future = Lists.newArrayList();
List<DirectiveOrderEntity> all = Lists.newArrayList();
if (StringUtils.isBlank(dto.getElderId()) || StringUtils.isBlank(dto.getNuId()) || dto.getQueryDate() == null) {
result.put("history", history);
result.put("current", current);
result.put("future", future);
result.put("all", all);
return Result.OK(result);
}
//历史
history = directiveOrderApi.queryHistory(dto);