From c678894e37d15cca116d962eba5c107c99176945 Mon Sep 17 00:00:00 2001
From: lisy <linlangsur163@163.com>
Date: 星期四, 20 七月 2023 17:39:05 +0800
Subject: [PATCH] 开始上课的主页中课包列表展示;bmi工具类匹配对应的身体状态

---
 cloud-server-account/src/main/java/com/dsh/account/service/impl/EvaluateStudentServiceImpl.java |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/cloud-server-account/src/main/java/com/dsh/account/service/impl/EvaluateStudentServiceImpl.java b/cloud-server-account/src/main/java/com/dsh/account/service/impl/EvaluateStudentServiceImpl.java
index 5d1b1d0..a7c7587 100644
--- a/cloud-server-account/src/main/java/com/dsh/account/service/impl/EvaluateStudentServiceImpl.java
+++ b/cloud-server-account/src/main/java/com/dsh/account/service/impl/EvaluateStudentServiceImpl.java
@@ -1,7 +1,7 @@
 package com.dsh.account.service.impl;
 
-import com.baomidou.mybatisplus.mapper.EntityWrapper;
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.dsh.account.entity.EvaluateStudent;
 import com.dsh.account.entity.TStudent;
 import com.dsh.account.mapper.EvaluateStudentMapper;
@@ -11,6 +11,7 @@
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import javax.annotation.Resource;
 import java.text.SimpleDateFormat;
 import java.util.ArrayList;
 import java.util.Arrays;
@@ -27,7 +28,7 @@
 @Service
 public class EvaluateStudentServiceImpl extends ServiceImpl<EvaluateStudentMapper, EvaluateStudent> implements EvaluateStudentService {
 
-    @Autowired
+    @Resource
     private TStudentMapper tstuMapper;
 
     private final SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
@@ -36,7 +37,7 @@
     public List<StuCommentsVo> queryStuCommentsList(Integer stuId) {
         List<StuCommentsVo> stuCommentsVos = new ArrayList<>();
         TStudent tStudent = tstuMapper.selectById(stuId);
-        List<EvaluateStudent> evaluateStudents = this.baseMapper.selectList(new EntityWrapper<EvaluateStudent>()
+        List<EvaluateStudent> evaluateStudents = this.list(new QueryWrapper<EvaluateStudent>()
                 .eq("studentId",stuId ));
         if (evaluateStudents.size() > 0){
             for (EvaluateStudent evaluateStudent : evaluateStudents) {

--
Gitblit v1.7.1