修改了取消接单可能删除所有数据不显示的bug
This commit is contained in:
parent
2c34f94a05
commit
a255ca747b
|
@ -167,9 +167,9 @@ public class PurchaseOrderConfirmationController extends JeecgController<Purchas
|
|||
@RequestMapping(value = "/cancelReceiving", method = {RequestMethod.PUT, RequestMethod.POST})
|
||||
public Result<String> cancelReceiving(@RequestBody PurchaseRequest purchaseRequest) {
|
||||
String requireNo = purchaseRequest.getRequirementNumber();
|
||||
purchaseRequest.setIsReceiving("0");
|
||||
purchaseRequestService.updateById(purchaseRequest);
|
||||
purchaseOrderConfirmationService.removeById(purchaseOrderConfirmationService.queryByRequireNo(requireNo).getId());
|
||||
LambdaUpdateWrapper<PurchaseRequest> updateWrapper = new LambdaUpdateWrapper<>();
|
||||
updateWrapper.eq(PurchaseRequest::getRequirementNumber, requireNo)
|
||||
.set(PurchaseRequest::getIsReceiving,0);
|
||||
return Result.OK("已取消接收!");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue