|  | @@ -353,6 +353,9 @@ public class CwProjectReportReviewService extends ServiceImpl<CwProjectReportRev
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |      public String add(CwProjectReportData dto) throws Exception{
 |  |      public String add(CwProjectReportData dto) throws Exception{
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        long l1 = System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  |          //生成主键id值
 |  |          //生成主键id值
 | 
												
													
														
															|  |          String id = UUID.randomUUID().toString().replace("-", "");
 |  |          String id = UUID.randomUUID().toString().replace("-", "");
 | 
												
													
														
															|  |          //获取当前登录人信息
 |  |          //获取当前登录人信息
 | 
												
											
												
													
														
															|  | @@ -360,6 +363,9 @@ public class CwProjectReportReviewService extends ServiceImpl<CwProjectReportRev
 | 
												
													
														
															|  |          //保存基本信息
 |  |          //保存基本信息
 | 
												
													
														
															|  |          CwProjectReview info = new CwProjectReview();
 |  |          CwProjectReview info = new CwProjectReview();
 | 
												
													
														
															|  |          BeanUtils.copyProperties(dto, info);
 |  |          BeanUtils.copyProperties(dto, info);
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +        long l2 = System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +        System.out.println("addservice1:" + (l2 -l1));
 | 
												
													
														
															|  |          //报告编号生成
 |  |          //报告编号生成
 | 
												
													
														
															|  |          String documentNo = "";
 |  |          String documentNo = "";
 | 
												
													
														
															|  |          String currentToken = TokenProvider.getCurrentToken();
 |  |          String currentToken = TokenProvider.getCurrentToken();
 | 
												
											
												
													
														
															|  | @@ -374,6 +380,8 @@ public class CwProjectReportReviewService extends ServiceImpl<CwProjectReportRev
 | 
												
													
														
															|  |          } else if (info.getReportType().equals("5")){
 |  |          } else if (info.getReportType().equals("5")){
 | 
												
													
														
															|  |              documentNo = SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialReviewNum(userDTO.getCompanyDTO().getId(), CwProjectReview.BIZ_CODE5,currentToken);
 |  |              documentNo = SpringUtil.getBean ( IWorkAttachmentApi.class ).genSerialReviewNum(userDTO.getCompanyDTO().getId(), CwProjectReview.BIZ_CODE5,currentToken);
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | 
 |  | +        long l3 = System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +        System.out.println("addservice2:" + (l3 -l2));
 | 
												
													
														
															|  |          info.setId(id);
 |  |          info.setId(id);
 | 
												
													
														
															|  |          info.setReportReviewNo(documentNo);
 |  |          info.setReportReviewNo(documentNo);
 | 
												
													
														
															|  |          info.setCreateById(userDTO.getId());
 |  |          info.setCreateById(userDTO.getId());
 | 
												
											
												
													
														
															|  | @@ -382,6 +390,8 @@ public class CwProjectReportReviewService extends ServiceImpl<CwProjectReportRev
 | 
												
													
														
															|  |          info.setUpdateTime(new Date());
 |  |          info.setUpdateTime(new Date());
 | 
												
													
														
															|  |          info.setReportId(dto.getId());
 |  |          info.setReportId(dto.getId());
 | 
												
													
														
															|  |          mapper.insert(info);
 |  |          mapper.insert(info);
 | 
												
													
														
															|  | 
 |  | +        long l4 = System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +        System.out.println("addservice2:" + (l4 -l3));
 | 
												
													
														
															|  |  //        CwProjectRecords records = new CwProjectRecords();
 |  |  //        CwProjectRecords records = new CwProjectRecords();
 | 
												
													
														
															|  |  //        records.setId(dto.getProjectId());
 |  |  //        records.setId(dto.getProjectId());
 | 
												
													
														
															|  |  //        records.setReportReview("1"); // 已开始报告复核
 |  |  //        records.setReportReview("1"); // 已开始报告复核
 | 
												
											
												
													
														
															|  | @@ -399,6 +409,8 @@ public class CwProjectReportReviewService extends ServiceImpl<CwProjectReportRev
 | 
												
													
														
															|  |                  detailMapper.insert(detail);
 |  |                  detailMapper.insert(detail);
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
													
														
															|  |          }
 |  |          }
 | 
												
													
														
															|  | 
 |  | +        long l5 = System.currentTimeMillis();
 | 
												
													
														
															|  | 
 |  | +        System.out.println("addservice2:" + (l5 -l4));
 | 
												
													
														
															|  |          return info.getId();
 |  |          return info.getId();
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  |  
 |  |  
 |