Kaynağa Gözat

用户\项目模块修改

anderx 2 yıl önce
ebeveyn
işleme
ff8d2ecc1b

+ 4 - 4
ruoyi-system/src/main/java/com/ruoyi/project/service/impl/ProjectStaffRecordServiceImpl.java

@@ -376,7 +376,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
                     p.setProcessStatus(2);
                     projectStaffRecordMapper.insertSelective(p);
                     successNum++;
-                    successMsg.append("<br/>" + successNum + "、项目: " + p.getName() + " 导入成功");
+                    successMsg.append("<br/>" + successNum + "、项目: " + p.getProjectName() + " 导入成功");
                 }else if (updateSupport){
                     BeanValidators.validateWithException(validator, p);
 
@@ -394,18 +394,18 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
                     }
                     projectStaffRecordMapper.updateByPrimaryKeySelective(p);
                     successNum++;
-                    successMsg.append("<br/>" + successNum + "、项目: " + p.getName() + " 更新成功");
+                    successMsg.append("<br/>" + successNum + "、项目: " + p.getProjectName() + " 更新成功");
                 }
                 else
                 {
                     failureNum++;
-                    failureMsg.append("<br/>" + failureNum + "、项目: " + p.getName() + " 已存在");
+                    failureMsg.append("<br/>" + failureNum + "、项目: " + p.getProjectName() + " 已存在");
                 }
             }
             catch (Exception e)
             {
                 failureNum++;
-                String msg = "<br/>" + failureNum + "、项目: " + p.getName() + " 导入失败:";
+                String msg = "<br/>" + failureNum + "、项目: " + p.getProjectName() + " 导入失败:";
                 failureMsg.append(msg + e.getMessage());
                 log.error(msg, e);
             }