@ -19,9 +19,14 @@ import jnpf.contractfile.service.ContractFileService;
import jnpf.exception.DataException ;
import jnpf.exception.DataException ;
import jnpf.materialvo.entity.MaterialEntity ;
import jnpf.materialvo.entity.MaterialEntity ;
import jnpf.materialvo.service.MaterialService ;
import jnpf.materialvo.service.MaterialService ;
import jnpf.payment.model.payment.PaymentListVO ;
import jnpf.payment.service.PaymentService ;
import jnpf.poundlist.entity.PoundlistEntity ;
import jnpf.poundlist.entity.PoundlistEntity ;
import jnpf.poundlist.service.PoundlistService ;
import jnpf.poundlist.service.PoundlistService ;
import jnpf.purchaseback.entity.PurchasebackEntity ;
import jnpf.purchaseback.entity.PurchaseorderEntity ;
import jnpf.purchaseback.entity.PurchaseorderEntity ;
import jnpf.purchaseback.model.purchaseback.PurchasebackListVO ;
import jnpf.purchaseback.service.PurchasebackService ;
import jnpf.purchaseback.service.PurchaseorderService ;
import jnpf.purchaseback.service.PurchaseorderService ;
import jnpf.purchaseorder.entity.* ;
import jnpf.purchaseorder.entity.* ;
import jnpf.purchaseorder.service.* ;
import jnpf.purchaseorder.service.* ;
@ -79,6 +84,8 @@ public class PurchaseorderController {
@Autowired
@Autowired
private PurchaseorderitemService purchaseorderitemService ;
private PurchaseorderitemService purchaseorderitemService ;
@Autowired
private PurchasebackService purchasebackService ;
@Autowired
@Autowired
private Purchaseorder_item0Service purchaseorder_item0Service ;
private Purchaseorder_item0Service purchaseorder_item0Service ;
@Autowired
@Autowired
@ -86,6 +93,8 @@ public class PurchaseorderController {
@Autowired
@Autowired
private PaymentitemService paymentitemService ;
private PaymentitemService paymentitemService ;
@Autowired
@Autowired
private PaymentService paymentService ;
@Autowired
private PurchasebackitemService purchasebackitemService ;
private PurchasebackitemService purchasebackitemService ;
@Autowired
@Autowired
private CollectionpoService collectionpoService ;
private CollectionpoService collectionpoService ;
@ -475,22 +484,12 @@ public class PurchaseorderController {
for ( Invoices_item0itemEntity invoices_item0itemEntity : Invoices_item0itemList ) {
for ( Invoices_item0itemEntity invoices_item0itemEntity : Invoices_item0itemList ) {
}
}
vo . setInvoices_item0itemList ( JsonUtil . getJsonToList ( Invoices_item0itemList , Invoices_item0itemModel . class ) ) ;
vo . setInvoices_item0itemList ( JsonUtil . getJsonToList ( Invoices_item0itemList , Invoices_item0itemModel . class ) ) ;
List < PaymentListVO > paymentList = paymentService . queryByPurchaseorderId ( id ) ;
QueryWrapper < PaymentdocpoEntity > PaymentdocpoWrapper = new QueryWrapper < > ( ) ;
vo . setPaymentList ( paymentList ) ;
PaymentdocpoWrapper . lambda ( ) . eq ( PaymentdocpoEntity : : getPurchaseOrderNo , entity . getDocumentNo ( ) ) ;
QueryWrapper < PurchasebackEntity > purchasebackWrapper = new QueryWrapper < > ( ) ;
List < PaymentdocpoEntity > paymentdocList = paymentdocpoService . list ( PaymentdocpoWrapper ) ;
purchasebackWrapper . lambda ( ) . eq ( PurchasebackEntity : : getPurchaseOrderId , id ) ;
List < PaymentitemEntity > PaymentitemList = new ArrayList < > ( ) ;
List < PurchasebackEntity > PurchasebackList = purchasebackService . list ( purchasebackWrapper ) ;
for ( PaymentdocpoEntity paymentdocpoEntity : paymentdocList ) {
vo . setPurchasebackList ( PurchasebackList ) ;
List < PaymentitemEntity > paymentitemlist = purchaseorderitemService . GetPaymentitemList ( paymentdocpoEntity . getDocumentNo ( ) ) ;
PaymentitemList . addAll ( paymentitemlist ) ;
}
for ( PaymentitemEntity paymentitemEntity : PaymentitemList ) {
}
vo . setPaymentitemList ( JsonUtil . getJsonToList ( PaymentitemList , PaymentitemModel . class ) ) ;
List < PurchasebackitemEntity > PurchasebackitemList = purchaseorderitemService . GetPurchasebackitemList ( id ) ;
for ( PurchasebackitemEntity purchasebackitemEntity : PurchasebackitemList ) {
}
vo . setPurchasebackitemList ( JsonUtil . getJsonToList ( PurchasebackitemList , PurchasebackitemModel . class ) ) ;
List < CollectionpoEntity > CollectionitemList = purchaseorderitemService . GetCollectionitemList ( entity . getDocumentNo ( ) ) ;
List < CollectionpoEntity > CollectionitemList = purchaseorderitemService . GetCollectionitemList ( entity . getDocumentNo ( ) ) ;
for ( CollectionpoEntity collectionpoEntity : CollectionitemList ) {
for ( CollectionpoEntity collectionpoEntity : CollectionitemList ) {
}
}
@ -552,29 +551,12 @@ public class PurchaseorderController {
}
}
vo . setInvoices_item0itemList ( JsonUtil . getJsonToList ( Invoices_item0itemList , Invoices_item0itemModel . class ) ) ;
vo . setInvoices_item0itemList ( JsonUtil . getJsonToList ( Invoices_item0itemList , Invoices_item0itemModel . class ) ) ;
List < PaymentitemEntity > jg_paymentList = purchaseorderitemService . GetPaymentitemList ( id ) ;
List < PaymentListVO > paymentList = paymentService . queryByPurchaseorderId ( id ) ;
List < PaymentitemModel > jg_paymentModelList = JsonUtil . getJsonToList ( jg_paymentList , PaymentitemModel . class ) ;
vo . setPaymentList ( paymentList ) ;
for ( PaymentitemModel jg_paymentModel : jg_paymentModelList ) {
QueryWrapper < PurchasebackEntity > purchasebackWrapper = new QueryWrapper < > ( ) ;
}
purchasebackWrapper . lambda ( ) . eq ( PurchasebackEntity : : getPurchaseOrderId , id ) ;
vo . setPaymentitemList ( jg_paymentModelList ) ;
List < PurchasebackEntity > PurchasebackList = purchasebackService . list ( purchasebackWrapper ) ;
vo . setPurchasebackList ( PurchasebackList ) ;
QueryWrapper < PaymentdocpoEntity > PaymentdocpoWrapper = new QueryWrapper < > ( ) ;
PaymentdocpoWrapper . lambda ( ) . eq ( PaymentdocpoEntity : : getPurchaseOrderNo , entity . getDocumentNo ( ) ) ;
List < PaymentdocpoEntity > paymentdocList = paymentdocpoService . list ( PaymentdocpoWrapper ) ;
List < PaymentitemEntity > PaymentitemList = new ArrayList < > ( ) ;
for ( PaymentdocpoEntity paymentdocpoEntity : paymentdocList ) {
List < PaymentitemEntity > paymentitemlist = purchaseorderitemService . GetPaymentitemList ( paymentdocpoEntity . getDocumentNo ( ) ) ;
PaymentitemList . addAll ( paymentitemlist ) ;
}
for ( PaymentitemEntity paymentitemEntity : PaymentitemList ) {
}
vo . setPaymentitemList ( JsonUtil . getJsonToList ( PaymentitemList , PaymentitemModel . class ) ) ;
List < PurchasebackitemEntity > jg_purchasebackList = purchaseorderitemService . GetPurchasebackitemList ( id ) ;
List < PurchasebackitemModel > jg_purchasebackModelList = JsonUtil . getJsonToList ( jg_purchasebackList , PurchasebackitemModel . class ) ;
for ( PurchasebackitemModel jg_purchasebackModel : jg_purchasebackModelList ) {
}
vo . setPurchasebackitemList ( jg_purchasebackModelList ) ;
List < CollectionpoEntity > jg_collectionList = purchaseorderitemService . GetCollectionitemList ( id ) ;
List < CollectionpoEntity > jg_collectionList = purchaseorderitemService . GetCollectionitemList ( id ) ;
List < CollectionitemModel > jg_collectionModelList = JsonUtil . getJsonToList ( jg_collectionList , CollectionitemModel . class ) ;
List < CollectionitemModel > jg_collectionModelList = JsonUtil . getJsonToList ( jg_collectionList , CollectionitemModel . class ) ;
for ( CollectionitemModel jg_collectionModel : jg_collectionModelList ) {
for ( CollectionitemModel jg_collectionModel : jg_collectionModelList ) {
@ -663,12 +645,12 @@ public class PurchaseorderController {
paymentitemService . remove ( queryWrapper ) ;
paymentitemService . remove ( queryWrapper ) ;
}
}
List < PaymentitemEntity > PaymentitemList = JsonUtil . getJsonToList ( purchaseorderUpForm . getPaymentitemList ( ) , PaymentitemEntity . class ) ;
/ * List < PaymentitemEntity > PaymentitemList = JsonUtil . getJsonToList ( purchaseorderUpForm . getPaymentitemList ( ) , PaymentitemEntity . class ) ;
for ( PaymentitemEntity entitys : PaymentitemList ) {
for ( PaymentitemEntity entitys : PaymentitemList ) {
entitys . setId ( RandomUtil . uuId ( ) ) ;
entitys . setId ( RandomUtil . uuId ( ) ) ;
entitys . setPaymentno ( entitys . getPaymentno ( ) ) ;
entitys . setPaymentno ( entitys . getPaymentno ( ) ) ;
paymentitemService . save ( entitys ) ;
paymentitemService . save ( entitys ) ;
}
} * /
// QueryWrapper<PaymentitemEntity> PaymentitemqueryWrapper = new QueryWrapper<>();
// QueryWrapper<PaymentitemEntity> PaymentitemqueryWrapper = new QueryWrapper<>();
// PaymentitemqueryWrapper.lambda().eq(PaymentitemEntity::getDocumentno, entity.getDocumentNo());
// PaymentitemqueryWrapper.lambda().eq(PaymentitemEntity::getDocumentno, entity.getDocumentNo());
// paymentitemService.remove(PaymentitemqueryWrapper);
// paymentitemService.remove(PaymentitemqueryWrapper);
@ -679,7 +661,7 @@ public class PurchaseorderController {
// entitys.setDocumentno(entity.getDocumentNo());
// entitys.setDocumentno(entity.getDocumentNo());
// paymentitemService.save(entitys);
// paymentitemService.save(entitys);
// }
// }
QueryWrapper < PurchasebackitemEntity > PurchasebackitemqueryWrapper = new QueryWrapper < > ( ) ;
/ * QueryWrapper < PurchasebackitemEntity > PurchasebackitemqueryWrapper = new QueryWrapper < > ( ) ;
PurchasebackitemqueryWrapper . lambda ( ) . eq ( PurchasebackitemEntity : : getPurchaseOrderId , entity . getId ( ) ) ;
PurchasebackitemqueryWrapper . lambda ( ) . eq ( PurchasebackitemEntity : : getPurchaseOrderId , entity . getId ( ) ) ;
purchasebackitemService . remove ( PurchasebackitemqueryWrapper ) ;
purchasebackitemService . remove ( PurchasebackitemqueryWrapper ) ;
@ -698,7 +680,7 @@ public class PurchaseorderController {
entitys . setId ( RandomUtil . uuId ( ) ) ;
entitys . setId ( RandomUtil . uuId ( ) ) ;
entitys . setSalesOrderNo ( entity . getDocumentNo ( ) ) ;
entitys . setSalesOrderNo ( entity . getDocumentNo ( ) ) ;
collectionpoService . save ( entitys ) ;
collectionpoService . save ( entitys ) ;
}
} * /
return ActionResult . success ( "更新成功" ) ;
return ActionResult . success ( "更新成功" ) ;
} else {
} else {