|  | @@ -48,7 +48,6 @@ import com.jeeplus.sys.feign.IUserApi;
 | 
	
		
			
				|  |  |  import com.jeeplus.sys.feign.IWorkAttachmentApi;
 | 
	
		
			
				|  |  |  //import com.jeeplus.sys.service.UserService;
 | 
	
		
			
				|  |  |  //import com.jeeplus.sys.mapper.UserMapper;
 | 
	
		
			
				|  |  | -import com.jeeplus.sys.service.UserService;
 | 
	
		
			
				|  |  |  import com.jeeplus.sys.service.dto.UserDTO;
 | 
	
		
			
				|  |  |  //import com.jeeplus.sys.utils.DictUtils;
 | 
	
		
			
				|  |  |  //import com.jeeplus.sys.utils.Global;
 | 
	
	
		
			
				|  | @@ -130,9 +129,6 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
 | 
	
		
			
				|  |  |      @Resource
 | 
	
		
			
				|  |  |      private CwProjectRecordsService cwProjectRecordsService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -    @Resource
 | 
	
		
			
				|  |  | -    private UserService userService;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  |       * 保存项目以及其他相关信息
 | 
	
	
		
			
				|  | @@ -544,7 +540,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
 | 
	
		
			
				|  |  |                  //根据项目经理1的id去查项目经理去名称
 | 
	
		
			
				|  |  |                  if (StringUtils.isNotBlank(li.getProjectMasterId())){
 | 
	
		
			
				|  |  |                      UserDTO matchingUser = null;
 | 
	
		
			
				|  |  | -                    for (UserDTO user : allUserInfo) {
 | 
	
		
			
				|  |  | +                    for (UserDTO user : finalAllUserInfo) {
 | 
	
		
			
				|  |  |                          if (li.getProjectMasterId().equals(user.getId())) {
 | 
	
		
			
				|  |  |                              matchingUser = user;
 | 
	
		
			
				|  |  |                              break;
 | 
	
	
		
			
				|  | @@ -560,7 +556,7 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
 | 
	
		
			
				|  |  |              if (StringUtils.isBlank(li.getRealHeaderName())) {
 | 
	
		
			
				|  |  |                  if (StringUtils.isNotBlank(li.getProjectMaster2Id())){
 | 
	
		
			
				|  |  |                      UserDTO matchingUser = null;
 | 
	
		
			
				|  |  | -                    for (UserDTO user : allUserInfo) {
 | 
	
		
			
				|  |  | +                    for (UserDTO user : finalAllUserInfo) {
 | 
	
		
			
				|  |  |                          if (li.getProjectMaster2Id().equals(user.getId())) {
 | 
	
		
			
				|  |  |                              matchingUser = user;
 | 
	
		
			
				|  |  |                              break;
 | 
	
	
		
			
				|  | @@ -2548,12 +2544,14 @@ public class CwProjectReportService extends ServiceImpl<CwProjectReportMapper, C
 | 
	
		
			
				|  |  |                  i.setSort(j);
 | 
	
		
			
				|  |  |  //                ossServiceMapper.insertWorkAttachment(i, userDTO);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -                Map<String,String> map = new HashMap<>();
 | 
	
		
			
				|  |  | +                /*Map<String,String> map = new HashMap<>();
 | 
	
		
			
				|  |  |                  String workAttachment = JSON.toJSONString((i));
 | 
	
		
			
				|  |  |                  String userDTOInfo = JSON.toJSONString((userDTO));
 | 
	
		
			
				|  |  |                  map.put("workAttachment",workAttachment);
 | 
	
		
			
				|  |  | -                map.put("userDTO",userDTOInfo);
 | 
	
		
			
				|  |  | -                SpringUtil.getBean ( IWorkAttachmentApi.class ).insertWorkAttachment(map);
 | 
	
		
			
				|  |  | +                map.put("userDTO",userDTOInfo);*/
 | 
	
		
			
				|  |  | +                //附件信息保存
 | 
	
		
			
				|  |  | +                attachmentMapper.insertWorkAttachment(i,userDTO);
 | 
	
		
			
				|  |  | +                //SpringUtil.getBean ( IWorkAttachmentApi.class ).insertWorkAttachment(map);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |                  CwProjectReportFile reportFile = new CwProjectReportFile();
 | 
	
		
			
				|  |  |                  BeanUtils.copyProperties(dto, reportFile);
 |