|
@@ -133,7 +133,8 @@ public class BscEnterpriseAutonomyServiceImpl extends AbstractCrudService<BscEnt
|
|
|
}
|
|
|
|
|
|
|
|
|
- public void erpData(String companyId) {
|
|
|
+ @Override
|
|
|
+ public List<Map<String, Object>> erpData(String companyId) {
|
|
|
LambdaQueryWrapper<BaseCompany> queryWrapper1 = Wrappers.lambdaQuery();
|
|
|
queryWrapper1.select(BaseCompany::getId, BaseCompany::getCompanyId, BaseCompany::getCompanyName, BaseCompany::getFoundTime,
|
|
|
BaseCompany::getCompanyType, BaseCompany::getLinkPhone, BaseCompany::getAddress, BaseCompany::getOrganization,
|
|
@@ -142,19 +143,76 @@ public class BscEnterpriseAutonomyServiceImpl extends AbstractCrudService<BscEnt
|
|
|
.eq(BaseCompany::getCompanyId, companyId)
|
|
|
.orderByDesc(BaseCompany::getId);
|
|
|
List<BaseCompany> list1 = baseCompanyService.list(queryWrapper1);
|
|
|
+ List<Map<String, Object>> list = new ArrayList<>();
|
|
|
+ if (CollectionUtils.isNotEmpty(list1)) {
|
|
|
+ LambdaQueryWrapper<BaseCompanyPerson> queryWrapper2 = Wrappers.lambdaQuery();
|
|
|
+ queryWrapper2.select(BaseCompanyPerson::getCompanyId, BaseCompanyPerson::getDelegateName, BaseCompanyPerson::getFireManageName,
|
|
|
+ BaseCompanyPerson::getFireDutyName)
|
|
|
+ .eq(BaseCompanyPerson::getCompanyId, companyId);
|
|
|
+ List<BaseCompanyPerson> list2 = baseCompanyPersonService.list(queryWrapper2);
|
|
|
+
|
|
|
+ LambdaQueryWrapper<BaseCompanyAttach1> queryWrapper3 = Wrappers.lambdaQuery();
|
|
|
+ queryWrapper3.select(BaseCompanyAttach1::getCompanyId, BaseCompanyAttach1::getBuildArea, BaseCompanyAttach1::getEmployeeNum,
|
|
|
+ BaseCompanyAttach1::getRegisteredCapital, BaseCompanyAttach1::getBusinessStatus, BaseCompanyAttach1::getPaidCapital,
|
|
|
+ BaseCompanyAttach1::getRegistrar, BaseCompanyAttach1::getCompletedTime, BaseCompanyAttach1::getFireRating,
|
|
|
+ BaseCompanyAttach1::getBuildingHeight, BaseCompanyAttach1::getBuildingStructure,BaseCompanyAttach1::getConstruction)
|
|
|
+ .eq(BaseCompanyAttach1::getCompanyId, companyId);
|
|
|
+ List<BaseCompanyAttach1> list3 = baseCompanyAttach1Service.list(queryWrapper3);
|
|
|
+ for (int i = 0; i < list1.size(); i++) {
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
+ map.put("id", list1.get(i).getId());
|
|
|
+ map.put("companyId", list1.get(i).getCompanyId());
|
|
|
+ map.put("companyName", list1.get(i).getCompanyName());
|
|
|
+ map.put("foundTime", list1.get(i).getFoundTime());
|
|
|
+ map.put("companyType", list1.get(i).getCompanyType());
|
|
|
+ map.put("linkPhone", list1.get(i).getLinkPhone());
|
|
|
+ map.put("address", list1.get(i).getAddress());
|
|
|
+ map.put("organization", list1.get(i).getOrganization());
|
|
|
+ map.put("companyNature", list1.get(i).getCompanyNature());
|
|
|
+
|
|
|
+ map.put("delegateName", null);
|
|
|
+ map.put("fireManageName", null);
|
|
|
+ map.put("fireDutyName", null);
|
|
|
+
|
|
|
+ map.put("buildArea", null);
|
|
|
+ map.put("employeeNum", null);
|
|
|
+ map.put("registeredCapital", null);
|
|
|
+ map.put("businessStatus", null);
|
|
|
+ map.put("paidCapital", null);
|
|
|
+ map.put("registrar", null);
|
|
|
+ map.put("completedTime", null);
|
|
|
+ map.put("fireRating", null);
|
|
|
+ map.put("buildingHeight", null);
|
|
|
+ map.put("buildingStructure", null);
|
|
|
+ map.put("construction", null);
|
|
|
+
|
|
|
+ for (int j = 0; j < list2.size(); j++) {
|
|
|
+ if (list1.get(i).getCompanyId().equals(list2.get(j).getCompanyId())) {
|
|
|
+ map.put("delegateName", list2.get(j).getDelegateName());
|
|
|
+ map.put("fireManageName", list2.get(j).getFireManageName());
|
|
|
+ map.put("fireDutyName", list2.get(j).getFireDutyName());
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- LambdaQueryWrapper<BaseCompanyPerson> queryWrapper2 = Wrappers.lambdaQuery();
|
|
|
- queryWrapper2.select(BaseCompanyPerson::getCompanyId, BaseCompanyPerson::getDelegateName, BaseCompanyPerson::getFireManageName,
|
|
|
- BaseCompanyPerson::getFireDutyName)
|
|
|
- .eq(BaseCompanyPerson::getCompanyId, companyId);
|
|
|
- List<BaseCompanyPerson> list2 = baseCompanyPersonService.list(queryWrapper2);
|
|
|
-
|
|
|
- LambdaQueryWrapper<BaseCompanyAttach1> queryWrapper3 = Wrappers.lambdaQuery();
|
|
|
- queryWrapper3.select(BaseCompanyAttach1::getCompanyId, BaseCompanyAttach1::getBuildArea, BaseCompanyAttach1::getEmployeeNum)
|
|
|
- .eq(BaseCompanyAttach1::getCompanyId, companyId);
|
|
|
- List<BaseCompanyAttach1> list3 = baseCompanyAttach1Service.list(queryWrapper3);
|
|
|
-
|
|
|
-
|
|
|
+ for (int j = 0; j < list3.size(); j++) {
|
|
|
+ if (list1.get(i).getCompanyId().equals(list3.get(j).getCompanyId())) {
|
|
|
+ map.put("buildArea", list3.get(j).getBuildArea());
|
|
|
+ map.put("employeeNum", list3.get(j).getEmployeeNum());
|
|
|
+ map.put("registeredCapital", list3.get(j).getRegisteredCapital());
|
|
|
+ map.put("businessStatus", list3.get(j).getBusinessStatus());
|
|
|
+ map.put("paidCapital", list3.get(j).getPaidCapital());
|
|
|
+ map.put("registrar", list3.get(j).getRegistrar());
|
|
|
+ map.put("completedTime", list3.get(j).getCompletedTime());
|
|
|
+ map.put("fireRating", list3.get(j).getFireRating());
|
|
|
+ map.put("buildingHeight", list3.get(j).getBuildingHeight());
|
|
|
+ map.put("buildingStructure", list3.get(j).getBuildingStructure());
|
|
|
+ map.put("construction", list3.get(j).getConstruction());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ list.add(map);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return list;
|
|
|
}
|
|
|
|
|
|
|