From facedd4a966446854e4d2dbdf3b287bebc77b5ea Mon Sep 17 00:00:00 2001
From: yuxc <653031404@qq.com>
Date: 星期三, 21 六月 2023 15:21:43 +0800
Subject: [PATCH] 1、主要修改删除代码,之前删除类型写固定的,现在改为通过业务类型来进行操作。

---
 Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java |   14 ++++++--------
 1 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java
index a516a4d..c178bcd 100644
--- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java
+++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/CodeButtonWrapper.java
@@ -16,16 +16,12 @@
  */
 package com.vci.ubcs.code.wrapper;
 
+import com.vci.ubcs.starter.web.util.BeanUtilForVCI;
 import com.vci.ubcs.system.cache.DictCache;
 import com.vci.ubcs.code.entity.CodeButton;
 import com.vci.ubcs.code.vo.pagemodel.CodeButtonVO;
 import org.springblade.core.mp.support.BaseEntityWrapper;
-import org.springblade.core.redis.cache.BladeRedis;
-import org.springblade.core.tool.utils.BeanUtil;
-import org.springblade.core.tool.utils.Func;
-import org.springframework.boot.autoconfigure.security.SecurityProperties;
 
-import java.util.List;
 import java.util.Objects;
 
 /**
@@ -42,9 +38,11 @@
 
 	@Override
 	public CodeButtonVO entityVO(CodeButton codebutton) {
-		CodeButtonVO codebuttonVO = Objects.requireNonNull(BeanUtil.copy(codebutton, CodeButtonVO.class));
-		codebuttonVO.setUsedpositiontypeText(DictCache.getValue("codeButtonPosition", codebutton.getUsedpositiontype()));
-		codebuttonVO.setLcStatusText(DictCache.getValue("codeLcstatus", codebutton.getLcstatus()));
+		CodeButtonVO codebuttonVO = new CodeButtonVO();;
+		BeanUtilForVCI.copyPropertiesIgnoreCase(codebutton,codebuttonVO);
+		Objects.requireNonNull(codebuttonVO);
+		codebuttonVO.setUsedpositiontypeText(DictCache.getValue("codeButtonPosition", codebutton.getUsedPositionType()));
+		codebuttonVO.setLcStatusText(DictCache.getValue("codeLcstatus", codebutton.getLcStatus()));
 		return codebuttonVO;
 	}
 

--
Gitblit v1.9.3