|
@@ -8,6 +8,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.AllArgsConstructor;
|
|
import org.apache.commons.lang.StringUtils;
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
|
+import org.springblade.archive.entity.ArchivesAuto;
|
|
|
|
+import org.springblade.archive.vo.ArchivesAutoVO;
|
|
import org.springblade.business.entity.ArchiveFile;
|
|
import org.springblade.business.entity.ArchiveFile;
|
|
import org.springblade.business.feign.ArchiveFileClient;
|
|
import org.springblade.business.feign.ArchiveFileClient;
|
|
import org.springblade.business.mapper.ArchiveFileMapper;
|
|
import org.springblade.business.mapper.ArchiveFileMapper;
|
|
@@ -132,34 +134,67 @@ public class ArchiveFileClientImpl implements ArchiveFileClient {
|
|
List<ArchiveFileVO> list = fileMapper.getAllArchiveFileByContractType(projectId);
|
|
List<ArchiveFileVO> list = fileMapper.getAllArchiveFileByContractType(projectId);
|
|
List<ContractInfo> infos = contractClient.queryContractListByIds(Arrays.asList(projectId));
|
|
List<ContractInfo> infos = contractClient.queryContractListByIds(Arrays.asList(projectId));
|
|
int key1 = 0, key2 = 0, key3 = 0;
|
|
int key1 = 0, key2 = 0, key3 = 0;
|
|
- //判断案卷属于1施工,2监理,还是3业主
|
|
|
|
- for (ArchiveFileVO l : list) {
|
|
|
|
- String type = l.getContractType();
|
|
|
|
- if (StringUtils.isBlank(type)) {
|
|
|
|
- //业主
|
|
|
|
- key3++;
|
|
|
|
- } else if ("S".equals(type)) {
|
|
|
|
- //监理
|
|
|
|
- key2++;
|
|
|
|
- } else if ("C".equals(type)) {
|
|
|
|
- //施工
|
|
|
|
- key1++;
|
|
|
|
- } else if (type.length() > 10) {
|
|
|
|
- for (ContractInfo info : infos) {
|
|
|
|
- if (type.equals(info.getId() + "")) {
|
|
|
|
- Integer t = info.getContractType();
|
|
|
|
- if (t == 1) {
|
|
|
|
- key1++;
|
|
|
|
- } else if (t == 2) {
|
|
|
|
- key2++;
|
|
|
|
- } else {
|
|
|
|
- key3++;
|
|
|
|
|
|
+ //判断文件属于1施工,2监理,还是3业主
|
|
|
|
+ if (list != null && list.size() > 0) {
|
|
|
|
+ for (ArchiveFileVO l : list) {
|
|
|
|
+ String type = l.getContractType();
|
|
|
|
+ if (StringUtils.isBlank(type)) {
|
|
|
|
+ //业主
|
|
|
|
+ key3++;
|
|
|
|
+ } else if ("S".equals(type)) {
|
|
|
|
+ //监理
|
|
|
|
+ key2++;
|
|
|
|
+ } else if ("C".equals(type)) {
|
|
|
|
+ //施工
|
|
|
|
+ key1++;
|
|
|
|
+ } else if (type.length() > 10) {
|
|
|
|
+ for (ContractInfo info : infos) {
|
|
|
|
+ if (type.equals(info.getId() + "")) {
|
|
|
|
+ Integer t = info.getContractType();
|
|
|
|
+ if (t == 1) {
|
|
|
|
+ key1++;
|
|
|
|
+ } else if (t == 2) {
|
|
|
|
+ key2++;
|
|
|
|
+ } else {
|
|
|
|
+ key3++;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
- break;
|
|
|
|
}
|
|
}
|
|
|
|
+ } else {
|
|
|
|
+ System.out.println(type);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }else {
|
|
|
|
+ List<ArchivesAutoVO> autos = fileMapper.getAllArchiveAutoByContractType(projectId);
|
|
|
|
+ for (ArchivesAutoVO l : autos) {
|
|
|
|
+ String type = l.getContractType();
|
|
|
|
+ if (StringUtils.isBlank(type)) {
|
|
|
|
+ //业主
|
|
|
|
+ key3++;
|
|
|
|
+ } else if ("S".equals(type)) {
|
|
|
|
+ //监理
|
|
|
|
+ key2++;
|
|
|
|
+ } else if ("C".equals(type)) {
|
|
|
|
+ //施工
|
|
|
|
+ key1++;
|
|
|
|
+ } else if (type.length() > 10) {
|
|
|
|
+ for (ContractInfo info : infos) {
|
|
|
|
+ if (type.equals(info.getId() + "")) {
|
|
|
|
+ Integer t = info.getContractType();
|
|
|
|
+ if (t == 1) {
|
|
|
|
+ key1++;
|
|
|
|
+ } else if (t == 2) {
|
|
|
|
+ key2++;
|
|
|
|
+ } else {
|
|
|
|
+ key3++;
|
|
|
|
+ }
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ System.out.println(type);
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
- System.out.println(type);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
List<Map<String, Object>> mapList = new ArrayList<>();
|
|
List<Map<String, Object>> mapList = new ArrayList<>();
|