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

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

71
     private List<Map> others = new ArrayList<>();
71
     private List<Map> others = new ArrayList<>();
72
 
72
 
73
     private List<Map> schools = new ArrayList<>();
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
     <!-- 根据id获取教研详细信息 -->
58
     <!-- 根据id获取教研详细信息 -->
59
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
59
     <select id="getResearchUserDetail" resultType="com.xhkjedu.sapi.vo.research.ResearchUserVo">
60
         SELECT r.researchid,r.researchname,r.researchcontent,r.researchpath,r.researchcover,r.duration,r.filesize,r.schoolid,
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
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
62
         FROM t_research_user ru LEFT JOIN t_research r ON ru.researchid=r.researchid
63
         left join t_user u on r.createid=u.userid
63
         left join t_user u on r.createid=u.userid
64
         WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1
64
         WHERE r.researchid=#{researchid} AND ru.userid=#{userid} limit 1

Loading…
Cancel
Save