12345678910111213141516171819202122 |
- <?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="cn.ubitech.ttc.dao.CloudauthoritygroupMapper">
- <!-- 开启二级缓存 -->
- <!--<cache type="org.mybatis.caches.ehcache.LoggingEhcache"/>-->
- <cache type="org.mybatis.caches.ehcache.EhcacheCache">
- <property name="timeToIdleSeconds" value="3600"/>
- <property name="timeToLiveSeconds" value="3600"/>
- <property name="maxEntriesLocalHeap" value="1000"/>
- <property name="maxEntriesLocalDisk" value="10000000"/>
- <property name="memoryStoreEvictionPolicy" value="LRU"/>
- </cache>
- <select id="getGroupByAuthorityId" resultType="cn.ubitech.ttc.entity.Cloudauthoritygroup">
- select g.id, g.comefrom, g.ccomefrom,g.parentid,g.istemplate,g.authname,g.authstatus,g.ispublic,g.remark,g.pushvaluededuct,g.createtime,
- g.creator,g.updatetime,g.updater,lk.typecode from cloudauthoritygroup g,autho_group_lk lk where g.id = lk.gid and lk.cid = #{cid}
- </select>
- <select id="getGroupByUserId" resultType="cn.ubitech.ttc.entity.Cloudauthoritygroup">
- select cg.* from cloudauthoritygroup cg,cloudauthoritygroupuser cgu where cg.id = cgu.gid and cgu.isenabled = 1
- and cgu.userid = #{userid}
- </select>
- </mapper>
|