You've already forked FrameTour-BE
feat(video-review): 支持机位多维度评价功能
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 新增NestedMapTypeHandler处理嵌套Map与JSON互转 - 修改VideoReview相关实体类和DTO以支持嵌套Map结构 - 更新数据库查询逻辑以适配新的评价数据结构 - 优化平均分计算方法以处理多机位多维度评分 - 完善MyBatis配置中的typeHandler引用 - 补充视频查询接口返回任务开始结束时间字段 - 修正SQL关联查询条件确保数据准确性
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
<result property="rating" column="rating"/>
|
||||
<result property="content" column="content"/>
|
||||
<result property="cameraPositionRating" column="camera_position_rating"
|
||||
typeHandler="com.ycwl.basic.handler.MapTypeHandler"/>
|
||||
typeHandler="com.ycwl.basic.handler.NestedMapTypeHandler"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="updateTime" column="update_time"/>
|
||||
</resultMap>
|
||||
@@ -38,7 +38,7 @@
|
||||
FROM video_review vr
|
||||
LEFT JOIN video v ON vr.video_id = v.id
|
||||
LEFT JOIN scenic s ON vr.scenic_id = s.id
|
||||
LEFT JOIN sys_user u ON vr.creator = u.id
|
||||
LEFT JOIN admin_user u ON vr.creator = u.id
|
||||
<where>
|
||||
<if test="videoId != null">
|
||||
AND vr.video_id = #{videoId}
|
||||
|
||||
Reference in New Issue
Block a user