Commit 372aad3f authored by unset's avatar unset

添加通知信息

parent 00f98324
...@@ -72,6 +72,22 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt ...@@ -72,6 +72,22 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
/**
* 更新状态 上下架
* @param imageImgStorage
* @return
*/
public ObjectRestResponse updateStatus(ImageImgStorage imageImgStorage) {
ImageImgStorage old = selectById(imageImgStorage.getId());
if (old == null) {
return ObjectRestResponse.createFailedResult(ResultCode.NOTEXIST_CODE, ResultCode.getMsg(ResultCode.NOTEXIST_CODE));
} else {
BeanUtil.copyProperties(imageImgStorage, old, CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true));
updateSelectiveByIdRe(old);
}
return ObjectRestResponse.succ();
}
/** /**
* 分页查询图像库信息 * 分页查询图像库信息
* @param imageInformationStorageDto * @param imageInformationStorageDto
......
...@@ -27,4 +27,10 @@ public class ImageImgStorageController extends BaseController<ImageImgStorageBiz ...@@ -27,4 +27,10 @@ public class ImageImgStorageController extends BaseController<ImageImgStorageBiz
public ObjectRestResponse getDetail(@PathVariable Integer id) { public ObjectRestResponse getDetail(@PathVariable Integer id) {
return baseBiz.getDetail(id); return baseBiz.getDetail(id);
} }
@PostMapping(value = "updateStatus")
public ObjectRestResponse updateStatus(@RequestBody ImageImgStorage imageImgStorage) {
return baseBiz.updateStatus(imageImgStorage);
}
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment