From d88379444c5790417b1b7495e0e3ad5e041b799e Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期二, 04 七月 2023 18:06:21 +0800 Subject: [PATCH] 1、对redis取值方式进行修改。 2、对模板属性批量保存的DTO进行了大写的改动。 --- Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/processor/ddl/DdlMsMapperProcessor.java | 18 ++++++++++-------- 1 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/processor/ddl/DdlMsMapperProcessor.java b/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/processor/ddl/DdlMsMapperProcessor.java index c69fd05..a21d862 100644 --- a/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/processor/ddl/DdlMsMapperProcessor.java +++ b/Source/UBCS/ubcs-service/ubcs-ddl/src/main/java/com/vci/ubcs/ddl/processor/ddl/DdlMsMapperProcessor.java @@ -3,7 +3,9 @@ import com.vci.ubcs.ddl.mapper.DdlMSMapper; import com.vci.ubcs.ddl.mapper.DdlMapper; +import com.vci.ubcs.starter.util.VciSpringUtil; import com.vci.ubcs.starter.web.util.VciBaseUtil; +import org.springframework.stereotype.Component; import org.springframework.util.CollectionUtils; import javax.annotation.PostConstruct; @@ -17,20 +19,20 @@ * @author LiHang * @date 2023/4/24 */ +@Component public class DdlMsMapperProcessor extends DdlMapperProcessor{ - @Resource - private DdlMSMapper msMapper; + private static DdlMapper mapper = VciSpringUtil.getBean(DdlMSMapper.class); - private static DdlMapper mapper; - - @PostConstruct - public void init(){ - mapper = msMapper; - } public DdlMsMapperProcessor() { super(mapper); + System.out.println("-----------------"); + if (mapper != null){ + System.out.println("[success]::鍔犺浇Sql Server鏁版嵁搴揇DL鎿嶄綔鏈嶅姟鎴愬姛"); + }else { + System.out.println("[fail]::鍔犺浇Sql Server鏁版嵁搴揇DL鎿嶄綔鏈嶅姟澶辫触"); + } } @Override -- Gitblit v1.9.3