任教课程-进入课程接口 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<>();
|
||||
kcKechengbiaoQueryWrapper.eq("rwbh",rwbh);
|
||||
kcKechengbiaoQueryWrapper.eq("xqxn",xqxn);
|
||||
kcKechengbiaoQueryWrapper.eq("flag","0");
|
||||
kcKechengbiaoQueryWrapper.last("limit 1");
|
||||
KcKechengbiao kcKechengbiao = kcKechengbiaoService.getOne(kcKechengbiaoQueryWrapper);
|
||||
return Result.OK(kcKechengbiao);
|
||||
|
|
|
@ -48,6 +48,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
|||
|
||||
/**
|
||||
* 文档预览
|
||||
*
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
|
@ -75,6 +76,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
|||
|
||||
/**
|
||||
* 文件下载地址
|
||||
*
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
|
@ -93,11 +95,13 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
|||
|
||||
/**
|
||||
* 获取文档用户权限
|
||||
*
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
@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);
|
||||
Map<String, Object> mapRet = 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("rename",1);
|
||||
// mapRet2.put("saveas",1);
|
||||
mapRet2.put("update",1);
|
||||
mapRet2.put("user_id",zyInfoStudent.getCreateBy());
|
||||
|
||||
mapRet2.put("update", webOfficeToken.equals(zyInfoStudent.getCreateBy()) ? 0 : 1);
|
||||
// mapRet2.put("user_id",zyInfoStudent.getCreateBy());
|
||||
mapRet2.put("user_id", webOfficeToken);
|
||||
mapRet.put("data", mapRet2);
|
||||
return mapRet;
|
||||
}
|
||||
|
@ -120,6 +124,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
|||
|
||||
/**
|
||||
* 文档预览
|
||||
*
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
|
@ -169,6 +174,7 @@ public class WpsController extends JeecgController<KcCasusers, IKcCasusersServic
|
|||
|
||||
/**
|
||||
* 准备上传阶段
|
||||
*
|
||||
* @param fileId
|
||||
* @return
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue