多语言-后台-导图片的api

This commit is contained in:
2023-06-08 19:36:24 +08:00
committed by khalil
parent 5ba010265c
commit 0b3af11ac0
2 changed files with 26 additions and 0 deletions

View File

@@ -1,8 +1,10 @@
package com.accompany.admin.mapper.api;
import com.accompany.admin.model.GiftSendRecordMgr;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;
/**
* <br>接口描述: 深海奇缘mapper
@@ -18,4 +20,8 @@ public interface MyApiAdminMapper {
List<Long> getExceptionRoomUid();
List<Long> listAllUids();
List<Map<String, Object>> listTablePic();
List<Map<String, Object>> listPicUrl(@Param("p") Map<String, Object> map);
}

View File

@@ -22,4 +22,24 @@
select uid from users order by last_login_time desc
</select>
<select id="listTablePic" resultType="java.util.Map">
select a.COLUMN_NAME url, a.TABLE_NAME `table`, b.COLUMN_NAME `key` from information_schema.COLUMNS a
left join (select TABLE_NAME, COLUMN_NAME, COLUMN_KEY from information_schema.COLUMNS
where TABLE_SCHEMA = 'peko'
and TABLE_NAME in ('activity_pack', 'anchor_grade', 'anchor_level_award_config', 'anchor_level_experience', 'car_goods', 'chat_bubble', 'first_page_banner',
'game_manage_banner', 'gift', 'headwear', 'info_card', 'level_charm', 'level_experience', 'mini_game', 'nameplate', 'room', 'room_tag',
'user_nameplate', 'vip_auth_info', 'vip_info')
and COLUMN_KEY = 'PRI') b on a.TABLE_NAME = b.TABLE_NAME
where a.TABLE_SCHEMA = 'peko'
and a.TABLE_NAME in ('activity_pack', 'anchor_grade', 'anchor_level_award_config', 'anchor_level_experience', 'car_goods', 'chat_bubble', 'first_page_banner',
'game_manage_banner', 'gift', 'headwear', 'info_card', 'level_charm', 'level_experience', 'mini_game', 'nameplate', 'room', 'room_tag',
'user_nameplate', 'vip_auth_info', 'vip_info')
and a.DATA_TYPE = 'varchar' and a.CHARACTER_MAXIMUM_LENGTH >= 50
and (instr(a.COLUMN_NAME, 'url') > 0 or instr(a.COLUMN_NAME, 'pic') > 0 or instr(a.COLUMN_NAME, 'icon') > 0 or instr(a.COLUMN_NAME, 'logo') > 0)
</select>
<select id="listPicUrl" resultType="java.util.Map">
select ${p.url} `url`, #{p.table} `table`, ${p.key} `key` from ${p.table}
</select>
</mapper>