feat(wms): 新增员工入职离职功能

- 在 IWmsEmployeeChangeService 中添加 employeeEntry 和 employeeLeave 方法
- 扩展 WmsEmployeeChangeBo 类增加员工详细信息字段
- 在 WmsEmployeeChangeController 中添加入职和离职接口
- 实现 WmsEmployeeChangeServiceImpl 的入职离职业务逻辑
- 集成员工信息查询功能并在查询结果中关联员工详情
- 添加事务管理确保数据一致性操作
This commit is contained in:
2026-03-14 10:40:44 +08:00
parent 0091a46811
commit 9b82d7230a
5 changed files with 212 additions and 2 deletions

View File

@@ -96,4 +96,24 @@ public class WmsEmployeeChangeController extends BaseController {
@PathVariable Long[] changeIds) {
return toAjax(iWmsEmployeeChangeService.deleteWithValidByIds(Arrays.asList(changeIds), true));
}
/**
* 员工入职
*/
@Log(title = "员工入职", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/entry")
public R<Void> entry(@Validated(AddGroup.class) @RequestBody WmsEmployeeChangeBo bo) {
return toAjax(iWmsEmployeeChangeService.employeeEntry(bo));
}
/**
* 员工离职
*/
@Log(title = "员工离职", businessType = BusinessType.INSERT)
@RepeatSubmit()
@PostMapping("/leave")
public R<Void> leave(@Validated(AddGroup.class) @RequestBody WmsEmployeeChangeBo bo) {
return toAjax(iWmsEmployeeChangeService.employeeLeave(bo));
}
}