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.
29 lines
1.4 KiB
29 lines
1.4 KiB
<?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.gaotao.modules.language.dao.SysObjectLanguageBaseDao">
|
|
<resultMap id="BaseResultMap" type="com.gaotao.modules.language.entity.SysObjectLanguageBase">
|
|
<result column="function_id" jdbcType="VARCHAR" property="functionId" />
|
|
<result column="object_id" jdbcType="VARCHAR" property="objectId" />
|
|
<result column="object_type" jdbcType="VARCHAR" property="objectType" />
|
|
<result column="language_value" jdbcType="VARCHAR" property="languageValue" />
|
|
<result column="table_id" jdbcType="VARCHAR" property="tableId" />
|
|
</resultMap>
|
|
|
|
<select id="getBaseLanguageListByFidAndOid"
|
|
resultType="com.gaotao.modules.language.entity.vo.LanguageBaseLanguageVo">
|
|
|
|
SELECT
|
|
b.object_id,
|
|
b.function_id,
|
|
b.object_type,
|
|
o.table_id,
|
|
l.language_code,
|
|
o.language_value
|
|
FROM
|
|
sys_object_language_base b
|
|
LEFT JOIN sys_language_list l ON ( 1 = 1 )
|
|
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 )
|
|
WHERE b.function_id = #{functionId} and b.object_id = #{objectIdKey} and b.table_id = #{tableId}
|
|
|
|
</select>
|
|
</mapper>
|