Compare commits

...

2 Commits

Author SHA1 Message Date
zhaoyf
3307fff9ca fix:监听器采购单单据状态修复 2026-06-13 17:35:42 +08:00
zhaoyf
4d2320bc45 fix:监听器采购单单据状态修复 2026-06-13 17:35:23 +08:00
2 changed files with 7 additions and 12 deletions

View File

@@ -193,11 +193,6 @@ public class InboundPdaServiceImpl implements InboundPdaService {
iMdPbGroupplateService.save(groupDao);
});
//更新单据状态已创建
purchaseService.lambdaUpdate().eq(Purchasemst::getBill_id, dto.getBill_id())
.set(Purchasemst::getBill_status, PurchaseBillStatus.EXECUTING.getCode());
JSONObject result = new JSONObject();
result.put("success", true);
result.put("message", "组盘提交成功");
@@ -273,13 +268,7 @@ public class InboundPdaServiceImpl implements InboundPdaService {
GroupPlateInboundDto groupPlateInboundDto = new GroupPlateInboundDto();
groupPlateInboundDto.setSect_code(sectDao.getSect_code());
groupPlateInboundDto.setVehicle_code(storagevehicleCode);
InboundPdaServiceImpl thisBean = SpringContextHolder.getBean(this.getClass());
thisBean.submitGroupPlateInbound(groupPlateInboundDto, false);
PurchaseListenerParams purchaseListenerParams = new PurchaseListenerParams();
purchaseListenerParams.setBillId(usualInboundDto.getBill_id());
purchaseListenerParams.setDetailItem(items);
pushEvent(purchaseListenerParams);
this.submitGroupPlateInbound(groupPlateInboundDto, false);
}
@Override

View File

@@ -71,6 +71,12 @@ public class PurchaseFormListenerHandler extends BaseFormListenerHandler<Purchas
.set(Purchasemst::getBill_status, PurchaseBillStatus.COMPLETED.getCode())
.set(Purchasemst::getModify_date, DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"))
.eq(Purchasemst::getBill_id, params.getBillId());
}else {
//更新单据状态执行中
purchaseService.lambdaUpdate()
.eq(Purchasemst::getBill_id, params.getBillId())
.eq(Purchasemst::getBill_status, PurchaseBillStatus.CREATED.getCode())
.set(Purchasemst::getBill_status, PurchaseBillStatus.EXECUTING.getCode());
}
// 保存回传单
EasAuditRequestDto easAuditRequestDto = new EasAuditRequestDto();