提示信息优化

This commit is contained in:
曹鹏飞 2024-03-18 15:27:29 +08:00
parent af3268756f
commit da42182ecc
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ public class OriginalBomApi extends BaseApi {
BomNewOriginalParentEntity parentEntity = originalParentService.getBaseMapper().selectById(bom.getParentRowId());
LogRecordContext.putVariable("drawingNo",parentEntity.getDrawingNo());
VUtils.isTure(!Objects.equals(parentEntity.getCreatedBy(), SessionUtil.getUserCode())).throwMessage("不能操作非本人创建的数据");
VUtils.isTure(!Objects.equals(parentEntity.getCreatedBy(), SessionUtil.getUserCode())).throwMessage("不能操作人创建的数据");
return ResultVO.success(originalParentService.saveBom(bom, false));
}
@ -104,7 +104,7 @@ public class OriginalBomApi extends BaseApi {
BomNewOriginalParentEntity parentEntity = originalParentService.getBaseMapper().selectById(bom.getParentRowId());
LogRecordContext.putVariable("drawingNo",parentEntity.getDrawingNo());
VUtils.isTure(!Objects.equals(parentEntity.getCreatedBy(), SessionUtil.getUserCode())).throwMessage("不能操作非本人创建的数据");
VUtils.isTure(!Objects.equals(parentEntity.getCreatedBy(), SessionUtil.getUserCode())).throwMessage("不能操作人创建的数据");
return ResultVO.success(originalParentService.saveSubmit(bom));
}