|
|
@ -271,6 +271,7 @@ public class FirstAidService implements IFirstAidService{ |
|
|
|
if(!userId.equals(firstAidMembers.get(0).getCreateUserId()) && !userId.equals(firstAidMembers.get(0).getRecordUserId())){ |
|
|
|
throw new BaseException(DefaultCodeError.NO_POWER); |
|
|
|
} |
|
|
|
|
|
|
|
//修改信息
|
|
|
|
firstAid.setName(param.getName()); |
|
|
|
firstAid.setNation(param.getNation()); |
|
|
@ -309,6 +310,15 @@ public class FirstAidService implements IFirstAidService{ |
|
|
|
firstAidRecordLog.setId(snowflake.nextId()); |
|
|
|
firstAidRecordLogMapper.insertSelective(firstAidRecordLog); |
|
|
|
} |
|
|
|
|
|
|
|
// 更新对应的用户名
|
|
|
|
if (firstAid.getProjectId() != null && firstAid.getProjectId() != 0) { |
|
|
|
updateProjectName(firstAid.getProjectId(), StrUtil.isEmpty(param.getName()) ? "" : param.getName()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
private void updateProjectName(Long projectId, String name) { |
|
|
|
firstAidDao.updateProjectName(projectId, name); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|