|
|
@@ -18,18 +18,13 @@ import platform.modules.build.entity.Company;
|
|
|
import platform.modules.build.entity.CompanyContact;
|
|
|
import platform.modules.build.service.CompanyContactService;
|
|
|
import platform.modules.build.service.CompanyService;
|
|
|
+import platform.modules.carrier.entity.Contract;
|
|
|
+import platform.modules.carrier.service.IcContractService;
|
|
|
+import platform.modules.carrier.service.ParkService;
|
|
|
import platform.modules.company.dto.ProcessNodeDto;
|
|
|
import platform.modules.company.dto.StockLandApprovalDto;
|
|
|
-import platform.modules.company.entity.CompanyInformation;
|
|
|
-import platform.modules.company.entity.ProcessFeedback;
|
|
|
-import platform.modules.company.entity.ProjectApplicationCompanyInfo;
|
|
|
-import platform.modules.company.entity.StockLand;
|
|
|
-import platform.modules.company.entity.StockLandMaterial;
|
|
|
-import platform.modules.company.service.ProcessFeedbackService;
|
|
|
-import platform.modules.company.service.ProjectApplicationCompanyInfoService;
|
|
|
-import platform.modules.company.service.StockLandApproveService;
|
|
|
-import platform.modules.company.service.StockLandMaterialService;
|
|
|
-import platform.modules.company.service.StockLandService;
|
|
|
+import platform.modules.company.entity.*;
|
|
|
+import platform.modules.company.service.*;
|
|
|
import platform.modules.government.dto.SearchCondition;
|
|
|
import platform.modules.government.entity.FileDown;
|
|
|
import platform.modules.sys.entity.Approval;
|
|
|
@@ -88,6 +83,15 @@ public class AreaManagerController extends BaseController {
|
|
|
@Autowired
|
|
|
private DictionaryItemService dictionaryItemService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ParkService parkService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IcContractService icContractService;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private StockLandOutParkService stockLandOutParkService;
|
|
|
+
|
|
|
@Value("${repositoryPath}")
|
|
|
private String baseFolderPath;
|
|
|
|
|
|
@@ -177,6 +181,27 @@ public class AreaManagerController extends BaseController {
|
|
|
modelMap.put("isGroup", "1");
|
|
|
}
|
|
|
}
|
|
|
+ if (landApply.getApply_type().equals(Constant.LandApplyType.RENT)) {
|
|
|
+ modelMap.put("isRent", true);
|
|
|
+ //如果是租住管理 获取本街道的所有园区
|
|
|
+ modelMap.put("parkList", parkService.findParkListByStreetId(ShiroUtils.getStreetId()));
|
|
|
+
|
|
|
+ if (Objects.equals(landApply.getIs_in_park(), "1")) {
|
|
|
+ Contract contract = icContractService.getDeatailById(landApply.getContract_id());
|
|
|
+ if (contract == null) {
|
|
|
+ modelMap.put("contract", new Contract());
|
|
|
+ } else {
|
|
|
+ modelMap.put("contract", contract);
|
|
|
+ }
|
|
|
+ } else if (Objects.equals(landApply.getIs_in_park(), "0")) {
|
|
|
+ StockLandOutPark stockLandOutPark = stockLandOutParkService.findById(landApply.getContract_id());
|
|
|
+ if (stockLandOutPark == null) {
|
|
|
+ modelMap.put("stockLandOutPark", new StockLandOutPark());
|
|
|
+ } else {
|
|
|
+ modelMap.put("stockLandOutPark", stockLandOutPark);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
return "/admin/government/areaManager/details";
|
|
|
}
|
|
|
|