mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-14 05:42:06 +08:00
新增根据组织id查询组织模板授权接口
This commit is contained in:
+15
-3
@@ -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>
|
||||
Reference in New Issue
Block a user