|
@@ -2,10 +2,13 @@ package com.rtrh.projects.modules.system.service.impl;
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.rtrh.common.modules.filesystem.FileSystemEnum;
|
|
|
+import com.rtrh.projects.modules.projects.po.SubAerialImage;
|
|
|
import com.rtrh.projects.modules.system.mapper.WeekAndMonrhFileMapper;
|
|
|
+import com.rtrh.projects.util.HttpClientUtil;
|
|
|
import com.rtrh.projects.util.TargetDataSource;
|
|
|
import org.apache.commons.collections4.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -34,9 +37,13 @@ public class WeekAndMonthFileImpl implements WeekAndMonthFileService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- @TargetDataSource("secondary")
|
|
|
+ //@TargetDataSource("secondary")
|
|
|
public List<WeekAndMonthFile> listByMainIdFgw(String mainId) {
|
|
|
- return weekAndMonrhFileMapper.listByMainId(mainId);
|
|
|
+ Object o = HttpClientUtil.fgwPostRequest("/outApi/remote/findListByMainId", new HashMap<String, String>() {{
|
|
|
+ put("mainId", mainId);
|
|
|
+ }});
|
|
|
+ List<WeekAndMonthFile> data = JSONObject.parseArray(o.toString(), WeekAndMonthFile.class);
|
|
|
+ return data;
|
|
|
}
|
|
|
|
|
|
@Override
|