|
|
@@ -6,13 +6,16 @@ import cn.hutool.core.collection.CollUtil; |
|
|
|
import cn.hutool.core.date.DatePattern; |
|
|
|
import cn.hutool.core.date.StopWatch; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.google.common.collect.Sets; |
|
|
|
import com.ningdatech.basic.exception.BizException; |
|
|
|
import com.ningdatech.basic.function.VUtils; |
|
|
|
import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.ningdatech.basic.util.CollUtils; |
|
|
|
import com.ningdatech.basic.util.NdDateUtils; |
|
|
|
import com.ningdatech.basic.util.StrPool; |
|
|
|
import com.ningdatech.file.entity.File; |
|
|
|
import com.ningdatech.file.entity.vo.result.FileResultVO; |
|
|
|
import com.ningdatech.file.service.FileService; |
|
|
@@ -21,6 +24,7 @@ import com.ningdatech.pmapi.common.helper.UserInfoHelper; |
|
|
|
import com.ningdatech.pmapi.common.model.entity.ExcelExportWriter; |
|
|
|
import com.ningdatech.pmapi.common.statemachine.util.StateMachineUtils; |
|
|
|
import com.ningdatech.pmapi.common.util.ExcelDownUtil; |
|
|
|
import com.ningdatech.pmapi.common.util.StrUtils; |
|
|
|
import com.ningdatech.pmapi.irs.sign.IRSAPIRequest; |
|
|
|
import com.ningdatech.pmapi.organization.model.entity.DingEmployeeInfo; |
|
|
|
import com.ningdatech.pmapi.organization.model.entity.DingOrganization; |
|
|
@@ -1191,6 +1195,7 @@ public class TodoCenterManage { |
|
|
|
// 获取表单数据 |
|
|
|
PdfGenerateDTO pdfGenerateDTO = new PdfGenerateDTO(); |
|
|
|
BeanUtils.copyProperties(project, pdfGenerateDTO); |
|
|
|
|
|
|
|
JSONObject paramsMap = JSONObject.parseObject(JSONObject.toJSONString(pdfGenerateDTO)); |
|
|
|
// 设置title |
|
|
|
String title = "【" + project.getProjectName() + "】" + fileName; |
|
|
@@ -1241,6 +1246,31 @@ public class TodoCenterManage { |
|
|
|
paramsMap.put("yearPlanInvest",yearPlanInvest); |
|
|
|
// TODO 根据地区编码获取当地大数据局(中心)的名称 |
|
|
|
paramsMap.put("bigDataBureauName",null); |
|
|
|
|
|
|
|
// 获取立项依据 |
|
|
|
String buildBasis = project.getBuildBasis(); |
|
|
|
StringBuilder builder = new StringBuilder(); |
|
|
|
List<JSONObject> fileArray = JSON.parseArray(buildBasis, JSONObject.class); |
|
|
|
for (JSONObject jsonObject : fileArray) { |
|
|
|
String titleStr = jsonObject.getString(CommonConst.TITLE); |
|
|
|
builder.append(CommonConst.ITEM_BASED); |
|
|
|
builder.append(titleStr); |
|
|
|
builder.append(StrPool.SPACE); |
|
|
|
String fileNameStr = jsonObject.getString(CommonConst.FILE_NAME_STR); |
|
|
|
builder.append(CommonConst.ITEM_BASED_FILE_NAME); |
|
|
|
builder.append(fileNameStr); |
|
|
|
builder.append(StrPool.SPACE); |
|
|
|
String fileInfo = jsonObject.getString(CommonConst.FILE_LIST); |
|
|
|
List<JSONObject> fileInfoArray = JSON.parseArray(fileInfo, JSONObject.class); |
|
|
|
List<String> nameList = CollUtils.fieldList(fileInfoArray, w -> w.getString(CommonConst.FILE_NAME)); |
|
|
|
String appendixStr = nameList.stream().collect(Collectors.joining(StrPool.COMMA)); |
|
|
|
builder.append(CommonConst.APPENDIX); |
|
|
|
builder.append(appendixStr); |
|
|
|
builder.append(StrPool.SEMICOLON); |
|
|
|
builder.append(StrPool.NEWLINE); |
|
|
|
} |
|
|
|
String buildBasisList = builder.toString(); |
|
|
|
paramsMap.put("buildBasisList",buildBasisList); |
|
|
|
return paramsMap; |
|
|
|
} |
|
|
|
|
|
|
|