|
@@ -724,6 +724,7 @@ public class ProjectListService {
|
|
|
}
|
|
|
|
|
|
public IPage<ProgramProjectListInfo> list(Page<ProgramProjectListInfo> page, ProgramProjectListInfo info, String tabType) throws Exception{
|
|
|
+ String userId = SpringUtil.getBean ( IUserApi.class ).getByToken (TokenProvider.getCurrentToken ( )).getId();
|
|
|
QueryWrapper<ProgramProjectListInfo> wrapper = QueryWrapperGenerator.buildQueryCondition(info, ProgramProjectListInfo.class);
|
|
|
if (ObjectUtil.isNotEmpty(info) && StringUtils.isNotBlank(info.getCreateById())) {
|
|
|
wrapper.eq("a.create_by_id", info.getCreateById());
|
|
@@ -773,7 +774,7 @@ public class ProjectListService {
|
|
|
break;
|
|
|
}
|
|
|
}*/
|
|
|
- IPage<ProgramProjectListInfo> pageList = projectListMapper.findPageList(page, wrapper);
|
|
|
+ IPage<ProgramProjectListInfo> pageList = projectListMapper.findPageList(page, wrapper,userId);
|
|
|
pageList.getRecords().stream().forEach(item ->{
|
|
|
// 查询关联发票的开票状态
|
|
|
if (StringUtils.isNotBlank(info.getShowInvoiceFlag()) && "1".equals(info.getShowInvoiceFlag())) {
|
|
@@ -1867,4 +1868,50 @@ public class ProjectListService {
|
|
|
}
|
|
|
return ResponseEntity.ok(byIdAudit);
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 补充内容保存方法
|
|
|
+ * @param dto
|
|
|
+ * @return
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ public String supplementSave(ProjectListDto dto){
|
|
|
+ if (StringUtils.isNotEmpty(dto.getId())) {
|
|
|
+ //获取当前登录人信息
|
|
|
+ UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken());
|
|
|
+ // 修改项目管理列表主表信息
|
|
|
+ ProgramProjectListInfo info = new ProgramProjectListInfo();
|
|
|
+ BeanUtils.copyProperties(dto, info);
|
|
|
+ info.setUpdateById(userDTO.getId());
|
|
|
+ info.setUpdateTime(new Date());
|
|
|
+ info.setDelFlag(0);
|
|
|
+ projectListMapper.updateById(info);
|
|
|
+
|
|
|
+ //根据项目id查询归档信息
|
|
|
+ ProgramArchiveDto archiveInfo = programArchiveMapper.getByProgramId(dto.getId());
|
|
|
+ if(null != archiveInfo && StringUtils.isNotBlank(archiveInfo.getId())){
|
|
|
+ //根据项目id修改归档信息
|
|
|
+ ProgramArchive programArchive = new ProgramArchive();
|
|
|
+ programArchive.setId(archiveInfo.getId());
|
|
|
+ programArchive.setEvaluationReportDate(dto.getEvaluationReportDate());
|
|
|
+ programArchive.setSignatureEvaluatorFirst(dto.getSignatureEvaluatorFirst());
|
|
|
+ programArchive.setSignatureEvaluatorSecond(dto.getSignatureEvaluatorSecond());
|
|
|
+ programArchive.setWaystEvaluation(dto.getWaystEvaluation());
|
|
|
+ programArchive.setFixedAssetsEvaluation(dto.getFixedAssetsEvaluation());
|
|
|
+ programArchive.setNetAssetsEvaluation(dto.getNetAssetsEvaluation());
|
|
|
+ programArchive.setRentEvaluation(dto.getRentEvaluation());
|
|
|
+ programArchive.setReportCharges(dto.getReportCharges());
|
|
|
+ programArchive.setIsInvoice(dto.getIsInvoice());
|
|
|
+ programArchive.setIsContractArchive(dto.getIsContractArchive());
|
|
|
+ programArchive.setIsPapersArchive(dto.getIsPapersArchive());
|
|
|
+ programArchive.setYear(dto.getYear());
|
|
|
+ programArchiveMapper.updateById(programArchive);
|
|
|
+ }else{
|
|
|
+ return "0";
|
|
|
+ }
|
|
|
+
|
|
|
+ return "1";
|
|
|
+ }
|
|
|
+ return "0";
|
|
|
+ }
|
|
|
}
|