:bug:修复了一些功能

This commit is contained in:
hello-hao
2023-09-25 14:03:53 +08:00
parent fc53e4c8ac
commit 790fded8ca
4 changed files with 15 additions and 15 deletions
@@ -47,7 +47,7 @@ public class IndexController {
@RequestMapping(value = "/")
public String Welcome(Model model, HttpServletRequest httpServletRequest) {
model.addAttribute("name", "服务端程序(开源版)");
model.addAttribute("version", "20230918");
model.addAttribute("version", "20230925");
model.addAttribute("ip", GetIPS.getIpAddr(httpServletRequest));
model.addAttribute("links", "https://github.com/Hello-hao/tbed");
return "welcome";
+7 -5
View File
@@ -9,11 +9,12 @@
FROM
`album`
<where>
1=1
<if test="albumkey != null">
`albumkey` = #{albumkey}
and `albumkey` = #{albumkey}
</if>
<if test="userid != null">
`userid` = #{userid}
and `userid` = #{userid}
</if>
</where>
</select>
@@ -38,14 +39,15 @@
u.username
FROM `album` a LEFT JOIN user u on a.userid = u.id
<where>
1=1
<if test="albumkey != null">
`albumkey` like '%${albumkey}%'
and `albumkey` like '%${albumkey}%'
</if>
<if test="username != null">
`username` like '%${username}%'
and `username` like '%${username}%'
</if>
<if test="userid != null">
a.userid = #{userid}
and a.userid = #{userid}
</if>
</where>
order by a.createdate
@@ -9,6 +9,7 @@
FROM
`imgandalbum`
<where>
1=1
<if test="albumkey != null">
`albumkey` = #{albumkey}
</if>
@@ -21,6 +22,7 @@
FROM
`imgandalbum`
<where>
1=1
<if test="imgname != null">
`imgname` = #{imgname}
</if>