wushunjie
杜函宇 10 months ago
parent d8213b2758
commit 6c2fee47bf

@ -103,7 +103,7 @@ public class BmsDeclarationRecords extends BaseInfoEntity {
*/
@JSONField(serialize = false)
@ApiModelProperty(value = "审批状态")
@Excel(name = "审批状态", readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@Excel(name = "审批状态", readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
/**

@ -33,6 +33,6 @@ public class BmsBigStrongAwardUpdateDto extends BmsBigStrongAward implements Ser
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -26,6 +26,6 @@ public class BmsBrandingAwardUpdateDto extends BmsBrandingAward {
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -23,7 +23,7 @@ public class BmsCarrierConstructionAwardUpdateDto extends BmsCarrierConstruction
@Excel(name = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -26,7 +26,7 @@ public class BmsCreditManagementUpdateDto extends BmsCreditManagement {
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -49,8 +49,8 @@ public class BmsDeclarationRecordsDto extends BmsDeclarationRecords {
@ApiModelProperty(value = "模板名称")
private String templateName;
@ApiModelProperty(value = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@Excel(name = "审批状态",readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@Excel(name = "审批状态",readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private List<Long> statusStr;
@ApiModelProperty(value = "0=未填报,1=已填报")

@ -27,7 +27,7 @@ public class BmsIndustrialInternetAwardUpdateDto extends BmsIndustrialInternetAw
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -26,7 +26,7 @@ public class BmsIntegrationIndustriesUpdateDto extends BmsIntegrationIndustries
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -25,7 +25,7 @@ public class BmsLogisticsDevelopmentAwardUpdateDto extends BmsLogisticsDevelopme
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -26,6 +26,6 @@ public class BmsManufacturingServicesAwardUpdateDto extends BmsManufacturingServ
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -20,6 +20,6 @@ public class BmsOutQuitProductsUpdateDto extends BmsOutQuitProducts {
private Long declarationRecordsId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -26,6 +26,6 @@ public class BmsPlatformConstructionAwardUpdateDto extends BmsPlatformConstructi
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -33,7 +33,7 @@ public class BmsProjectSettlementAwardUpdateDto extends BmsProjectSettlementAwar
@ApiModelProperty(value = "项目id")
private Long projectId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
}

@ -20,7 +20,7 @@ public class BmsSceneOpeningAwardUpdateDto extends BmsSceneOpeningAward {
@ApiModelProperty(value = "记录id")
private Long declarationRecordsId;
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
@ApiModelProperty(value = "审批状态:0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审不通过,9=终审不通过10=初审驳回")
private Long status;
@ApiModelProperty(value = "项目id")

@ -96,7 +96,7 @@ public class BmsDeclarationRecordsQueryVo implements Serializable {
private Long detailId;
@ApiModelProperty(value = "审批状态")
@Excel(name = "审批状态", readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,7=复审不通过,8=初审驳回,9=终审不通过10=退回修改")
@Excel(name = "审批状态", readConverterExp = "0=待填报,1=初审中,2=复审中,3=终审中,5=评审通过,6=已填报,7=复审不通过,8=初审驳回,9=终审不通过10=退回修改")
private Long status;
}

@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.jjh.declaration.entity.BmsBigStrongAward;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsFundingDetail;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsBigStrongAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsBigStrongAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsFundingDetailAddDto;
@ -45,6 +46,9 @@ public class BmsBigStrongAwardServiceImpl extends ServiceImpl<BmsBigStrongAwardM
@Resource
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
@Resource
private JProjectService jProjectService;
/**
@ -109,33 +113,38 @@ public class BmsBigStrongAwardServiceImpl extends ServiceImpl<BmsBigStrongAwardM
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交做大做强奖补申请");
declarationRecords.setDetailId(bmsBigStrongAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsBigStrongAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsBigStrongAwardAddDto.getDeclarationId());
addProject.setStatus(1);
String jsonString = jProjectService.getJsonString(fundingInfoList);
JSONObject mergedObj = new JSONObject();
mergedObj.putAll(JSONObject.parseObject(jsonString));
if (bmsBigStrongAward.getIsGainRewards() == 0) {
bmsBigStrongAward.setNewRewardDescription("是");
} else {
bmsBigStrongAward.setNewRewardDescription("否");
}
mergedObj.putAll(JSONObject.parseObject(JSONObject.toJSONString(bmsBigStrongAward)));
addProject.setOtherJson(mergedObj.toJSONString());
addProject.setFileJson("{" +
'"' + "企业近3年发展情况及未来发展计划" + '"' + ":" + '"' + bmsBigStrongAward.getDevelopmentPlan() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 申请审批
iCommonService.insertAuditRecord(declarationRecords.getId(), 0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsBigStrongAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsBigStrongAwardAddDto.getDeclarationId());
addProject.setStatus(1);
String jsonString = jProjectService.getJsonString(fundingInfoList);
JSONObject mergedObj = new JSONObject();
mergedObj.putAll(JSONObject.parseObject(jsonString));
if (bmsBigStrongAward.getIsGainRewards() == 0) {
bmsBigStrongAward.setNewRewardDescription("是");
} else {
bmsBigStrongAward.setNewRewardDescription("否");
}
mergedObj.putAll(JSONObject.parseObject(JSONObject.toJSONString(bmsBigStrongAward)));
addProject.setOtherJson(mergedObj.toJSONString());
addProject.setFileJson("{" +
'"' + "企业近3年发展情况及未来发展计划" + '"' + ":" + '"' + bmsBigStrongAward.getDevelopmentPlan() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 申请审批
iCommonService.insertAuditRecord(declarationRecords.getId(), 0);
}
return num;
}

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsBigStrongAward;
import com.ruoyi.jjh.declaration.entity.BmsBrandingAward;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsBrandingAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsBrandingAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsBrandingAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsBrandingAwardService;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -46,6 +44,9 @@ public class BmsBrandingAwardServiceImpl extends ServiceImpl<BmsBrandingAwardMap
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -92,23 +93,29 @@ public class BmsBrandingAwardServiceImpl extends ServiceImpl<BmsBrandingAwardMap
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交品牌打造奖补申请");
declarationRecords.setDetailId(bmsBrandingAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsBrandingAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsBrandingAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsBrandingAward));
addProject.setFileJson("{" +
'"' + "证明材料" + '"' + ":" + '"' +bmsBrandingAward.getEvidence()+ '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 审批状态
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsBrandingAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
iBmsDeclarationRecordsService.updateById(declarationRecords);
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsBrandingAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsBrandingAward));
addProject.setFileJson("{" +
'"' + "证明材料" + '"' + ":" + '"' +bmsBrandingAward.getEvidence()+ '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 审批状态
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsBrandingAward;
import com.ruoyi.jjh.declaration.entity.BmsCarrierConstructionAward;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsCarrierConstructionAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsCarrierConstructionAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsCarrierConstructionAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsCarrierConstructionAwardService;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -47,6 +45,9 @@ public class BmsCarrierConstructionAwardServiceImpl extends ServiceImpl<BmsCarri
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -94,25 +95,31 @@ public class BmsCarrierConstructionAwardServiceImpl extends ServiceImpl<BmsCarri
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交载体建设奖补申请");
declarationRecords.setDetailId(bmsCarrierConstructionAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsCarrierConstructionAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsCarrierConstructionAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsCarrierConstructionAward));
addProject.setFileJson("{" +
'"' + "相关佐证资料" + '"' + ":" + '"' + bmsCarrierConstructionAward.getSupportingMaterials() + '"' + ','+
'"' + "项目工商登记许可" + '"' + ":" + '"' + bmsCarrierConstructionAward.getBusinessLicense() + '"' + ','+
'"' + "消防验收报告" + '"' + ":" + '"' + bmsCarrierConstructionAward.getFireReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsCarrierConstructionAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsCarrierConstructionAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsCarrierConstructionAward));
addProject.setFileJson("{" +
'"' + "相关佐证资料" + '"' + ":" + '"' + bmsCarrierConstructionAward.getSupportingMaterials() + '"' + ','+
'"' + "项目工商登记许可" + '"' + ":" + '"' + bmsCarrierConstructionAward.getBusinessLicense() + '"' + ','+
'"' + "消防验收报告" + '"' + ":" + '"' + bmsCarrierConstructionAward.getFireReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsBrandingAward;
import com.ruoyi.jjh.declaration.entity.BmsCreditManagement;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsCreditManagementAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsCreditManagementUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsCreditManagementMapper;
import com.ruoyi.jjh.declaration.service.IBmsCreditManagementService;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -47,6 +45,9 @@ public class BmsCreditManagementServiceImpl extends ServiceImpl<BmsCreditManagem
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -93,26 +94,31 @@ public class BmsCreditManagementServiceImpl extends ServiceImpl<BmsCreditManagem
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交信用管理奖补申请");
declarationRecords.setDetailId(bmsCreditManagement.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsCreditManagementAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsCreditManagementAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsCreditManagement));
addProject.setFileJson("{" +
'"' + "项目方案" + '"' + ":" + '"' + bmsCreditManagement.getProjectPlan() + '"' + ","+
'"' + "资金使用说明" + '"' + ":" + '"' + bmsCreditManagement.getUsesFunds() + '"' + ","+
'"' + "项目专项审计报告" + '"' + ":" + '"' + bmsCreditManagement.getAuditReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsCreditManagementAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsCreditManagementAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsCreditManagement));
addProject.setFileJson("{" +
'"' + "项目方案" + '"' + ":" + '"' + bmsCreditManagement.getProjectPlan() + '"' + ","+
'"' + "资金使用说明" + '"' + ":" + '"' + bmsCreditManagement.getUsesFunds() + '"' + ","+
'"' + "项目专项审计报告" + '"' + ":" + '"' + bmsCreditManagement.getAuditReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsBrandingAward;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsIndustrialInternetAward;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsIndustrialInternetAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsIndustrialInternetAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsIndustrialInternetAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsIndustrialInternetAwardService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -45,6 +43,9 @@ public class BmsIndustrialInternetAwardServiceImpl extends ServiceImpl<BmsIndust
private IBmsDeclarationRecordsService iBmsDeclarationRecordsService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
* 5G+
*
@ -91,23 +92,31 @@ public class BmsIndustrialInternetAwardServiceImpl extends ServiceImpl<BmsIndust
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交5G+工业互联网奖补申请");
declarationRecords.setDetailId(bmsIndustrialInternetAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsIndustrialInternetAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsIndustrialInternetAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsIndustrialInternetAward));
addProject.setFileJson("{" +
'"' + "证明材料" + '"' + ":" + '"' + bmsIndustrialInternetAward.getMaterial() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsIndustrialInternetAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsIndustrialInternetAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsIndustrialInternetAward));
addProject.setFileJson("{" +
'"' + "证明材料" + '"' + ":" + '"' + bmsIndustrialInternetAward.getMaterial() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

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

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsIntegrationIndustries;
import com.ruoyi.jjh.declaration.entity.BmsLogisticsDevelopmentAward;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsLogisticsDevelopmentAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsLogisticsDevelopmentAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsLogisticsDevelopmentAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsLogisticsDevelopmentAwardService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -49,6 +47,9 @@ public class BmsLogisticsDevelopmentAwardServiceImpl extends ServiceImpl<BmsLogi
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -95,27 +96,33 @@ public class BmsLogisticsDevelopmentAwardServiceImpl extends ServiceImpl<BmsLogi
// 新增申请记录
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交物流发展奖补申请");
declarationRecords.setStatus(1L);
declarationRecords.setDetailId(bmsLogisticsDevelopmentAward.getId());
declarationRecords.setId(bmsLogisticsDevelopmentAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsLogisticsDevelopmentAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsLogisticsDevelopmentAward));
addProject.setFileJson( "{" +
'"' + "荣誉证明文件" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getHonorCertificate() + '"' + ","+
'"' + "平台名称" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getPlatformName() + '"' + ","+
'"' + "企业投资项目备案通知书或核准批复文件" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getFilingNotice() + '"' + ","+
'"' + "会计师事务所出具的企业财务报表审计报告" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getAuditReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
declarationRecords.setDetailId(bmsLogisticsDevelopmentAward.getId());
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsLogisticsDevelopmentAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsLogisticsDevelopmentAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsLogisticsDevelopmentAward));
addProject.setFileJson( "{" +
'"' + "荣誉证明文件" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getHonorCertificate() + '"' + ","+
'"' + "平台名称" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getPlatformName() + '"' + ","+
'"' + "企业投资项目备案通知书或核准批复文件" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getFilingNotice() + '"' + ","+
'"' + "会计师事务所出具的企业财务报表审计报告" + '"' + ":" + '"' + bmsLogisticsDevelopmentAward.getAuditReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -7,15 +7,13 @@ import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsLogisticsDevelopmentAward;
import com.ruoyi.jjh.declaration.entity.BmsManufacturingServicesAward;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsManufacturingServicesAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsManufacturingServicesAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsManufacturingServicesAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsManufacturingServicesAwardService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -45,6 +43,9 @@ public class BmsManufacturingServicesAwardServiceImpl extends ServiceImpl<BmsMan
private IBmsDeclarationRecordsService iBmsDeclarationRecordsService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -91,27 +92,33 @@ public class BmsManufacturingServicesAwardServiceImpl extends ServiceImpl<BmsMan
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交制造服务业有效投入奖补申请");
declarationRecords.setDetailId(bmsManufacturingServicesAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsManufacturingServicesAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsManufacturingServicesAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//新增项目
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsManufacturingServicesAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsManufacturingServicesAward));
addProject.setFileJson( "{" +
'"' + "企业投资项目备案通知书或核准批复文件" + '"' + ":" + '"' + bmsManufacturingServicesAward.getFilingNotice() + '"' + ","+
'"' + "购置设备发票清单及发票扫描件" + '"' + ":" + '"' + bmsManufacturingServicesAward.getInvoice() + '"' + ","+
'"' + "会计师事务所出具的企业申报项目购置设备情况的专项审计报告" + '"' + ":" + '"' + bmsManufacturingServicesAward.getAuditReport() + '"' + ","+
'"' + "会计师事务所出具的企业财务报表审计报告" + '"' + ":" + '"' + bmsManufacturingServicesAward.getFinancialStatements() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//新增项目
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsManufacturingServicesAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsManufacturingServicesAward));
addProject.setFileJson( "{" +
'"' + "企业投资项目备案通知书或核准批复文件" + '"' + ":" + '"' + bmsManufacturingServicesAward.getFilingNotice() + '"' + ","+
'"' + "购置设备发票清单及发票扫描件" + '"' + ":" + '"' + bmsManufacturingServicesAward.getInvoice() + '"' + ","+
'"' + "会计师事务所出具的企业申报项目购置设备情况的专项审计报告" + '"' + ":" + '"' + bmsManufacturingServicesAward.getAuditReport() + '"' + ","+
'"' + "会计师事务所出具的企业财务报表审计报告" + '"' + ":" + '"' + bmsManufacturingServicesAward.getFinancialStatements() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -12,10 +12,7 @@ import com.ruoyi.jjh.declaration.entity.dto.BmsOutQuitProductsUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsOutQuitProductsMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsOutQuitProductsService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -44,6 +41,8 @@ public class BmsOutQuitProductsServiceImpl extends ServiceImpl<BmsOutQuitProduct
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
* 2024退
*
@ -78,43 +77,49 @@ public class BmsOutQuitProductsServiceImpl extends ServiceImpl<BmsOutQuitProduct
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交2024年度淘汰落后和退出低端低效产能装备清单");
declarationRecords.setDetailId(products.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsOutQuitProductsAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsOutQuitProductsAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsOutQuitProductsAddDto.getDeclarationId());
addProject.setStatus(1);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsOutQuitProductsAddDto.getDeclarationId());
addProject.setStatus(1);
if(products.getIndustry() == 1){
products.setNewIndustry("轻工");
}else if(products.getIndustry() == 2){
products.setNewIndustry("纺织");
}else if(products.getIndustry() == 3){
products.setNewIndustry("冶金");
}else if(products.getIndustry() == 4){
products.setNewIndustry("化工");
}else if(products.getIndustry() == 5){
products.setNewIndustry("建材");
}else if(products.getIndustry() == 6){
products.setNewIndustry("机械加工");
}
if(products.getType() == 1){
products.setNewType("淘汰落后生产工艺装备");
}else{
products.setNewType("退出低端低效生产工艺装备");
}
addProject.setOtherJson(JSONObject.toJSONString(products));
addProject.setFileJson( "{" +
'"' + "拟淘汰或退出生产工艺装备情况" + '"' + ":" + '"' + products.getSpecifics() + '"' + "," +
'"' + "其他相关情况说明" + '"' + ":" + '"' + products.getOtherSpecifics() + '"'+
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
if(products.getIndustry() == 1){
products.setNewIndustry("轻工");
}else if(products.getIndustry() == 2){
products.setNewIndustry("纺织");
}else if(products.getIndustry() == 3){
products.setNewIndustry("冶金");
}else if(products.getIndustry() == 4){
products.setNewIndustry("化工");
}else if(products.getIndustry() == 5){
products.setNewIndustry("建材");
}else if(products.getIndustry() == 6){
products.setNewIndustry("机械加工");
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
if(products.getType() == 1){
products.setNewType("淘汰落后生产工艺装备");
}else{
products.setNewType("退出低端低效生产工艺装备");
}
addProject.setOtherJson(JSONObject.toJSONString(products));
addProject.setFileJson( "{" +
'"' + "拟淘汰或退出生产工艺装备情况" + '"' + ":" + '"' + products.getSpecifics() + '"' + "," +
'"' + "其他相关情况说明" + '"' + ":" + '"' + products.getOtherSpecifics() + '"'+
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
return num;
}

@ -4,18 +4,12 @@ import cn.hutool.core.bean.BeanUtil;
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.BmsCarrierConstructionAward;
import com.ruoyi.jjh.declaration.entity.BmsDeclarationRecords;
import com.ruoyi.jjh.declaration.entity.BmsLogisticsDevelopmentAward;
import com.ruoyi.jjh.declaration.entity.BmsPlatformConstructionAward;
import com.ruoyi.jjh.declaration.entity.*;
import com.ruoyi.jjh.declaration.entity.dto.BmsPlatformConstructionAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsPlatformConstructionAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsPlatformConstructionAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsPlatformConstructionAwardService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -48,6 +42,8 @@ public class BmsPlatformConstructionAwardServiceImpl extends ServiceImpl<BmsPlat
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -93,24 +89,31 @@ public class BmsPlatformConstructionAwardServiceImpl extends ServiceImpl<BmsPlat
// 新增申请记录
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交平台建设奖补申请");
declarationRecords.setStatus(1L);
declarationRecords.setDetailId(bmsPlatformConstructionAward.getId());
declarationRecords.setId(bmsPlatformConstructionAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
declarationRecords.setDetailId(bmsPlatformConstructionAward.getId());
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsPlatformConstructionAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsPlatformConstructionAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsPlatformConstructionAward));
addProject.setFileJson( "{" +
'"' + "合作协议" + '"' + ":" + '"' + bmsPlatformConstructionAward.getAgreement() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsPlatformConstructionAwardAddDto.getDeclarationId());
addProject.setStatus(1);
addProject.setOtherJson(JSONObject.toJSONString(bmsPlatformConstructionAward));
addProject.setFileJson( "{" +
'"' + "合作协议" + '"' + ":" + '"' + bmsPlatformConstructionAward.getAgreement() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
return num;
}

@ -53,7 +53,8 @@ public class BmsProjectSettlementAwardServiceImpl extends ServiceImpl<BmsProject
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private JProjectService jProjectService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -113,30 +114,36 @@ public class BmsProjectSettlementAwardServiceImpl extends ServiceImpl<BmsProject
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交落户奖补申请");
declarationRecords.setDetailId(projectSettlementAward.getId());
declarationRecords.setStatus(1L);
declarationRecords.setId(bmsProjectSettlementAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsProjectSettlementAwardAddDto.getDeclarationId());
addProject.setStatus(1);
String jsonString = jProjectService.getJsonString(fundingDetailList);
JSONObject mergedObj = new JSONObject();
mergedObj.putAll(JSONObject.parseObject(jsonString));
mergedObj.putAll(JSONObject.parseObject(JSONObject.toJSONString(projectSettlementAward)));
addProject.setOtherJson(mergedObj.toJSONString());
addProject.setFileJson("{" +
'"' + "招商协议" + '"' + ":" + '"' + projectSettlementAward.getAgreement() + '"' + "," +
'"' + "验资报告" + '"' + ":" + '"' + projectSettlementAward.getBusinessLicense() + '"' + "," +
'"' + "营业执照" + '"' + ":" + '"' + projectSettlementAward.getOtherMaterials() + '"' + "," +
'"' + "其他证明材料" + '"' + ":" + '"' + projectSettlementAward.getReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(), 0);
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsProjectSettlementAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsProjectSettlementAwardAddDto.getDeclarationId());
addProject.setStatus(1);
String jsonString = jProjectService.getJsonString(fundingDetailList);
JSONObject mergedObj = new JSONObject();
mergedObj.putAll(JSONObject.parseObject(jsonString));
mergedObj.putAll(JSONObject.parseObject(JSONObject.toJSONString(projectSettlementAward)));
addProject.setOtherJson(mergedObj.toJSONString());
addProject.setFileJson("{" +
'"' + "招商协议" + '"' + ":" + '"' + projectSettlementAward.getAgreement() + '"' + "," +
'"' + "验资报告" + '"' + ":" + '"' + projectSettlementAward.getBusinessLicense() + '"' + "," +
'"' + "营业执照" + '"' + ":" + '"' + projectSettlementAward.getOtherMaterials() + '"' + "," +
'"' + "其他证明材料" + '"' + ":" + '"' + projectSettlementAward.getReport() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(), 0);
}
return num;
}

@ -7,15 +7,13 @@ 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.BmsSceneOpeningAward;
import com.ruoyi.jjh.declaration.entity.BmsTemplateRecord;
import com.ruoyi.jjh.declaration.entity.dto.BmsSceneOpeningAwardAddDto;
import com.ruoyi.jjh.declaration.entity.dto.BmsSceneOpeningAwardUpdateDto;
import com.ruoyi.jjh.declaration.entity.vo.BmsBigStrongAwardQueryVo;
import com.ruoyi.jjh.declaration.entity.vo.DeclarationRecordsVo;
import com.ruoyi.jjh.declaration.mapper.BmsSceneOpeningAwardMapper;
import com.ruoyi.jjh.declaration.service.IBmsDeclarationRecordsService;
import com.ruoyi.jjh.declaration.service.IBmsSceneOpeningAwardService;
import com.ruoyi.jjh.declaration.service.IBmsTemplateInfoService;
import com.ruoyi.jjh.declaration.service.ICommonService;
import com.ruoyi.jjh.declaration.service.*;
import com.ruoyi.jjh.ent.entity.JProject;
import com.ruoyi.jjh.ent.service.JProjectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -48,6 +46,9 @@ public class BmsSceneOpeningAwardServiceImpl extends ServiceImpl<BmsSceneOpening
@Resource
private IBmsTemplateInfoService iBmsTemplateInfoService;
@Resource
private IBmsTemplateRecordService iBmsTemplateRecordService;
/**
*
*
@ -93,29 +94,36 @@ public class BmsSceneOpeningAwardServiceImpl extends ServiceImpl<BmsSceneOpening
BmsDeclarationRecords declarationRecords = new BmsDeclarationRecords();
declarationRecords.setMatter("提交场景开放奖补申请");
declarationRecords.setStatus(1L);
declarationRecords.setDetailId(bmsSceneOpeningAward.getId());
declarationRecords.setId(bmsSceneOpeningAwardAddDto.getDeclarationId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsSceneOpeningAwardAddDto.getDeclarationId());
addProject.setStatus(1);
if(bmsSceneOpeningAward.getType() == 0){
bmsSceneOpeningAward.setNewType("市场服务类");
}else{
bmsSceneOpeningAward.setNewType("公共服务类");
//如果该申报任务是不需要审批的则修改状态为已填报
BmsTemplateRecord tes = iBmsTemplateRecordService.getById(iBmsDeclarationRecordsService.getById(bmsSceneOpeningAwardAddDto.getDeclarationId()).getTemplateRecordId());
if(tes.getIsApproval() == 0){
declarationRecords.setStatus(6L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
}else {
declarationRecords.setStatus(1L);
iBmsDeclarationRecordsService.updateById(declarationRecords);
//获取某个在线记录id可以添加到项目库的数据
JProject addProject = iBmsDeclarationRecordsService.getAddProject(bmsSceneOpeningAwardAddDto.getDeclarationId());
addProject.setStatus(1);
if(bmsSceneOpeningAward.getType() == 0){
bmsSceneOpeningAward.setNewType("市场服务类");
}else{
bmsSceneOpeningAward.setNewType("公共服务类");
}
addProject.setOtherJson(JSONObject.toJSONString(bmsSceneOpeningAward));
addProject.setFileJson("{" +
'"' + "证明材料(公示、发文证明、专家评分表)" + '"' + ":" + '"' + bmsSceneOpeningAward.getMaterial() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
}
addProject.setOtherJson(JSONObject.toJSONString(bmsSceneOpeningAward));
addProject.setFileJson("{" +
'"' + "证明材料(公示、发文证明、专家评分表)" + '"' + ":" + '"' + bmsSceneOpeningAward.getMaterial() + '"' +
"}");
jProjectService.save(addProject);
declarationRecords.setJjhProjectId(addProject.getId());
iBmsDeclarationRecordsService.updateById(declarationRecords);
// 生成审核
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
return num;
}

Loading…
Cancel
Save