|
@@ -61,7 +61,7 @@ public class ReportContentServiceImpl<M extends BaseMapper<T>, T extends ReportC
|
|
|
updateStatus(reportId, projectId, userId);
|
|
|
return super.save(entity);
|
|
|
}
|
|
|
-
|
|
|
+ @Transactional
|
|
|
public boolean updateById(T entity) {
|
|
|
String userId = UserTokenUtil.getTokenUserID();
|
|
|
Assert.notBlank(userId, "没有获取到当前用户的信息,当前登录用户不合法");
|
|
@@ -70,6 +70,7 @@ public class ReportContentServiceImpl<M extends BaseMapper<T>, T extends ReportC
|
|
|
T dbEntity = this.getOne(Wrappers.lambdaQuery(entityClass)
|
|
|
.eq(T::getId, entity.getId()));
|
|
|
Assert.isTrue(Objects.nonNull(dbEntity),"{}-{}:不存在", entity.getReportId(), entity.getProjectName());
|
|
|
+ updateStatus(entity.getReportId(), entity.getProjectId(), userId);
|
|
|
return super.updateById(entity);
|
|
|
}
|
|
|
|