|
|
@ -976,10 +976,11 @@ public class TradeuploadController {
|
|
|
|
if (list.size() > 0 && entity.getPurchaseorderId() != null) {
|
|
|
|
if (list.size() > 0 && entity.getPurchaseorderId() != null) {
|
|
|
|
QueryWrapper<PurchaseorderEntity> PurchaseorderqueryWrapper = new QueryWrapper<>();
|
|
|
|
QueryWrapper<PurchaseorderEntity> PurchaseorderqueryWrapper = new QueryWrapper<>();
|
|
|
|
PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getId, entity.getPurchaseorderId());
|
|
|
|
PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getId, entity.getPurchaseorderId());
|
|
|
|
|
|
|
|
PurchaseorderqueryWrapper.lambda().eq(PurchaseorderEntity::getDeleteMark, 0);
|
|
|
|
List<PurchaseorderEntity> Pur = purchaseorderService.list(PurchaseorderqueryWrapper);
|
|
|
|
List<PurchaseorderEntity> Pur = purchaseorderService.list(PurchaseorderqueryWrapper);
|
|
|
|
if (Pur.size() > 0) {
|
|
|
|
if (Pur.size() > 0) {
|
|
|
|
int s = Integer.valueOf(Pur.get(0).getIsPayment());
|
|
|
|
int paymenttime = Integer.valueOf(Pur.get(0).getPaymentTime());
|
|
|
|
if (list != null && list.get(0).getPurchaseorderId() != null && s == 1) {
|
|
|
|
if (list != null && list.get(0).getPurchaseorderId() != null && paymenttime > 0) {
|
|
|
|
int s21 = Integer.valueOf(tradeuploadUpForm.getCustomerId());
|
|
|
|
int s21 = Integer.valueOf(tradeuploadUpForm.getCustomerId());
|
|
|
|
int s22 = Integer.valueOf(list.get(0).getCustomerId());
|
|
|
|
int s22 = Integer.valueOf(list.get(0).getCustomerId());
|
|
|
|
if (s21 == s22) {
|
|
|
|
if (s21 == s22) {
|
|
|
@ -989,6 +990,7 @@ public class TradeuploadController {
|
|
|
|
return ActionResult.fail("已生成了付款申请,则不能修改客户");
|
|
|
|
return ActionResult.fail("已生成了付款申请,则不能修改客户");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|