|
|
@ -4,18 +4,12 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
import com.alibaba.fastjson2.JSONObject;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.common.utils.DateUtils;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.*;
|
|
|
|
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;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.dto.BmsIntegrationIndustriesAddDto;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.dto.BmsIntegrationIndustriesUpdateDto;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.dto.BmsIntegrationIndustriesUpdateDto;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
|
|
|
|
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
|
|
|
|
import com.ruoyi.jjh.declaration.mapper.BmsIntegrationIndustriesMapper;
|
|
|
|
import com.ruoyi.jjh.declaration.mapper.BmsIntegrationIndustriesMapper;
|
|
|
|
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
|
|
|
|
import com.ruoyi.jjh.declaration.service.*;
|
|
|
|
import com.ruoyi.jjh.declaration.service.IBmsIntegrationIndustriesService;
|
|
|
|
|
|
|
|
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
|
|
|
|
|
|
|
|
import com.ruoyi.jjh.declaration.service.ICommonService;
|
|
|
|
|
|
|
|
import com.ruoyi.jjh.ent.entity.JProject;
|
|
|
|
import com.ruoyi.jjh.ent.entity.JProject;
|
|
|
|
import com.ruoyi.jjh.ent.service.JProjectService;
|
|
|
|
import com.ruoyi.jjh.ent.service.JProjectService;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
@ -46,6 +40,9 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private JProjectService jProjectService;
|
|
|
|
private JProjectService jProjectService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private IBmsTemplateRecordService iBmsTemplateRecordService;
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询两业融合奖补
|
|
|
|
* 查询两业融合奖补
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -93,37 +90,42 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
declarationRecords.setMatter("提交两业融合奖补申请");
|
|
|
|
declarationRecords.setMatter("提交两业融合奖补申请");
|
|
|
|
declarationRecords.setDetailId(bmsIntegrationIndustries.getId());
|
|
|
|
declarationRecords.setDetailId(bmsIntegrationIndustries.getId());
|
|
|
|
declarationRecords.setId(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
declarationRecords.setId(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
declarationRecords.setStatus(1L);
|
|
|
|
//如果该申报任务是不需要审批的则修改状态为已填报
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsIntegrationIndustriesAddDto.getDeclarationId()).getTemplateRecordId());
|
|
|
|
|
|
|
|
if(tes.getIsApproval() == 0){
|
|
|
|
//获取某个在线记录id可以添加到项目库的数据
|
|
|
|
declarationRecords.setStatus(6L);
|
|
|
|
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
addProject.setStatus(1);
|
|
|
|
}else {
|
|
|
|
if(bmsIntegrationIndustries.getDeclarationType() == 1){
|
|
|
|
declarationRecords.setStatus(1L);
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("两业融合示范企业");
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
}else if(bmsIntegrationIndustries.getDeclarationType() == 2){
|
|
|
|
//获取某个在线记录id可以添加到项目库的数据
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("制造业企业设立财务独立核算的制造服务业职能部门");
|
|
|
|
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
}else if(bmsIntegrationIndustries.getDeclarationType() == 3){
|
|
|
|
addProject.setStatus(1);
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("制造业企业剥离服务业务成立独立的法人");
|
|
|
|
if(bmsIntegrationIndustries.getDeclarationType() == 1){
|
|
|
|
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("两业融合示范企业");
|
|
|
|
|
|
|
|
}else if(bmsIntegrationIndustries.getDeclarationType() == 2){
|
|
|
|
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("制造业企业设立财务独立核算的制造服务业职能部门");
|
|
|
|
|
|
|
|
}else if(bmsIntegrationIndustries.getDeclarationType() == 3){
|
|
|
|
|
|
|
|
bmsIntegrationIndustries.setNewDeclarationType("制造业企业剥离服务业务成立独立的法人");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
|
|
|
|
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
|
|
|
|
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
|
|
|
|
|
|
|
|
return num;
|
|
|
|
return num;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|