|  | @@ -18,6 +18,7 @@ import com.jeeplus.finance.projectReport.domain.CwProjectReportData;
 | 
												
													
														
															|  |  import com.jeeplus.finance.projectReport.domain.CwProjectReportSignature;
 |  |  import com.jeeplus.finance.projectReport.domain.CwProjectReportSignature;
 | 
												
													
														
															|  |  import com.jeeplus.finance.projectReport.mapper.ProjectReportWorkAttachmentMapper;
 |  |  import com.jeeplus.finance.projectReport.mapper.ProjectReportWorkAttachmentMapper;
 | 
												
													
														
															|  |  import com.jeeplus.finance.projectReport.service.CwProjectReportService;
 |  |  import com.jeeplus.finance.projectReport.service.CwProjectReportService;
 | 
												
													
														
															|  | 
 |  | +import com.jeeplus.finance.projectReport.service.dto.CwProjectReportDTO;
 | 
												
													
														
															|  |  import com.jeeplus.finance.projectReport.service.dto.CwProjectReportSignatureDTO;
 |  |  import com.jeeplus.finance.projectReport.service.dto.CwProjectReportSignatureDTO;
 | 
												
													
														
															|  |  import com.jeeplus.finance.workClientInfo.service.dto.CwWorkClientBaseDTO;
 |  |  import com.jeeplus.finance.workClientInfo.service.dto.CwWorkClientBaseDTO;
 | 
												
													
														
															|  |  import com.jeeplus.flowable.feign.IFlowableApi;
 |  |  import com.jeeplus.flowable.feign.IFlowableApi;
 | 
												
											
												
													
														
															|  | @@ -41,6 +42,7 @@ import org.springframework.http.ResponseEntity;
 | 
												
													
														
															|  |  import org.springframework.security.access.prepost.PreAuthorize;
 |  |  import org.springframework.security.access.prepost.PreAuthorize;
 | 
												
													
														
															|  |  import org.springframework.transaction.annotation.Transactional;
 |  |  import org.springframework.transaction.annotation.Transactional;
 | 
												
													
														
															|  |  import org.springframework.web.bind.annotation.*;
 |  |  import org.springframework.web.bind.annotation.*;
 | 
												
													
														
															|  | 
 |  | +import org.springframework.web.multipart.MultipartFile;
 | 
												
													
														
															|  |  
 |  |  
 | 
												
													
														
															|  |  import javax.annotation.Resource;
 |  |  import javax.annotation.Resource;
 | 
												
													
														
															|  |  import javax.servlet.http.HttpServletResponse;
 |  |  import javax.servlet.http.HttpServletResponse;
 | 
												
											
												
													
														
															|  | @@ -48,6 +50,7 @@ import javax.validation.Valid;
 | 
												
													
														
															|  |  import java.io.File;
 |  |  import java.io.File;
 | 
												
													
														
															|  |  import java.io.IOException;
 |  |  import java.io.IOException;
 | 
												
													
														
															|  |  import java.util.ArrayList;
 |  |  import java.util.ArrayList;
 | 
												
													
														
															|  | 
 |  | +import java.util.HashMap;
 | 
												
													
														
															|  |  import java.util.List;
 |  |  import java.util.List;
 | 
												
													
														
															|  |  import java.util.Map;
 |  |  import java.util.Map;
 | 
												
													
														
															|  |  import java.util.concurrent.TimeUnit;
 |  |  import java.util.concurrent.TimeUnit;
 | 
												
											
												
													
														
															|  | @@ -122,6 +125,7 @@ public class CwProjectReportController {
 | 
												
													
														
															|  |                  //根据项目经理id去人员表重查数据
 |  |                  //根据项目经理id去人员表重查数据
 | 
												
													
														
															|  |                  if (StringUtils.isNotBlank(i.getProjectMasterId())){
 |  |                  if (StringUtils.isNotBlank(i.getProjectMasterId())){
 | 
												
													
														
															|  |                      UserDTO byId = SpringUtil.getBean(IUserApi.class).getById(i.getProjectMasterId());
 |  |                      UserDTO byId = SpringUtil.getBean(IUserApi.class).getById(i.getProjectMasterId());
 | 
												
													
														
															|  | 
 |  | +                    if(null != byId)
 | 
												
													
														
															|  |                      i.setProjectMasterName(byId.getName());
 |  |                      i.setProjectMasterName(byId.getName());
 | 
												
													
														
															|  |                  }
 |  |                  }
 | 
												
													
														
															|  |              }
 |  |              }
 | 
												
											
												
													
														
															|  | @@ -129,6 +133,7 @@ public class CwProjectReportController {
 | 
												
													
														
															|  |                  //根据项目经理id去人员表重查数据
 |  |                  //根据项目经理id去人员表重查数据
 | 
												
													
														
															|  |                  if (StringUtils.isNotBlank(i.getProjectMasterId2())){
 |  |                  if (StringUtils.isNotBlank(i.getProjectMasterId2())){
 | 
												
													
														
															|  |                      UserDTO byId = SpringUtil.getBean(IUserApi.class).getById(i.getProjectMasterId2());
 |  |                      UserDTO byId = SpringUtil.getBean(IUserApi.class).getById(i.getProjectMasterId2());
 | 
												
													
														
															|  | 
 |  | +                    if(null != byId)
 | 
												
													
														
															|  |                      i.setRealHeaderName(byId.getName());
 |  |                      i.setRealHeaderName(byId.getName());
 | 
												
													
														
															|  |                  }
 |  |                  }
 | 
												
													
														
															|  |  
 |  |  
 | 
												
											
												
													
														
															|  | @@ -571,4 +576,23 @@ public class CwProjectReportController {
 | 
												
													
														
															|  |          projectReportService.rebackSign(reportId);
 |  |          projectReportService.rebackSign(reportId);
 | 
												
													
														
															|  |          return ResponseEntity.ok("操作成功");
 |  |          return ResponseEntity.ok("操作成功");
 | 
												
													
														
															|  |      }
 |  |      }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  | 
 |  | +    /**
 | 
												
													
														
															|  | 
 |  | +     * 数据导入(临时)
 | 
												
													
														
															|  | 
 |  | +     * @param file
 | 
												
													
														
															|  | 
 |  | +     * @param response
 | 
												
													
														
															|  | 
 |  | +     * @return
 | 
												
													
														
															|  | 
 |  | +     * @throws IOException
 | 
												
													
														
															|  | 
 |  | +     */
 | 
												
													
														
															|  | 
 |  | +    @GetMapping("/importExcel")
 | 
												
													
														
															|  | 
 |  | +    @ApiOperation(value = "事务所审计清单表导入")
 | 
												
													
														
															|  | 
 |  | +    public ResponseEntity importExcel(@RequestParam(value = "file", required = false) MultipartFile file, HttpServletResponse response) throws IOException {
 | 
												
													
														
															|  | 
 |  | +        ArrayList<CwProjectReportDTO> arrayList = new ArrayList<>();
 | 
												
													
														
															|  | 
 |  | +        HashMap<String,String> hashMap = new HashMap<>();
 | 
												
													
														
															|  | 
 |  | +        List<CwProjectReportDTO> listA = new ArrayList<>();
 | 
												
													
														
															|  | 
 |  | +        listA=EasyPoiUtil.importExcel(file, 0, 2, CwProjectReportDTO.class);
 | 
												
													
														
															|  | 
 |  | +        projectReportService.importDecide(listA);
 | 
												
													
														
															|  | 
 |  | +        return ResponseEntity.ok(arrayList);
 | 
												
													
														
															|  | 
 |  | +    }
 | 
												
													
														
															|  | 
 |  | +
 | 
												
													
														
															|  |  }
 |  |  }
 |