From f537f66cb2067cab289dd46c00ba76df20c40e77 Mon Sep 17 00:00:00 2001 From: ty <1577900710@qq.com> Date: Wed, 17 Apr 2024 17:30:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=9D=9E=E7=A9=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hnac/hzinfo/inspect/task/controller/TaskController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java index b9b7f4b..b436ffd 100644 --- a/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java +++ b/hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/task/controller/TaskController.java @@ -1,5 +1,6 @@ package com.hnac.hzinfo.inspect.task.controller; +import cn.hutool.core.collection.CollectionUtil; import com.alibaba.druid.support.json.JSONUtils; import com.alibaba.excel.EasyExcel; import com.baomidou.mybatisplus.core.metadata.IPage; @@ -49,6 +50,7 @@ import org.springblade.resource.vo.PushInfoVO; import org.springblade.system.user.cache.UserCache; import org.springblade.system.user.entity.User; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.util.CollectionUtils; import org.springframework.util.ObjectUtils; import org.springframework.web.bind.annotation.*; @@ -119,7 +121,9 @@ public class TaskController extends BladeController { if(entity.getLttd()!=null&&entity.getLgtd()!=null) {points.add(entity.getLgtd().stripTrailingZeros().toPlainString()+","+entity.getLttd().stripTrailingZeros().toPlainString());} } - detail.setPoint(points); + if (CollectionUtil.isNotEmpty(points)){ + detail.setPoint(points); + } return R.data(detail); }