|
|
|
@ -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,9 +90,14 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
declarationRecords.setMatter("提交两业融合奖补申请");
|
|
|
|
|
declarationRecords.setDetailId(bmsIntegrationIndustries.getId());
|
|
|
|
|
declarationRecords.setId(bmsIntegrationIndustriesAddDto.getDeclarationId());
|
|
|
|
|
//如果该申报任务是不需要审批的则修改状态为已填报
|
|
|
|
|
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);
|
|
|
|
@ -121,9 +123,9 @@ public class BmsIntegrationIndustriesServiceImpl extends ServiceImpl<BmsIntegrat
|
|
|
|
|
jProjectService.save(addProject);
|
|
|
|
|
declarationRecords.setJjhProjectId(addProject.getId());
|
|
|
|
|
iBmsDeclarationRecordsService.updateById(declarationRecords);
|
|
|
|
|
|
|
|
|
|
// 生成审核
|
|
|
|
|
iCommonService.insertAuditRecord(declarationRecords.getId(),0);
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|