diff --git a/src/main/java/com/glxp/api/entity/inout/IoOrderDetailBizEntity.java b/src/main/java/com/glxp/api/entity/inout/IoOrderDetailBizEntity.java index 4c81d6f8..8c2f74d0 100644 --- a/src/main/java/com/glxp/api/entity/inout/IoOrderDetailBizEntity.java +++ b/src/main/java/com/glxp/api/entity/inout/IoOrderDetailBizEntity.java @@ -231,6 +231,9 @@ public class IoOrderDetailBizEntity { @TableField(exist = false) private String bzgg; + @TableField(exist = false) + private String prepnSpec; + /** * 单据产品类型 阳采交易明细单号 */ diff --git a/src/main/java/com/glxp/api/service/inout/impl/IoOrderDetailBizServiceImpl.java b/src/main/java/com/glxp/api/service/inout/impl/IoOrderDetailBizServiceImpl.java index 39b3b08c..2e8811db 100644 --- a/src/main/java/com/glxp/api/service/inout/impl/IoOrderDetailBizServiceImpl.java +++ b/src/main/java/com/glxp/api/service/inout/impl/IoOrderDetailBizServiceImpl.java @@ -229,8 +229,9 @@ public class IoOrderDetailBizServiceImpl implements IoOrderDetailBizService { for (IoOrderDetailBizEntity orderDetailBizEntity : orderDetailBizEntities) { if (orderDetailBizEntity.getBzgg() == null) { UdiProductEntity product = udiProductService.findByNameCode(orderDetailBizEntity.getNameCode()); - if (product.getBzgg() != null && product.getProductsType() == 2) { + if ( product.getProductsType() == 2) { orderDetailBizEntity.setBzgg(product.getBzgg()); + orderDetailBizEntity.setPrepnSpec(product.getPrepnSpec()); } } }