Newer
Older
huludao / src / main / resources / mapper / Data_Org_JurisdictionDao.xml
@新烽开发者 新烽开发者 on 19 Jul 841 bytes init
<?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.newfiber.api.pc.dao.SysOrgJurisdictionDao" >


<select id="GetOrgRoleJur" parameterType="string" resultType="com.newfiber.api.pc.model.entity.OrgJurisdiction">


   select  sys_role_jurisdiction.jurisdiction_no, sys_role_jurisdiction.type from sys_role_org  LEFT JOIN    sys_role_jurisdiction
   
   ON  sys_role_org.role_no=  sys_role_jurisdiction.role_no

   where  sys_role_org.org_no =#{orgNo,jdbcType=VARCHAR}

</select>
  <select id="GetOrgJur"  parameterType="string" resultType="com.newfiber.api.pc.model.entity.OrgJurisdiction">
  select DISTINCT jurisdiction_no, type from sys_org_jurisdiction where org_no=#{orgNo,jdbcType=VARCHAR}
  </select>


  
</mapper>