From 8a74e9c0f3f9fbf5709201719431d0a2b7cb8794 Mon Sep 17 00:00:00 2001
From: 潘志宝 <979469083@qq.com>
Date: 星期五, 22 十一月 2024 10:06:07 +0800
Subject: [PATCH] 计划数据图表

---
 iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MethodSettingServiceImpl.java |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MethodSettingServiceImpl.java b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MethodSettingServiceImpl.java
index 3951a35..8867eeb 100644
--- a/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MethodSettingServiceImpl.java
+++ b/iailab-module-model/iailab-module-model-biz/src/main/java/com/iailab/module/model/mpk/service/impl/MethodSettingServiceImpl.java
@@ -1,12 +1,10 @@
 package com.iailab.module.model.mpk.service.impl;
 
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.iailab.framework.common.service.impl.BaseServiceImpl;
 import com.iailab.framework.common.util.object.ConvertUtils;
 import com.iailab.module.model.mpk.dao.MethodSettingDao;
 import com.iailab.module.model.mpk.dto.MethodSettingDTO;
 import com.iailab.module.model.mpk.entity.MethodSettingEntity;
-import com.iailab.module.model.mpk.entity.SettingSelectEntity;
 import com.iailab.module.model.mpk.service.MethodSettingService;
 import com.iailab.module.model.mpk.service.SettingSelectService;
 import lombok.extern.slf4j.Slf4j;
@@ -16,7 +14,6 @@
 import org.springframework.util.CollectionUtils;
 
 import java.util.List;
-import java.util.Map;
 import java.util.UUID;
 
 /**
@@ -35,6 +32,10 @@
         List<MethodSettingEntity> entityList = ConvertUtils.sourceToTarget(list, MethodSettingEntity.class);
         for(int i = 0; i < entityList.size(); i++){
             MethodSettingEntity entity = entityList.get(i);
+            if (StringUtils.isNotBlank(entity.getValue())){
+                // 去掉空格
+                entity.setValue(entity.getValue().trim().replace("\\s+", ""));
+            }
             entity.setId(UUID.randomUUID().toString());
             entity.setMethodId(MethodId);
             entity.setSort(i);

--
Gitblit v1.9.3