提交 152dda06 authored 作者: renjiancai's avatar renjiancai

--no commit message

上级 fa551542
......@@ -22,6 +22,7 @@ import com.zrqx.core.form.resource.bg.imagelibrary.QueryImageRelationLibraryForm
import com.zrqx.core.form.resource.bg.imagelibrary.SaveImageLibraryForm;
import com.zrqx.core.form.resource.bg.imagelibrary.SaveUpdateImageLibraryForm;
import com.zrqx.core.model.resource.resourcerelation.ResourceRelation;
import com.zrqx.core.model.resource.videolibrary.VideoLibrary;
import com.zrqx.core.util.bean.BeanUtils;
import com.zrqx.core.util.page.PageInfo;
import com.zrqx.core.util.page.PageParam;
......@@ -127,9 +128,12 @@ public class ResourceLibraryController {
if (form.getId() == null) {
throw new ParameterValidateException("分类不能为空");
}
ResourceRelation entity = service.selectByPrimaryKey(form.getId());
entity.setSort(form.getSort());
service.updateByPrimaryKeySelective(entity);
form.getId().forEach(ids -> {
ResourceRelation res = new ResourceRelation();
res.setId(ids);
res.setSort(form.getSort());
service.updateByPrimaryKeySelective(res);
});
return CallBack.success();
}
@ApiOperation(value = "获取关联资源的最大排序号", notes = "获取资源最大排序号")
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论