feat(wms): 添加员工转岗功能

- 在IWmsEmployeeTransferService中新增employeeTransfer方法
- 在WmsEmployeeTransferController中添加transfer接口
- 实现WmsEmployeeTransferServiceImpl中的员工转岗业务逻辑
- 添加事务注解确保数据一致性
- 在查询方法中关联员工信息表获取完整数据
- 验证员工状态确保在职员工才能转岗
- 记录转岗前后的部门和岗位信息
- 更新WmsEmployeeTransferVo以包含员工信息字段
This commit is contained in:
2026-03-18 11:03:43 +08:00
parent 7dcb779412
commit 8fe459dae5
4 changed files with 93 additions and 2 deletions

View File

@@ -96,4 +96,14 @@ public class WmsEmployeeTransferController extends BaseController {
@PathVariable Long[] transferIds) {
return toAjax(iWmsEmployeeTransferService.deleteWithValidByIds(Arrays.asList(transferIds), true));
}
/**
* 员工转岗
*/
@Log(title = "员工转岗", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/transfer")
public R<Void> transfer(@Validated(AddGroup.class) @RequestBody WmsEmployeeTransferBo bo) {
return toAjax(iWmsEmployeeTransferService.employeeTransfer(bo));
}
}