feat(文档拆分): 完善更改权限、发布
This commit is contained in:
+6
-4
@@ -171,10 +171,12 @@ public class SarFileSplitInfoController extends JeroController<SarFileSplitInfoE
|
|||||||
@ApiOperation(value="文档拆分表-更改权限", notes="文档拆分表-更改权限")
|
@ApiOperation(value="文档拆分表-更改权限", notes="文档拆分表-更改权限")
|
||||||
@PostMapping(value = "/updatePermissions")
|
@PostMapping(value = "/updatePermissions")
|
||||||
public Result<T> updatePermissions(@Validated @RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) {
|
public Result<T> updatePermissions(@Validated @RequestBody SarFileSplitInfoEO sarFileSplitInfoEO) {
|
||||||
sarFileSplitInfoService.update(
|
LambdaUpdateWrapper<SarFileSplitInfoEO> updateWrapper = new LambdaUpdateWrapper<>();
|
||||||
new LambdaUpdateWrapper<SarFileSplitInfoEO>()
|
if (StringUtils.isNotBlank(sarFileSplitInfoEO.getIds())){
|
||||||
.eq(SarFileSplitInfoEO::getId, sarFileSplitInfoEO.getId())
|
updateWrapper.in(SarFileSplitInfoEO::getId, Arrays.asList(sarFileSplitInfoEO.getIds().split(",")));
|
||||||
.set(SarFileSplitInfoEO::getCreateBy, sarFileSplitInfoEO.getUpdateBy()));
|
}
|
||||||
|
updateWrapper.set(SarFileSplitInfoEO::getCreateBy, sarFileSplitInfoEO.getCreateBy());
|
||||||
|
sarFileSplitInfoService.update(updateWrapper);
|
||||||
return Result.OK("操作成功!");
|
return Result.OK("操作成功!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -131,4 +131,7 @@ public class SarFileSplitInfoEO implements Serializable {
|
|||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private String documentId;
|
private String documentId;
|
||||||
|
|
||||||
|
/**ids*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String ids;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user