Browse Source

20210402v1.1

recovery
zy_Java 4 years ago
parent
commit
c01e2e70d0
  1. 2
      tall/src/main/java/com/ccsens/tall/service/ExcelService.java
  2. 10
      tall/src/main/java/com/ccsens/tall/web/DebugController.java
  3. 3
      tall/src/main/resources/application-dev.yml

2
tall/src/main/java/com/ccsens/tall/service/ExcelService.java

@ -1240,7 +1240,7 @@ public class ExcelService implements IExcelService {
throw new BaseException(CodeEnum.NOT_ROW.addMsg(sheet.getSheetName() + (2)));
}
for (int i = 2; i < sheet.getLastRowNum() + 1; i++) {
for (int i = 3; i < sheet.getLastRowNum() + 1; i++) {
List<ProTaskDetail> taskNameList = null;
XSSFRow pluginRow = sheet.getRow(i);
if(ObjectUtil.isNull(pluginRow)){

10
tall/src/main/java/com/ccsens/tall/web/DebugController.java

@ -1,5 +1,6 @@
package com.ccsens.tall.web;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.tall.bean.dto.message.SyncMessageWithStartDto;
import com.ccsens.tall.bean.vo.FileVo;
@ -123,11 +124,18 @@ public class DebugController {
public JsonResponse https(HttpServletRequest request) throws Exception {
String requestUrl = "http://localhost:8001/file/query";
List<Long> files = new ArrayList<>();
files.add(1321760076465311744L);
files.add(1L);
files.add(2L);
files.add(3L);
String c = RestTemplateUtil.postBody1(requestUrl,files);
JsonResponse a = JSONObject.parseObject(c,JsonResponse.class);
// Object x = a.getData();
// List<FileVo.FilePosition> filePositions = JSONArray.parseObject(a.getData().toString(),FileVo.FilePosition.class);
List<FileVo.FilePosition> filePosition = JSONArray.parseArray(a.getData().toString(), FileVo.FilePosition.class);
filePosition.get(0).getId();
return a;
}

3
tall/src/main/resources/application-dev.yml

@ -40,4 +40,5 @@ file:
path: /home/cloud/tall/uploads/
domain: http://localhost:7030/v1.0/
imgDomain: http://localhost:7030/v1.0/uploads
filedeal: http://localhost:8001/file/query
#filedeal: http://localhost:8001/file/query
filedeal: https://test.tall.wiki/file/query
Loading…
Cancel
Save