fix: 添加查找在线编辑历史文件的接口
This commit is contained in:
@@ -47,6 +47,7 @@ import com.adc.da.util.LoginUserUtil;
|
||||
import com.adc.da.workFlow.entity.*;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
@@ -1148,6 +1149,31 @@ public class WorkFlowController extends BaseController {
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
@ApiOperation(value = "根据在线文件Id查询所有onlyoffice历史文件")
|
||||
@GetMapping("/getAllOnlyOfficeHisFileById")
|
||||
public ResponseMessage<List<Map<String,String>>> getAllOnlyOfficeHisFileById(String fileId, String fileName) {
|
||||
List<Map<String, String>> fileList = new ArrayList<>();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
LambdaQueryWrapper<OnlineFileLog> wrapper = new LambdaQueryWrapper<>();
|
||||
wrapper.eq(OnlineFileLog::getHisId,fileId);
|
||||
wrapper.eq(OnlineFileLog::getValidFlag, "0");
|
||||
wrapper.orderByDesc(OnlineFileLog::getCreateTime);
|
||||
List<OnlineFileLog> onlineFileLogList = onlineFileLogDao.selectList(wrapper);
|
||||
if (onlineFileLogList.size() > 0) {
|
||||
for (OnlineFileLog onlineFileLog : onlineFileLogList) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
map.put("id", onlineFileLog.getId());
|
||||
map.put("fileName", fileName);
|
||||
map.put("attFileId", onlineFileLog.getAttFileId());
|
||||
map.put("createTime", sdf.format(onlineFileLog.getCreateTime()));
|
||||
map.put("fileKey", onlineFileLog.getFilekey());
|
||||
fileList.add(map);
|
||||
}
|
||||
return Result.success(fileList);
|
||||
}
|
||||
return Result.error("历史文件为空");
|
||||
}
|
||||
|
||||
@ApiOperation(value = "查询问题和回答")
|
||||
@GetMapping("/selectWenDan")
|
||||
public Map<String,Object> selectWenDan(@RequestParam("taskId") String taskId) {
|
||||
|
||||
Reference in New Issue
Block a user