From a2eeba84bed5de1c19b74279ee7f096b5eff5528 Mon Sep 17 00:00:00 2001 From: yuxc <653031404@qq.com> Date: 星期三, 13 九月 2023 11:50:00 +0800 Subject: [PATCH] 1、加载分类的时候提示没有编码规则错误,同时处理由此导致的RMDataTransmitObject未初始化保存问题,在创建bean时就进行了初始化。 --- Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeFixedValueServiceImpl.java | 20 +++++++++++++++++++- 1 files changed, 19 insertions(+), 1 deletions(-) diff --git a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeFixedValueServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeFixedValueServiceImpl.java index 97fc88d..47d537f 100644 --- a/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeFixedValueServiceImpl.java +++ b/Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/service/impl/CodeFixedValueServiceImpl.java @@ -3,6 +3,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.vci.ubcs.code.dto.CodeFixedValueDTO; @@ -24,7 +25,6 @@ import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.api.R; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.domain.Page; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; @@ -74,6 +74,24 @@ } /** + * 鏍规嵁codeFixedSecOid鏌ヨ鐮佸�� + * @param codeFixedSecOids + * @return + */ + @Override + public List<CodeFixedValue> listFixedValueByCodeFixedSecOid(List<String> codeFixedSecOids){ + if(codeFixedSecOids.isEmpty()){ + return new ArrayList<CodeFixedValue>(); + } + /*List<CodeFixedValue> codeFixedValues = codeFixedValueMapper.selectList( + Wrappers.<CodeFixedValue>query().lambda() + .in(CodeFixedValue::getCodeFixedSecOid, codeFixedSecOids) + );*/ + List<CodeFixedValue> codeFixedValues = codeFixedValueMapper.selectByPageByCodeFixedSecOid(codeFixedSecOids, new Page<>(1, -1)); + return codeFixedValues; + } + + /** * 澧炲姞鍥哄畾鐮佹鐨勭爜鍊� * @param codeFixedValueDTO 鍥哄畾鐮佹鐨勭爜鍊兼暟鎹紶杈撳璞� * @return 鎵ц缁撴灉 -- Gitblit v1.9.3