fix(production): 修正生产产品主记录中的调度用户信息
- 将调度用户ID从当前登录用户更改为生产产品主记录中指定的用户ID
- 通过用户映射器查询正确的调度用户名而非直接使用当前用户昵称
- 确保销售账单生产会计记录中的调度人员信息准确对应实际负责人
| | |
| | | |
| | | SalesLedgerProductionAccounting salesLedgerProductionAccounting = SalesLedgerProductionAccounting.builder() |
| | | .productMainId(productionProductMain.getId()) |
| | | .schedulingUserId(user.getUserId()) |
| | | .schedulingUserName(user.getNickName()) |
| | | .schedulingUserId(productionProductMain.getUserId()) |
| | | .schedulingUserName(userMapper.selectUserById(productionProductMain.getUserId()).getNickName()) |
| | | .finishedNum(productQty) |
| | | .workHours(workHours) |
| | | .process(productProcess.getName()) |