提交 86dcaa2e authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 cb7d42e2
......@@ -78,6 +78,8 @@ public class ResourceLibraryController {
e.setResourceId(resourceId);
e.setUploadTime(new Date());
e.setResourceType(entity.getResourceType());
Integer maxSort = resourceRelationService.getMaxSort();
e.setSort(maxSort);
recordList.add(e);
});
return CallBack.success(resourceRelationService.insertList(recordList));
......@@ -134,8 +136,8 @@ public class ResourceLibraryController {
@ApiOperation(value = "获取资源最大排序号", notes = "获取资源最大排序号")
@GetMapping(value = ResourceRequestPath.GET + ResourceRequestPath.SORT)
public CallBack<Integer> getMaxSort(@RequestParam Integer resourceType) {
return CallBack.success(resourceRelationService.getMaxSort(resourceType));
public CallBack<Integer> getMaxSort() {
return CallBack.success(resourceRelationService.getMaxSort());
}
@ApiOperation(value = "资源类型列表" , notes ="资源类型")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论