5号库改造,机具库存查询

This commit is contained in:
hayu 2026-01-12 18:12:35 +08:00
parent d802b903af
commit fc2e85c832
2 changed files with 3 additions and 2 deletions

View File

@ -529,7 +529,9 @@ public class LeaseApplyInfoController extends BaseController {
public AjaxResult leaseOut(@NotNull(message = "领料出库信息不能为空") @RequestBody LeaseOutRequestVo leaseOutRequestVo) {
try {
Long deptId = typeService.getUserDeptId();
leaseOutRequestVo.getLeaseApplyInfo().setCompanyId(deptId);
leaseOutRequestVo.getLeaseOutDetailsList().forEach(leaseOutDetails -> {
leaseOutDetails.setCompanyId(deptId);
});
return leaseApplyInfoService.leaseOut(leaseOutRequestVo);
} catch (Exception e) {
return error("系统错误, " + e.getMessage());

View File

@ -2068,7 +2068,6 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
if (bean.getMaId() != null && bean.getInputNum() != null) {
bean.setOutNum(bean.getInputNum());
}
bean.setCompanyId(leaseOutRequestVo.getLeaseApplyInfo().getCompanyId());
AjaxResult ajaxResult = leaseOutDetailsService.leaseOut(bean);
if (ajaxResult.isError()) {
return ajaxResult;