From 636af927431b46a0788b7d76233387923135ac0c Mon Sep 17 00:00:00 2001
From: 于紫祥_1901 <email@yuzixiang_1910>
Date: Tue, 01 Dec 2020 13:11:21 +0800
Subject: [PATCH] 数据空判断

---
 src/main/resources/mapper/OrganizationRelationMapper.xml |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/OrganizationRelationMapper.xml b/src/main/resources/mapper/OrganizationRelationMapper.xml
new file mode 100644
index 0000000..d5159c4
--- /dev/null
+++ b/src/main/resources/mapper/OrganizationRelationMapper.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.moral.mapper.OrganizationRelationMapper">
+	<select id="getChildIdByParentId" resultType="java.util.Map">
+		SELECT child_id
+		FROM organization_relation
+		WHERE parent_id IN 
+			<foreach collection="parentIdList" index="index" item="parentId" open="(" separator="," close=")">  
+            	#{parentId}  
+        	</foreach>
+	</select>
+</mapper>
\ No newline at end of file

--
Gitblit v1.8.0