|
|
@ -2,8 +2,6 @@ package com.ruoyi.jjh.declaration.service.impl;
|
|
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import cn.hutool.core.collection.CollectionUtil;
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
import com.ruoyi.common.context.SecurityContextHolder;
|
|
|
|
import com.ruoyi.common.context.SecurityContextHolder;
|
|
|
@ -19,8 +17,8 @@ import com.ruoyi.jjh.declaration.mapper.BmsDeclarationRecordsMapper;
|
|
|
|
import com.ruoyi.jjh.declaration.service.*;
|
|
|
|
import com.ruoyi.jjh.declaration.service.*;
|
|
|
|
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.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
@ -60,9 +58,67 @@ public class BmsDeclarationRecordsServiceImpl extends ServiceImpl<BmsDeclaration
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IBmsEnterpriseBasicInfoService iBmsEnterpriseBasicInfoService;
|
|
|
|
private IBmsEnterpriseBasicInfoService iBmsEnterpriseBasicInfoService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 项目落户奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private IBmsProjectSettlementAwardService bmsProjectSettlementAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 做大做强奖
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsBigStrongAwardService bmsBigStrongAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 载体建设奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsCarrierConstructionAwardService bmsCarrierConstructionAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 平台建设奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsPlatformConstructionAwardService bmsPlatformConstructionAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 品牌打造奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsBrandingAwardService bmsBrandingAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 场景开放奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsSceneOpeningAwardService bmsSceneOpeningAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 信用管理奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsCreditManagementService bmsCreditManagementService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 5G+工业互联网奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsIndustrialInternetAwardService bmsIndustrialInternetAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 制造服务业有效投入奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsManufacturingServicesAwardService bmsManufacturingServicesAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 物流发展奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsLogisticsDevelopmentAwardService bmsLogisticsDevelopmentAwardService;
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 两业融合奖补
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
|
|
|
private IBmsIntegrationIndustriesService bmsIntegrationIndustriesService;
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private JProjectService jProjectService;
|
|
|
|
private JProjectService jProjectService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${ruoyi.profile}")
|
|
|
|
|
|
|
|
private String fileAddress;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 查询在线申报记录
|
|
|
|
* 查询在线申报记录
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -583,10 +639,59 @@ public class BmsDeclarationRecordsServiceImpl extends ServiceImpl<BmsDeclaration
|
|
|
|
return baseMapper.updateById(bmsDeclarationRecords);
|
|
|
|
return baseMapper.updateById(bmsDeclarationRecords);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
public String fileList(List<Long> list) {
|
|
|
|
/**
|
|
|
|
List<BmsDeclarationRecords> rd = baseMapper.selectBatchIds(list);
|
|
|
|
* 根据id集合压缩所有文件使用类
|
|
|
|
System.out.println(rd);
|
|
|
|
*/
|
|
|
|
return null;
|
|
|
|
public String getAllFile(Long args,Long id) {
|
|
|
|
|
|
|
|
if (args == 1) {
|
|
|
|
|
|
|
|
BmsProjectSettlementAward lh = bmsProjectSettlementAwardService.getById(id);
|
|
|
|
|
|
|
|
return lh.getAgreement() + "," +
|
|
|
|
|
|
|
|
lh.getReport() + "," +
|
|
|
|
|
|
|
|
lh.getBusinessLicense() + "," +
|
|
|
|
|
|
|
|
lh.getOtherMaterials();
|
|
|
|
|
|
|
|
} else if (args == 2) {
|
|
|
|
|
|
|
|
BmsBigStrongAward zdzq = bmsBigStrongAwardService.getById(id);
|
|
|
|
|
|
|
|
return zdzq.getDevelopmentPlan();
|
|
|
|
|
|
|
|
}else if (args == 3) {
|
|
|
|
|
|
|
|
BmsCarrierConstructionAward ztjs = bmsCarrierConstructionAwardService.getById(id);
|
|
|
|
|
|
|
|
return ztjs.getSupportingMaterials() + "," +
|
|
|
|
|
|
|
|
ztjs.getBusinessLicense() + "," +
|
|
|
|
|
|
|
|
ztjs.getFireReport();
|
|
|
|
|
|
|
|
}else if (args == 4) {
|
|
|
|
|
|
|
|
BmsPlatformConstructionAward ptjs = bmsPlatformConstructionAwardService.getById(id);
|
|
|
|
|
|
|
|
return ptjs.getAgreement();
|
|
|
|
|
|
|
|
}else if (args == 5) {
|
|
|
|
|
|
|
|
BmsBrandingAward ppdz = bmsBrandingAwardService.getById(id);
|
|
|
|
|
|
|
|
return ppdz.getEvidence();
|
|
|
|
|
|
|
|
}else if (args == 6) {
|
|
|
|
|
|
|
|
BmsSceneOpeningAward cjkf = bmsSceneOpeningAwardService.getById(id);
|
|
|
|
|
|
|
|
return cjkf.getMaterial();
|
|
|
|
|
|
|
|
}else if (args == 7) {
|
|
|
|
|
|
|
|
BmsCreditManagement xygl = bmsCreditManagementService.getById(id);
|
|
|
|
|
|
|
|
return xygl.getProjectPlan() + "," + xygl.getUsesFunds() + "," + xygl.getAuditReport() ;
|
|
|
|
|
|
|
|
}else if (args == 8) {
|
|
|
|
|
|
|
|
BmsIndustrialInternetAward g5 = bmsIndustrialInternetAwardService.getById(id);
|
|
|
|
|
|
|
|
return g5.getMaterial();
|
|
|
|
|
|
|
|
}else if (args == 9) {
|
|
|
|
|
|
|
|
BmsManufacturingServicesAward zzfw = bmsManufacturingServicesAwardService.getById(id);
|
|
|
|
|
|
|
|
return zzfw.getFilingNotice() + "," + zzfw.getInvoice() + "," + zzfw.getAuditReport() + ","+ zzfw.getFinancialStatements() ;
|
|
|
|
|
|
|
|
}else if (args == 10) {
|
|
|
|
|
|
|
|
BmsLogisticsDevelopmentAward wl = bmsLogisticsDevelopmentAwardService.getById(id);
|
|
|
|
|
|
|
|
return wl.getFilingNotice() + "," + wl.getHonorCertificate() + "," + wl.getAuditReport() + ","+ wl.getPlatformName();
|
|
|
|
|
|
|
|
}else if (args == 11) {
|
|
|
|
|
|
|
|
BmsIntegrationIndustries ly = bmsIntegrationIndustriesService.getById(id);
|
|
|
|
|
|
|
|
return ly.getEvidence() + ","+
|
|
|
|
|
|
|
|
ly.getBusinessLicense() + "," +
|
|
|
|
|
|
|
|
ly.getTaxPaymentCertificate() + "," +
|
|
|
|
|
|
|
|
ly.getAuditReport() + "," +
|
|
|
|
|
|
|
|
ly.getEquityStructureChart() + "," +
|
|
|
|
|
|
|
|
ly.getDeclarationReport() + "," +
|
|
|
|
|
|
|
|
ly.getIndependentAccounting() + "," +
|
|
|
|
|
|
|
|
ly.getCapitalVerificationReport() + "," +
|
|
|
|
|
|
|
|
ly.getOtherEvidence();
|
|
|
|
|
|
|
|
}else {
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|