Browse Source

完善教研详情返回值

tags/正式3.10.1
王宁 1 year ago
parent
commit
ad194ed252

+ 1
- 2
sapi/src/main/java/com/xhkjedu/sapi/service/research/ResearchUserService.java View File

@@ -12,7 +12,6 @@ import com.xhkjedu.vo.ResultVo;
12 12
 import org.springframework.beans.factory.annotation.Autowired;
13 13
 import org.springframework.stereotype.Service;
14 14
 
15
-import java.util.ArrayList;
16 15
 import java.util.List;
17 16
 import java.util.Map;
18 17
 
@@ -180,7 +179,7 @@ public class ResearchUserService {
180 179
         ruser.setReviewtime(N_Utils.getSecondTimestamp());
181 180
         Integer rtn = researchUserMapper.updateTeacherResearch(ruser);
182 181
         if(rtn > 0){
183
-            return new ResultVo(0,"保存成功");
182
+            return new ResultVo(0,"保存成功",ruser);
184 183
         }else {
185 184
             return new ResultVo(1,"保存失败");
186 185
         }

+ 2
- 0
sapi/src/main/java/com/xhkjedu/sapi/vo/research/ResearchUserVo.java View File

@@ -71,4 +71,6 @@ public class ResearchUserVo {
71 71
     private List<Map> others = new ArrayList<>();
72 72
 
73 73
     private List<Map> schools = new ArrayList<>();
74
+
75
+    private Integer ruid;//教研教师id
74 76
 }

+ 1
- 1
sapi/src/main/resources/mapper/research/ResearchUserMapper.xml View File

@@ -58,7 +58,7 @@
58 58
     <!-- 根据id获取教研详细信息 -->
59 59
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
60 60
         SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,r.schoolid,
61
-        r.starttime,r.stoptime,r.readnum,r.mp4code,r.publiced,r.hashb,ru.rustate,ru.content,ru.reviewtime,u.username createname
61
+        r.starttime,r.stoptime,r.readnum,r.mp4code,r.publiced,r.hashb,ru.rustate,ru.ruid,ru.content,ru.reviewtime,u.username createname
62 62
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
63 63
         left join t_user u on r.createid=u.userid
64 64
         WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1

Loading…
Cancel
Save