|
@@ -14,6 +14,7 @@ import com.fdkankan.common.util.DateUtil;
|
|
|
import com.fdkankan.common.util.FileUtils;
|
|
|
import com.fdkankan.manage.entity.SysUser;
|
|
|
import com.fdkankan.manage.service.ISysUserService;
|
|
|
+import com.fdkankan.manage.util.Dateutils;
|
|
|
import com.fdkankan.manage.util.MangerUploadToOssUtil;
|
|
|
import com.fdkankan.manage.entity.SpaceSdk;
|
|
|
import com.fdkankan.manage.mapper.ISpaceSdkMapper;
|
|
@@ -117,6 +118,7 @@ public class SpaceSdkServiceImpl extends ServiceImpl<ISpaceSdkMapper, SpaceSdk>
|
|
|
if(isTop == 1){
|
|
|
this.updateTopFBySdkId(managerSdkEntity.getId());//取消所有置顶
|
|
|
}
|
|
|
+ this.updateById(managerSdkEntity);
|
|
|
// 删除本地文件
|
|
|
FileUtils.deleteFile(filePath);
|
|
|
|
|
@@ -203,7 +205,7 @@ public class SpaceSdkServiceImpl extends ServiceImpl<ISpaceSdkMapper, SpaceSdk>
|
|
|
|
|
|
private void updateBySdkId(Long id, Integer status) {
|
|
|
LambdaUpdateWrapper<SpaceSdk> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
- updateWrapper.set(SpaceSdk::getStatus,status == 2 ? 0:2)
|
|
|
+ updateWrapper.set(SpaceSdk::getStatus,status == 2 ? 0:status)
|
|
|
.eq(SpaceSdk::getId,id);
|
|
|
this.update(updateWrapper);
|
|
|
}
|
|
@@ -220,7 +222,7 @@ public class SpaceSdkServiceImpl extends ServiceImpl<ISpaceSdkMapper, SpaceSdk>
|
|
|
|
|
|
private void updateBySdkIdPublish(Long id, Integer status) {
|
|
|
LambdaUpdateWrapper<SpaceSdk> updateWrapper = new LambdaUpdateWrapper<>();
|
|
|
- updateWrapper.set(SpaceSdk::getStatus,status == 2 ? 0 :2)
|
|
|
+ updateWrapper.set(SpaceSdk::getStatus,status == 2 ? 0 :status)
|
|
|
.set(SpaceSdk::getPublishTime,new Date())
|
|
|
.eq(SpaceSdk::getId,id);
|
|
|
this.update(updateWrapper);
|