|
|
|
@ -180,6 +180,10 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
//单据金额
|
|
|
|
|
BigDecimal djje = detailBizEntities.stream().map(IoOrderDetailBizEntity::getPrice).reduce(BigDecimal.ONE, BigDecimal::add);
|
|
|
|
|
List<IoOrderInvoiceEntity> ioOrderInvoiceEntities = IoOrderInvoiceEntity.builder().build().selectList(Wrappers.lambdaQuery(IoOrderInvoiceEntity.class).eq(IoOrderInvoiceEntity::getOrderIdFk, orderEntity.getId()));
|
|
|
|
|
int fbbz = 0;
|
|
|
|
|
if (CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) && ioOrderInvoiceEntities.size() > 0) {
|
|
|
|
|
fbbz = 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String userName = getUserName(orderEntity);
|
|
|
|
|
if (StrUtil.isEmpty(userName)) {
|
|
|
|
@ -194,7 +198,7 @@ public class PtxhyyClient extends CommonHttpClient {
|
|
|
|
|
.dwxh(udiwmsOrderRequest.getCorpId())
|
|
|
|
|
.rkrq(LocalDate.from(cn.hutool.core.date.DateUtil.parseLocalDateTime(udiwmsOrderRequest.getBillDate())))
|
|
|
|
|
.djje(djje)
|
|
|
|
|
.fpbz(CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) && ioOrderInvoiceEntities.size() > 0)
|
|
|
|
|
.fpbz(fbbz)
|
|
|
|
|
.zdrq(udiwmsOrderRequest.getBillDate())
|
|
|
|
|
.lsje(djje)
|
|
|
|
|
.fpzs(CollectionUtil.isNotEmpty(ioOrderInvoiceEntities) ? ioOrderInvoiceEntities.size() : 0)
|
|
|
|
|