From 594563629a879d0ae6af2a3bda7eba1c8b3f9fbb Mon Sep 17 00:00:00 2001
From: xiejun <xj@2023>
Date: 星期五, 13 十月 2023 12:23:55 +0800
Subject: [PATCH] 接口免密登录获取缓存租户接口.

---
 Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/StatusServiceImpl.java |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/StatusServiceImpl.java b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/StatusServiceImpl.java
index c297a3c..d87ce3d 100644
--- a/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/StatusServiceImpl.java
+++ b/Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/service/impl/StatusServiceImpl.java
@@ -6,11 +6,13 @@
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.vci.ubcs.omd.constant.BtmTypeConstant;
-import com.vci.ubcs.omd.entity.LifeCycleRule;
-import com.vci.ubcs.omd.entity.Status;
-import com.vci.ubcs.omd.mapper.StatusMapper;
+import com.vci.ubcs.omd.entity.*;
+import com.vci.ubcs.omd.mapper.*;
 import com.vci.ubcs.omd.service.IStatusService;
+import com.vci.ubcs.omd.vo.BtmTypeVO;
 import com.vci.ubcs.omd.vo.StatusVO;
+import com.vci.ubcs.omd.wrapper.BtmTypeWrapper;
+import com.vci.ubcs.omd.wrapper.LifeCycleRuleWrapper;
 import com.vci.ubcs.omd.wrapper.StatusWrapper;
 import com.vci.ubcs.starter.exception.VciBaseException;
 import com.vci.ubcs.starter.web.util.BeanUtil;
@@ -23,6 +25,7 @@
 import org.springframework.stereotype.Service;
 import org.springframework.util.CollectionUtils;
 
+import javax.annotation.Resource;
 import java.util.*;
 import java.util.regex.Pattern;
 import java.util.stream.Collectors;
@@ -37,7 +40,10 @@
 public class StatusServiceImpl extends ServiceImpl<StatusMapper, Status> implements IStatusService {
 
 	private final String REGEXP = "^[A-Za-z]+$";
-
+	@Resource
+	private BtmTypeMapper btmTypeMapper;
+	@Resource
+	private LifeCycleNodeMapper lifeCycleNodeMapper;
 	/**
 	 * 鑾峰彇鐘舵�佸垪琛�
 	 *
@@ -454,4 +460,21 @@
 	public boolean checkStatusUsed(String pkStatus) throws VciBaseException {
 		return false;
 	}
+
+	/**
+	 * 鏌ョ湅搴旂敤鑼冨洿
+	 *
+	 * @param id id
+	 * @return 鎵ц缁撴灉
+	 */
+	@Override
+	public List<BtmTypeVO> getApplyRange(String id) {
+		VciBaseUtil.alertNotNull(id,"鐘舵�佽嫳鏂囧悕绉�");
+		List<LifeCycleNode> selectList = lifeCycleNodeMapper.selectList(Wrappers.<LifeCycleNode>query().lambda().eq(LifeCycleNode::getId,id));
+		List<String>lifeCycleOidList =	new ArrayList<>();
+		if(!CollectionUtils.isEmpty(selectList)){
+			lifeCycleOidList = selectList.stream().map(LifeCycleNode::getLifeCycleOid).collect(Collectors.toList());
+		}
+		return BtmTypeWrapper.build().listEntityVO(btmTypeMapper.selectList(Wrappers.<BtmType>query().lambda().in(BtmType::getOid,lifeCycleOidList)));
+	}
 }

--
Gitblit v1.9.3