From 3eced4f79a9cf7b211e86b26b8c8ca20ae3f4576 Mon Sep 17 00:00:00 2001 From: xiejun <xiejun@vci-tech.com> Date: 星期一, 29 一月 2024 09:44:59 +0800 Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java new file mode 100644 index 0000000..c4d9e71 --- /dev/null +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/annotation/MdmSerialAlgorithm.java @@ -0,0 +1,44 @@ +package com.vci.ubcs.code.annotation; + +import org.springframework.core.annotation.AliasFor; +import org.springframework.stereotype.Component; + +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * 鑷畾涔夋祦姘寸畻娉曠殑娉ㄨВ + * @author xiejun + * @date 2023-11-09 + */ +@Target({ElementType.TYPE}) +@Retention(RetentionPolicy.RUNTIME) +@Component +public @interface MdmSerialAlgorithm { + + /** + * bean鐨勫悕绉� + * 鍊硷紝瀹為檯灏辨槸杩欎釜娉ㄨВ鎵�鍦ㄧ殑绫荤殑鍏ㄨ矾寰� + * @return 鍊� + */ + @AliasFor( + annotation = Component.class + ) + String value() default ""; + + /** + * 浜嬩欢鐨勫悕绉� + * @return 浜嬩欢鍚嶇О + */ + String text(); + + /** + * 鎻忚堪 + * @return 鎻忚堪 + */ + String description() default ""; + + String serialType() default ""; +} -- Gitblit v1.9.3