|
|
@ -21,7 +21,9 @@ import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 两业融合奖补Service业务层处理
|
|
|
|
* 两业融合奖补Service业务层处理
|
|
|
@ -90,8 +92,32 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
declarationRecords.setDetailId(bmsIntegrationIndustries.getId());
|
|
|
|
declarationRecords.setDetailId(bmsIntegrationIndustries.getId());
|
|
|
|
iBmsDeclarationRecordsService.save(declarationRecords);
|
|
|
|
iBmsDeclarationRecordsService.save(declarationRecords);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> allJson = getAllJson(declarationRecords.getId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新增项目
|
|
|
|
|
|
|
|
JProject jP = new JProject();
|
|
|
|
|
|
|
|
jP.setProjectYear(declarationRecords.getYear());
|
|
|
|
|
|
|
|
jP.setProjectName(declarationRecords.getProjectName());
|
|
|
|
|
|
|
|
jP.setDeclareUnit(allJson.get("declareUnit"));
|
|
|
|
|
|
|
|
jP.setProjectClassify(10);
|
|
|
|
|
|
|
|
jP.setStatus(1);
|
|
|
|
|
|
|
|
jP.setOtherJson(allJson.get("otherJson"));
|
|
|
|
|
|
|
|
jP.setFileJson(allJson.get("fileJson"));
|
|
|
|
|
|
|
|
jProjectService.saveProject(jP,declarationRecords.getId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
|
|
|
|
if (bmsIntegrationIndustriesAddDto.getStatus()==1){
|
|
|
|
|
|
|
|
// 审批状态
|
|
|
|
|
|
|
|
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return num;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public Map<String, String> getAllJson(Long id) {
|
|
|
|
|
|
|
|
Map<String,String> jsonMap = new HashMap<>();
|
|
|
|
//获取该申报记录的详情
|
|
|
|
//获取该申报记录的详情
|
|
|
|
DeclarationRecordsVo declarationRecordsVo = iBmsDeclarationRecordsService.selectBmsDeclarationRecordsById(declarationRecords.getId());
|
|
|
|
DeclarationRecordsVo declarationRecordsVo = iBmsDeclarationRecordsService.selectBmsDeclarationRecordsById(id);
|
|
|
|
//申报的企业信息JSON
|
|
|
|
//申报的企业信息JSON
|
|
|
|
String js1= JSONObject.toJSONString(declarationRecordsVo.getBmsEnterpriseBasicInfo());
|
|
|
|
String js1= JSONObject.toJSONString(declarationRecordsVo.getBmsEnterpriseBasicInfo());
|
|
|
|
//在线申报信息JSON
|
|
|
|
//在线申报信息JSON
|
|
|
@ -100,8 +126,8 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
BmsIntegrationIndustries p1 = declarationRecordsVo.getBmsIntegrationIndustries();
|
|
|
|
BmsIntegrationIndustries p1 = declarationRecordsVo.getBmsIntegrationIndustries();
|
|
|
|
//两业融合奖补申请JSON
|
|
|
|
//两业融合奖补申请JSON
|
|
|
|
String js3 = JSONObject.toJSONString(p1);
|
|
|
|
String js3 = JSONObject.toJSONString(p1);
|
|
|
|
String str = jProjectService.allJsonString(js1, js2, js3, "{}");
|
|
|
|
jsonMap.put("otherJson",jProjectService.allJsonString(js1, js2, js3, "{}"));
|
|
|
|
String str1 = "{" +
|
|
|
|
jsonMap.put("fileJson", "{" +
|
|
|
|
'"' + "证明材料" + '"' + ":" + '"' + p1.getEvidence() + '"' + ","+
|
|
|
|
'"' + "证明材料" + '"' + ":" + '"' + p1.getEvidence() + '"' + ","+
|
|
|
|
'"' + "营业执照" + '"' + ":" + '"' + p1.getBusinessLicense() + '"' + ","+
|
|
|
|
'"' + "营业执照" + '"' + ":" + '"' + p1.getBusinessLicense() + '"' + ","+
|
|
|
|
'"' + "完税证明" + '"' + ":" + '"' + p1.getTaxPaymentCertificate() + '"' + ","+
|
|
|
|
'"' + "完税证明" + '"' + ":" + '"' + p1.getTaxPaymentCertificate() + '"' + ","+
|
|
|
@ -111,25 +137,10 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
'"' + "独立核算相关证明" + '"' + ":" + '"' + p1.getIndependentAccounting() + '"' + ","+
|
|
|
|
'"' + "独立核算相关证明" + '"' + ":" + '"' + p1.getIndependentAccounting() + '"' + ","+
|
|
|
|
'"' + "验资报告" + '"' + ":" + '"' + p1.getCapitalVerificationReport()+ '"' + ","+
|
|
|
|
'"' + "验资报告" + '"' + ":" + '"' + p1.getCapitalVerificationReport()+ '"' + ","+
|
|
|
|
'"' + "其他证明材料" + '"' + ":" + '"' + p1.getOtherEvidence() + '"' +
|
|
|
|
'"' + "其他证明材料" + '"' + ":" + '"' + p1.getOtherEvidence() + '"' +
|
|
|
|
"}";
|
|
|
|
"}");
|
|
|
|
|
|
|
|
jsonMap.put("declareUnit",declarationRecordsVo.getBmsEnterpriseBasicInfo().getEnterpriseName());
|
|
|
|
//新增项目
|
|
|
|
jsonMap.put("jjhProjectId", String.valueOf(declarationRecordsVo.getBmsDeclarationRecords().getJjhProjectId()));
|
|
|
|
JProject jP = new JProject();
|
|
|
|
return jsonMap;
|
|
|
|
jP.setProjectYear(declarationRecords.getYear());
|
|
|
|
|
|
|
|
jP.setProjectName(declarationRecords.getProjectName());
|
|
|
|
|
|
|
|
jP.setDeclareUnit(declarationRecordsVo.getBmsEnterpriseBasicInfo().getEnterpriseName());
|
|
|
|
|
|
|
|
jP.setProjectClassify(10);
|
|
|
|
|
|
|
|
jP.setStatus(1);
|
|
|
|
|
|
|
|
jP.setOtherJson(str);
|
|
|
|
|
|
|
|
jP.setFileJson(str1);
|
|
|
|
|
|
|
|
jProjectService.saveProject(jP,declarationRecords.getId());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
|
|
|
|
if (bmsIntegrationIndustriesAddDto.getStatus()==1){
|
|
|
|
|
|
|
|
// 审批状态
|
|
|
|
|
|
|
|
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return num;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -151,6 +162,9 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
num = baseMapper.updateBmsIntegrationIndustries(bmsIntegrationIndustriesUpdateDto);
|
|
|
|
num = baseMapper.updateBmsIntegrationIndustries(bmsIntegrationIndustriesUpdateDto);
|
|
|
|
// 申请审批
|
|
|
|
// 申请审批
|
|
|
|
if (bmsIntegrationIndustriesUpdateDto.getStatus()==1){
|
|
|
|
if (bmsIntegrationIndustriesUpdateDto.getStatus()==1){
|
|
|
|
|
|
|
|
Map<String, String> allJson = getAllJson(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId());
|
|
|
|
|
|
|
|
//修改项目
|
|
|
|
|
|
|
|
jProjectService.updateTheJson(allJson);
|
|
|
|
// 审批状态
|
|
|
|
// 审批状态
|
|
|
|
iCommonService.insertAuditRecord(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId(),0);
|
|
|
|
iCommonService.insertAuditRecord(bmsIntegrationIndustriesUpdateDto.getDeclarationRecordsId(),0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|