feat(文档拆分): 完善更改权限、发布

This commit is contained in:
yjz
2023-10-12 16:02:33 +08:00
parent 263aa80707
commit 4fbcc54dcf
2 changed files with 9 additions and 4 deletions
@@ -171,10 +171,12 @@ public class SarFileSplitInfoController extends JeroController<SarFileSplitInfoE
@ApiOperation(value="文档拆分表-更改权限", notes="文档拆分表-更改权限")
@PostMapping(value = "/updatePermissions")
public Result<T> updatePermissions(@Validated @RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) {
sarFileSplitInfoService.update(
new LambdaUpdateWrapper<SarFileSplitInfoEO>()
.eq(SarFileSplitInfoEO::getId, sarFileSplitInfoEO.getId())
.set(SarFileSplitInfoEO::getCreateBy, sarFileSplitInfoEO.getUpdateBy()));
LambdaUpdateWrapper<SarFileSplitInfoEO> updateWrapper = new LambdaUpdateWrapper<>();
if (StringUtils.isNotBlank(sarFileSplitInfoEO.getIds())){
updateWrapper.in(SarFileSplitInfoEO::getId, Arrays.asList(sarFileSplitInfoEO.getIds().split(",")));
}
updateWrapper.set(SarFileSplitInfoEO::getCreateBy, sarFileSplitInfoEO.getCreateBy());
sarFileSplitInfoService.update(updateWrapper);
return Result.OK("操作成功!");
}
@@ -131,4 +131,7 @@ public class SarFileSplitInfoEO implements Serializable {
@TableField(exist = false)
private String documentId;
/**ids*/
@TableField(exist = false)
private String ids;
}