feat: 迁移国内标准法规部分1
This commit is contained in:
@@ -181,6 +181,40 @@
|
||||
parent_id = #{pId} AND valid_flag = 0
|
||||
</select>
|
||||
|
||||
<select id="getNamesByIds" resultType="java.lang.String" parameterType="java.util.List">
|
||||
select
|
||||
group_concat(org_name ORDER BY field(id,
|
||||
<foreach collection="list" index="index" item="item" separator=",">
|
||||
#{item}
|
||||
</foreach>) separator ',')
|
||||
from TS_ORG
|
||||
where
|
||||
id in
|
||||
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
order by field(id,
|
||||
<foreach collection="list" index="index" item="item" separator=",">
|
||||
#{item}
|
||||
</foreach>)
|
||||
</select>
|
||||
|
||||
<select id="getIdsByNames" resultType="java.lang.String" parameterType="java.util.List">
|
||||
select
|
||||
group_concat(id ORDER BY id separator ',')
|
||||
from TS_ORG
|
||||
where VALID_FLAG = '0'
|
||||
and org_name in
|
||||
<foreach collection="list" index="index" item="item" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
<if test="orgType != null">
|
||||
and org_type = #{orgType}
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<!--liwenxuan:判断组织机构名不重复-->
|
||||
<select id="getOrgEOByorgNameAndPidAndId" resultMap="BaseResultMap">
|
||||
select
|
||||
|
||||
Reference in New Issue
Block a user