chore: 更新IDE配置和编译输出文件
This commit is contained in:
1
server/.idea/vcs.xml
generated
1
server/.idea/vcs.xml
generated
@@ -1,6 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
@@ -9,7 +9,7 @@ spring:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/campus_activity?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: ${DB_PASSWORD:root}
|
||||
password: root
|
||||
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
|
||||
@@ -9,7 +9,7 @@ spring:
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/campus_activity?useUnicode=true&characterEncoding=utf8&serverTimezone=Asia/Shanghai&useSSL=false&allowPublicKeyRetrieval=true
|
||||
username: root
|
||||
password: ${DB_PASSWORD:root}
|
||||
password: root
|
||||
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
|
||||
@@ -2,9 +2,13 @@
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.campus.activity.mapper.ReviewMapper">
|
||||
|
||||
<select id="selectActivityReviews" resultType="com.campus.activity.entity.Review">
|
||||
SELECT r.*,
|
||||
u.username,
|
||||
<select id="selectActivityReviews" resultType="com.campus.activity.vo.ReviewVO">
|
||||
SELECT r.id,
|
||||
r.user_id as userId,
|
||||
r.activity_id as activityId,
|
||||
r.rating,
|
||||
r.content,
|
||||
r.created_at as createdAt,
|
||||
u.name as userName,
|
||||
u.avatar as userAvatar
|
||||
FROM review r
|
||||
@@ -13,8 +17,13 @@
|
||||
ORDER BY r.created_at DESC
|
||||
</select>
|
||||
|
||||
<select id="selectMyReviews" resultType="com.campus.activity.entity.Review">
|
||||
SELECT r.*,
|
||||
<select id="selectMyReviews" resultType="com.campus.activity.vo.ReviewVO">
|
||||
SELECT r.id,
|
||||
r.user_id as userId,
|
||||
r.activity_id as activityId,
|
||||
r.rating,
|
||||
r.content,
|
||||
r.created_at as createdAt,
|
||||
a.title as activityTitle
|
||||
FROM review r
|
||||
LEFT JOIN activity a ON r.activity_id = a.id
|
||||
|
||||
Reference in New Issue
Block a user