pad端指令预览接口增加逻辑处理:如果nu_id elder_id 时间 参数缺少则返回空数据
This commit is contained in:
parent
b96f6e0125
commit
acede50af2
|
|
@ -8,6 +8,7 @@ import com.nu.modules.care.api.ICareDirectivePlanApi;
|
||||||
import com.nu.modules.order.api.IDirectiveOrderApi;
|
import com.nu.modules.order.api.IDirectiveOrderApi;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.apache.commons.compress.utils.Lists;
|
import org.apache.commons.compress.utils.Lists;
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.common.api.vo.Result;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.util.CollectionUtils;
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
@ -264,6 +265,13 @@ public class CareDirectiveApi {
|
||||||
List<DirectiveOrderEntity> current = Lists.newArrayList();
|
List<DirectiveOrderEntity> current = Lists.newArrayList();
|
||||||
List<DirectiveOrderEntity> future = Lists.newArrayList();
|
List<DirectiveOrderEntity> future = Lists.newArrayList();
|
||||||
List<DirectiveOrderEntity> all = 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);
|
history = directiveOrderApi.queryHistory(dto);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue