From f3041c38a003af7c26c1a3b1e38a691e7ebedf09 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 13 十月 2019 23:40:07 +0800
Subject: [PATCH] 修改查询上级组织时,查询到方法传行的错误
---
UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java b/UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java
index 3dacb3f..407ea0a 100644
--- a/UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java
+++ b/UserService/src/main/java/com/java110/user/smo/impl/OrgInnerServiceSMOImpl.java
@@ -11,6 +11,8 @@
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import java.util.ArrayList;
@@ -56,6 +58,28 @@
return orgServiceDaoImpl.queryOrgsCount(BeanConvertUtil.beanCovertMap(orgDto));
}
+
+ /**
+ * <p>鏌ヨ涓婄骇缁勭粐淇℃伅</p>
+ *
+ *
+ * @param orgDto 鏁版嵁瀵硅薄鍒嗕韩
+ * @return OrgDto 瀵硅薄鏁版嵁
+ */
+ @Override
+ public List<OrgDto> queryParentOrgs(@RequestBody OrgDto orgDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ List<OrgDto> orgs = BeanConvertUtil.covertBeanList(orgServiceDaoImpl.getParentOrgInfo(BeanConvertUtil.beanCovertMap(orgDto)), OrgDto.class);
+
+ if(orgs == null){
+ orgs = new ArrayList<>();
+ }
+
+ return orgs;
+ }
+
public IOrgServiceDao getOrgServiceDaoImpl() {
return orgServiceDaoImpl;
}
--
Gitblit v1.8.0