|
|
|
@ -5,6 +5,7 @@ import com.alibaba.fastjson2.JSONObject;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsIndustrialInternetAward;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsIntegrationIndustries;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsLogisticsDevelopmentAward;
|
|
|
|
|
import com.ruoyi.jjh.declaration.entity.dto.BmsIntegrationIndustriesAddDto;
|
|
|
|
@ -95,8 +96,23 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
declarationRecords.setStatus(1L);
|
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
|
|
|
|
|
|
//新增项目
|
|
|
|
|
declarationRecords.setJjhProjectId(jProjectService.saveProject(getAllJson(bmsIntegrationIndustriesAddDto.getDeclarationId())));
|
|
|
|
|
//获取某个在线记录id可以添加到项目库的数据
|
|
|
|
|
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
|
addProject.setStatus(1);
|
|
|
|
|
addProject.setOtherJson(JSONObject.toJSONString(bmsIntegrationIndustries));
|
|
|
|
|
addProject.setFileJson("{" +
|
|
|
|
|
'"' + "证明材料" + '"' + ":" + '"' + bmsIntegrationIndustries.getEvidence() + '"' + ","+
|
|
|
|
|
'"' + "营业执照" + '"' + ":" + '"' + bmsIntegrationIndustries.getBusinessLicense() + '"' + ","+
|
|
|
|
|
'"' + "完税证明" + '"' + ":" + '"' + bmsIntegrationIndustries.getTaxPaymentCertificate() + '"' + ","+
|
|
|
|
|
'"' + "审计报告" + '"' + ":" + '"' + bmsIntegrationIndustries.getAuditReport() + '"' + ","+
|
|
|
|
|
'"' + "股权架构图" + '"' + ":" + '"' + bmsIntegrationIndustries.getEquityStructureChart() + '"' + ","+
|
|
|
|
|
'"' + "项目申报报告" + '"' + ":" + '"' + bmsIntegrationIndustries.getDeclarationReport() + '"' + ","+
|
|
|
|
|
'"' + "独立核算相关证明" + '"' + ":" + '"' + bmsIntegrationIndustries.getIndependentAccounting() + '"' + ","+
|
|
|
|
|
'"' + "验资报告" + '"' + ":" + '"' + bmsIntegrationIndustries.getCapitalVerificationReport()+ '"' + ","+
|
|
|
|
|
'"' + "其他证明材料" + '"' + ":" + '"' + bmsIntegrationIndustries.getOtherEvidence() + '"' +
|
|
|
|
|
"}");
|
|
|
|
|
jProjectService.save(addProject);
|
|
|
|
|
declarationRecords.setJjhProjectId(addProject.getId());
|
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
@ -104,38 +120,6 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public Map<String, String> getAllJson(Long id) {
|
|
|
|
|
Map<String,String> jsonMap = new HashMap<>();
|
|
|
|
|
//获取该申报记录的详情
|
|
|
|
|
DeclarationRecordsVo declarationRecordsVo = iBmsDeclarationRecordsService.selectBmsDeclarationRecordsById(id);
|
|
|
|
|
//在线申报信息JSON
|
|
|
|
|
String js2 = JSONObject.toJSONString(declarationRecordsVo.getBmsDeclarationRecords());
|
|
|
|
|
//两业融合奖补申请
|
|
|
|
|
BmsIntegrationIndustries p1 = declarationRecordsVo.getBmsIntegrationIndustries();
|
|
|
|
|
//两业融合奖补申请JSON
|
|
|
|
|
String js3 = JSONObject.toJSONString(p1);
|
|
|
|
|
jsonMap.put("credit_code",declarationRecordsVo.getBmsEnterpriseBasicInfo().getTyshxydm());
|
|
|
|
|
jsonMap.put("projectName",declarationRecordsVo.getBmsDeclarationRecords().getProjectName());
|
|
|
|
|
jsonMap.put("year",declarationRecordsVo.getBmsDeclarationRecords().getYear());
|
|
|
|
|
jsonMap.put("templateId", String.valueOf(declarationRecordsVo.getBmsDeclarationRecords().getTemplateId()));
|
|
|
|
|
jsonMap.put("otherJson",jProjectService.allJsonString(js2, js3, "{}"));
|
|
|
|
|
jsonMap.put("fileJson", "{" +
|
|
|
|
|
'"' + "证明材料" + '"' + ":" + '"' + p1.getEvidence() + '"' + ","+
|
|
|
|
|
'"' + "营业执照" + '"' + ":" + '"' + p1.getBusinessLicense() + '"' + ","+
|
|
|
|
|
'"' + "完税证明" + '"' + ":" + '"' + p1.getTaxPaymentCertificate() + '"' + ","+
|
|
|
|
|
'"' + "审计报告" + '"' + ":" + '"' + p1.getAuditReport() + '"' + ","+
|
|
|
|
|
'"' + "股权架构图" + '"' + ":" + '"' + p1.getEquityStructureChart() + '"' + ","+
|
|
|
|
|
'"' + "项目申报报告" + '"' + ":" + '"' + p1.getDeclarationReport() + '"' + ","+
|
|
|
|
|
'"' + "独立核算相关证明" + '"' + ":" + '"' + p1.getIndependentAccounting() + '"' + ","+
|
|
|
|
|
'"' + "验资报告" + '"' + ":" + '"' + p1.getCapitalVerificationReport()+ '"' + ","+
|
|
|
|
|
'"' + "其他证明材料" + '"' + ":" + '"' + p1.getOtherEvidence() + '"' +
|
|
|
|
|
"}");
|
|
|
|
|
jsonMap.put("declareUnit",declarationRecordsVo.getBmsEnterpriseBasicInfo().getQymc());
|
|
|
|
|
jsonMap.put("jjhProjectId", String.valueOf(declarationRecordsVo.getBmsDeclarationRecords().getJjhProjectId()));
|
|
|
|
|
return jsonMap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 修改两业融合奖补
|
|
|
|
|
*
|
|
|
|
@ -156,9 +140,25 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
num = baseMapper.updateBmsIntegrationIndustries(bmsIntegrationIndustriesUpdateDto);
|
|
|
|
|
// 申请审批
|
|
|
|
|
if (bmsIntegrationIndustriesUpdateDto.getStatus()==1){
|
|
|
|
|
Map<String, String> allJson = getAllJson(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId());
|
|
|
|
|
JProject jP = new JProject();
|
|
|
|
|
BmsIntegrationIndustries p1 =new BmsIntegrationIndustries();
|
|
|
|
|
BeanUtil.copyProperties(bmsIntegrationIndustriesUpdateDto, p1);
|
|
|
|
|
jP.setId(iBmsDeclarationRecordsService.getById(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId()).getJjhProjectId());
|
|
|
|
|
jP.setStatus(1);
|
|
|
|
|
jP.setOtherJson(JSONObject.toJSONString(p1));
|
|
|
|
|
jP.setFileJson("{" +
|
|
|
|
|
'"' + "证明材料" + '"' + ":" + '"' + p1.getEvidence() + '"' + ","+
|
|
|
|
|
'"' + "营业执照" + '"' + ":" + '"' + p1.getBusinessLicense() + '"' + ","+
|
|
|
|
|
'"' + "完税证明" + '"' + ":" + '"' + p1.getTaxPaymentCertificate() + '"' + ","+
|
|
|
|
|
'"' + "审计报告" + '"' + ":" + '"' + p1.getAuditReport() + '"' + ","+
|
|
|
|
|
'"' + "股权架构图" + '"' + ":" + '"' + p1.getEquityStructureChart() + '"' + ","+
|
|
|
|
|
'"' + "项目申报报告" + '"' + ":" + '"' + p1.getDeclarationReport() + '"' + ","+
|
|
|
|
|
'"' + "独立核算相关证明" + '"' + ":" + '"' + p1.getIndependentAccounting() + '"' + ","+
|
|
|
|
|
'"' + "验资报告" + '"' + ":" + '"' + p1.getCapitalVerificationReport()+ '"' + ","+
|
|
|
|
|
'"' + "其他证明材料" + '"' + ":" + '"' + p1.getOtherEvidence() + '"' +
|
|
|
|
|
"}");
|
|
|
|
|
//修改项目
|
|
|
|
|
jProjectService.updateTheJson(allJson);
|
|
|
|
|
jProjectService.updateById(jP);
|
|
|
|
|
// 审批状态
|
|
|
|
|
iCommonService.updateAuditRecord(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId(), 0);
|
|
|
|
|
}
|
|
|
|
|