新增根据组织id查询组织模板授权接口

This commit is contained in:
yangsb
2024-04-01 17:37:53 +08:00
parent 64c0043844
commit 6e9032241e
5 changed files with 35 additions and 6 deletions
@@ -18,7 +18,7 @@
<result property="organName" column="organName"/>
<result property="updateTime" column="updateTime"/>
<collection property="authTemplateList" javaType="java.util.List" ofType="com.cf.imes.module.system.controller.admin.machine.vo.OrganTemplateVO"
select="selectOrganTemplateList" column="{organId=organId, templateName = templateName}" notNullColumn="templateId" >
select="selectOrganTemplateList" column="{organId=organId}" >
</collection>
</resultMap>
@@ -66,7 +66,7 @@
</where>
</select>
<select id="selectOrganTemplatePage" resultMap="orgMap">
<!--<select id="selectOrganTemplatePage" resultMap="orgMap">
select a.id as organId, a.name as organName, max(b.create_time) as updateTime,
case when ('${vo.templateName}' != '') then '${vo.templateName}' else '' end as templateName
from system_organization a, system_organ_machine b
@@ -79,7 +79,7 @@
GROUP BY organId
order by updateTime desc
</select>
</select>-->
<select id="selectOrganTemplateList"
resultType="com.cf.imes.module.system.controller.admin.machine.vo.OrganTemplateVO">
@@ -94,6 +94,7 @@
</if>
</where>
</select>
<select id="xxselectOrganTemplatePage" resultMap="xxMap">
select * from (
select a.id as organId, a.name as organName, max(b.create_time) as updateTime,
@@ -121,4 +122,15 @@
order by updateTime desc
</select>
<select id="selectOrganTemplate" resultMap="orgMap">
select a.id as organId, a.name as organName, max(b.create_time) as updateTime
from system_organization a, system_organ_machine b
<where>
a.id = b.organ_id
and a.id = #{vo.organId}
</where>
GROUP BY organId
</select>
</mapper>