Skip to content

Commit

Permalink
补充 wrapper 使用 TypeHandler 压缩广告图片
Browse files Browse the repository at this point in the history
  • Loading branch information
qmdx committed Jun 25, 2024
1 parent ed5c330 commit 9b933b4
Show file tree
Hide file tree
Showing 27 changed files with 22 additions and 3 deletions.
Binary file modified public/images/db/cubird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/db2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/firebird.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/gauss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/hsql.webp
Binary file not shown.
Binary file modified public/images/db/kingbase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/oceanbase.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/redshift.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/shenzhoutongyong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/xingruige.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/db/youxuan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/aizuda.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/api-docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/bean-searcher.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/dyang.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/flowlong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/layui-vue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/nan-cheung.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/rulego.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/link/sa-token.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/sponsors/avue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed public/images/sponsors/diboot.png
Binary file not shown.
Binary file modified public/images/sponsors/flowlong.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/images/sponsors/mall4j.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/components/SponsorBanner.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
}
function selectSponsors() {
currentSponsors = getRandomElements(sponsors, 3);
currentSponsors = getRandomElements(sponsors, 4);
}
const opacity = tweened(1, {
Expand Down Expand Up @@ -60,7 +60,7 @@
style="opacity: {$opacity}"
>
<figure
class="border rounded-lg p-3 dark:bg-slate-800 dark:highlight-white/5"
class="border rounded-lg p-2 dark:bg-slate-800 dark:highlight-white/5"
>
<figcaption class="flex items-center space-x-4">
<img
Expand All @@ -83,7 +83,7 @@
</a>
{/each}
<div class="w-full block flex justify-between text-[11px]">
<span>广告采取随机轮播3个方式显示</span>
<span>广告采取随机轮播方式显示</span>
<a
class="text-current no-underline hover:no-underline text-red-500"
href="/resources/support/#成为赞助商"
Expand Down
7 changes: 7 additions & 0 deletions src/config/sponsors.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
"logo": "/images/sponsors/flowlong.png",
"link": "https://doc.flowlong.com/?from=mp"
},
{
"title": "AVUE-DATA",
"subtitle": "avue-data 数据大屏",
"description": "VUE 专业高效的数据大屏",
"logo": "/images/sponsors/avue.png",
"link": "https://data.avuejs.com/?from=mp"
},
{
"title": "Mall4J",
"subtitle": "Java 开源商城系统",
Expand Down
12 changes: 12 additions & 0 deletions src/content/docs/guides/wrapper.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2662,6 +2662,18 @@ lambdaUpdateWrapper.set(User::getName, "李四");
:::


## 使用 TypeHandler

> `wrapper` 中使用 `typeHandler` 需要特殊处理利用 `formatSqlMaybeWithParam` 方法
```java
// 查询
queryWrapper.apply("type={0,typeHandler="+ MyTypeHandler.class.getCanonicalName()+ "}", "待处理字符串");

// 更新
updateWrapper.setSql("type={0,javaType=string,jdbcType=VARCHAR,typeHandler=xxx.xxx.MyTypeHandler}", "待处理字符串");
```


## 使用提示

Expand Down

0 comments on commit 9b933b4

Please sign in to comment.