Appearance
POST /dm-store/storePermission/delete
Content-Type: application/json
触发按钮:storePermissiondeleteArr
入参
传递对象:Long[]
| 字段 | 类型 | 必填 | 多选 | 校验规则 | 说明 |
|---|---|---|---|---|---|
| ids | Long[] | 否 | 否 | - | 待删除物料主数据 id 集合 |
出参
传递对象:ResultData
无
前端校验规则
前端校验
├── 权限校验
│ └── 删除按钮权限
│ └── v-auth: 'inventory:storePermission:delet:popup'
├── 按钮权限控制
│ └── 删除按钮
│ └── selectionData.length === 0 时禁用
└── 提交拦截校验
└── deleteStorePermissionArr
└── 确认弹窗未确认时中断删除后端逻辑
业务流程:定位待删除权限记录 -> 过滤未删除数据 -> 批量标记权限删除
├── 批量删除仓库权限:StorePermissionService.delete :116-128
├── 过滤未删除权限记录
│ └── 条件: isDelete=false
└── 批量标记权限删除:update :122-128后端校验规则
后端校验
└── 前置条件校验
└── 校验待删除ID集合不能为空:delete :118-119
└── ExceptionCode.EX100002涉及数据库表
| 库名.表名 | mapper.statement | 描述 |
|---|---|---|
| store.store_permission | StorePermissionMapper.LambdaUpdateWrapper.update | 更新 is_delete、update_user、update_time |