任教课程-进入课程接口 sql增加删除状态筛选
This commit is contained in:
parent
e1cbeecf8b
commit
eb6f1e59dd
|
@ -331,6 +331,7 @@ public class KcKechengbiaoController extends JeecgController<KcKechengbiao, IKcK
|
||||||
QueryWrapper<KcKechengbiao> kcKechengbiaoQueryWrapper = new QueryWrapper<>();
|
QueryWrapper<KcKechengbiao> kcKechengbiaoQueryWrapper = new QueryWrapper<>();
|
||||||
kcKechengbiaoQueryWrapper.eq("rwbh",rwbh);
|
kcKechengbiaoQueryWrapper.eq("rwbh",rwbh);
|
||||||
kcKechengbiaoQueryWrapper.eq("xqxn",xqxn);
|
kcKechengbiaoQueryWrapper.eq("xqxn",xqxn);
|
||||||
|
kcKechengbiaoQueryWrapper.eq("flag","0");
|
||||||
kcKechengbiaoQueryWrapper.last("limit 1");
|
kcKechengbiaoQueryWrapper.last("limit 1");
|
||||||
KcKechengbiao kcKechengbiao = kcKechengbiaoService.getOne(kcKechengbiaoQueryWrapper);
|
KcKechengbiao kcKechengbiao = kcKechengbiaoService.getOne(kcKechengbiaoQueryWrapper);
|
||||||
return Result.OK(kcKechengbiao);
|
return Result.OK(kcKechengbiao);
|
||||||
|
|
|
@ -48,6 +48,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文档预览
|
* 文档预览
|
||||||
|
*
|
||||||
* @param fileId
|
* @param fileId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -75,6 +76,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文件下载地址
|
* 文件下载地址
|
||||||
|
*
|
||||||
* @param fileId
|
* @param fileId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -93,11 +95,13 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取文档用户权限
|
* 获取文档用户权限
|
||||||
|
*
|
||||||
* @param fileId
|
* @param fileId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@RequestMapping(value = "/files/{fileId}/permission", method = {RequestMethod.GET})
|
@RequestMapping(value = "/files/{fileId}/permission", method = {RequestMethod.GET})
|
||||||
public Map<String,Object> permission(@PathVariable("fileId") String fileId) {
|
public Map<String, Object> permission(@PathVariable("fileId") String fileId,
|
||||||
|
@RequestHeader(value = "X-WebOffice-Token", required = false) String webOfficeToken) {
|
||||||
ZyInfoStudent zyInfoStudent = zyInfoStudentService.getById(fileId);
|
ZyInfoStudent zyInfoStudent = zyInfoStudentService.getById(fileId);
|
||||||
Map<String, Object> mapRet = new HashMap<>();
|
Map<String, Object> mapRet = new HashMap<>();
|
||||||
Map<String, Object> mapRet2 = new HashMap<>();
|
Map<String, Object> mapRet2 = new HashMap<>();
|
||||||
|
@ -110,9 +114,9 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
mapRet2.put("read", 1);
|
mapRet2.put("read", 1);
|
||||||
// mapRet2.put("rename",1);
|
// mapRet2.put("rename",1);
|
||||||
// mapRet2.put("saveas",1);
|
// mapRet2.put("saveas",1);
|
||||||
mapRet2.put("update",1);
|
mapRet2.put("update", webOfficeToken.equals(zyInfoStudent.getCreateBy()) ? 0 : 1);
|
||||||
mapRet2.put("user_id",zyInfoStudent.getCreateBy());
|
// mapRet2.put("user_id",zyInfoStudent.getCreateBy());
|
||||||
|
mapRet2.put("user_id", webOfficeToken);
|
||||||
mapRet.put("data", mapRet2);
|
mapRet.put("data", mapRet2);
|
||||||
return mapRet;
|
return mapRet;
|
||||||
}
|
}
|
||||||
|
@ -120,6 +124,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 文档预览
|
* 文档预览
|
||||||
|
*
|
||||||
* @param fileId
|
* @param fileId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
@ -169,6 +174,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 准备上传阶段
|
* 准备上传阶段
|
||||||
|
*
|
||||||
* @param fileId
|
* @param fileId
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue