Commit 844d82f0 authored by liuChang's avatar liuChang

集团户拟建

parent f4129929
package com.dsk.jsk.controller;
import cn.dev33.satoken.annotation.SaCheckPermission;
import com.alibaba.fastjson2.JSONObject;
import com.dsk.biz.utils.ExcelUtils;
import com.dsk.common.constant.Constants;
import com.dsk.common.core.controller.BaseController;
......@@ -218,4 +219,28 @@ public class JskCombineInfoController extends BaseController {
public R memberCount(@RequestBody JskCombineCountDto dto) throws Exception {
return baseService.memberCount(dto);
}
/**
* 集团户土地交易
*/
@PostMapping("/landMarket/page")
public AjaxResult landMarketPage(@RequestBody JSONObject object) {
return baseService.landMarketPage(object);
}
/**
* 集团户招标计划
*/
@PostMapping("/bidPlan/page")
public AjaxResult bidPlanPage(@RequestBody JSONObject object) {
return baseService.bidPlanPage(object);
}
/**
* 集团户拟建项目
*/
@PostMapping("/establishment/page")
public AjaxResult establishmentPage(@RequestBody JSONObject object) {
return baseService.establishmentPage(object);
}
}
......@@ -284,4 +284,20 @@ public class JskCombineInfoService {
}
return performance;
}
public AjaxResult landMarketPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/operate/landMarket/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult bidPlanPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/operate/bidPlan/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
public AjaxResult establishmentPage(JSONObject object) {
Map<String, Object> map = dskOpenApiUtil.requestBody("/nationzj/operate/establishment/page", object);
return BeanUtil.toBean(map, AjaxResult.class);
}
}
......@@ -130,4 +130,22 @@ public class ExportController {
public AjaxResult export(@RequestBody UrbanInvestmentPlatformDto dto) {
return exportService.export(dto);
}
//集团土地交易导出
@PostMapping("/combine/landMarket")
public AjaxResult exportCombineLandMarket(@RequestBody JSONObject object) {
return exportService.exportCombineLandMarket(object);
}
//集团招标计划导出
@PostMapping("/combine/bidPlan")
public AjaxResult exportCombineBidPlan(@RequestBody JSONObject object) {
return exportService.exportCombineBidPlan(object);
}
//集团拟建项目导出
@PostMapping("/combine/establishment")
public AjaxResult exportCombineEstablishment(@RequestBody JSONObject object) {
return exportService.exportCombineEstablishment(object);
}
}
......@@ -287,4 +287,52 @@ public class ExportService {
uploadComponent.upload(title, ba, Constants.SUFFIX_XLSX, Constants.CONTENT_TYPE_XLSX);
return AjaxResult.success();
}
//集团土地交易导出
public AjaxResult exportCombineLandMarket(JSONObject object) {
SysUserFileRecord fileRecord = new SysUserFileRecord();
fileRecord.setFileName(object.get("exportExeclName").toString().concat(Constants.SUFFIX_XLSX));
fileRecord.setType(1);
//生成中
fileRecord.setStatus(2);
fileRecord.setRemark("集团土地交易导出");
Long fileId = sysUserFileRecordService.exportAdd(fileRecord);
object.put("exportUniqueCode",fileId);
//回调函数
object.put("exportBackUrl",EXPORT_BACK_URL);
dskOpenApiUtil.requestBody("/operate/export/operate/combine/landMarket", object);
return AjaxResult.success();
}
//集团招标计划导出
public AjaxResult exportCombineBidPlan(JSONObject object) {
SysUserFileRecord fileRecord = new SysUserFileRecord();
fileRecord.setFileName(object.get("exportExeclName").toString().concat(Constants.SUFFIX_XLSX));
fileRecord.setType(1);
//生成中
fileRecord.setStatus(2);
fileRecord.setRemark("集团招标计划导出");
Long fileId = sysUserFileRecordService.exportAdd(fileRecord);
object.put("exportUniqueCode",fileId);
//回调函数
object.put("exportBackUrl",EXPORT_BACK_URL);
dskOpenApiUtil.requestBody("/operate/export/operate/combine/bidPlan", object);
return AjaxResult.success();
}
//集团拟建项目导出
public AjaxResult exportCombineEstablishment(JSONObject object) {
SysUserFileRecord fileRecord = new SysUserFileRecord();
fileRecord.setFileName(object.get("exportExeclName").toString().concat(Constants.SUFFIX_XLSX));
fileRecord.setType(1);
//生成中
fileRecord.setStatus(2);
fileRecord.setRemark("集团拟建项目导出");
Long fileId = sysUserFileRecordService.exportAdd(fileRecord);
object.put("exportUniqueCode",fileId);
//回调函数
object.put("exportBackUrl",EXPORT_BACK_URL);
dskOpenApiUtil.requestBody("/operate/export/operate/combine/establishment", object);
return AjaxResult.success();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment