旭捷内部项目管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.4 KiB

10 months ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.gaotao.modules.language.dao.SysObjectLanguageBaseDao">
  4. <resultMap id="BaseResultMap" type="com.gaotao.modules.language.entity.SysObjectLanguageBase">
  5. <result column="function_id" jdbcType="VARCHAR" property="functionId" />
  6. <result column="object_id" jdbcType="VARCHAR" property="objectId" />
  7. <result column="object_type" jdbcType="VARCHAR" property="objectType" />
  8. <result column="language_value" jdbcType="VARCHAR" property="languageValue" />
  9. <result column="table_id" jdbcType="VARCHAR" property="tableId" />
  10. </resultMap>
  11. <select id="getBaseLanguageListByFidAndOid"
  12. resultType="com.gaotao.modules.language.entity.vo.LanguageBaseLanguageVo">
  13. SELECT
  14. b.object_id,
  15. b.function_id,
  16. b.object_type,
  17. o.table_id,
  18. l.language_code,
  19. o.language_value
  20. FROM
  21. sys_object_language_base b
  22. LEFT JOIN sys_language_list l ON ( 1 = 1 )
  23. LEFT JOIN sys_object_language_others o ON ( b.function_id = o.function_id AND b.table_id=o.table_id AND b.object_id = o.object_id AND o.language_code = l.language_code )
  24. WHERE b.function_id = #{functionId} and b.object_id = #{objectIdKey} and b.table_id = #{tableId}
  25. </select>
  26. </mapper>