...
|
...
|
@@ -226,6 +226,11 @@ public class ResourceServiceImpl implements IResourceService{ |
|
|
if (thisResource == null) {
|
|
|
throw new PlatformException("源资源位不存在", 500);
|
|
|
}
|
|
|
|
|
|
Resources active = resourcesMapper.selectActiveByCode(thisResource.getCode());
|
|
|
if (active.getId().equals(bo.getId())) {
|
|
|
throw new PlatformException("正在生效的资源位不能修改", 500);
|
|
|
}
|
|
|
}
|
|
|
// 更新时间
|
|
|
if (bo.getId() != null && StringUtils.isNotBlank(bo.getPublishTimeStr()) && bo.getCopyFromId() == null) {
|
...
|
...
|
|