|
@@ -499,7 +499,8 @@ public class ApsProductDetailServiceImpl extends ServiceImpl<ApsProductDetailDao
|
|
|
ApsProductDetailDo oldProductDetail = this.getById(apsProductDetailDo.getId());
|
|
|
|
|
|
//如果订单产品明细的订单产品字段值改变了
|
|
|
- if (!oldProductDetail.getInputmaterialdescription().equals(apsProductDetailDo.getInputmaterialdescription())) {
|
|
|
+ if ((ObjectUtil.isEmpty(oldProductDetail.getInputmaterialdescription()) && ObjectUtil.isNotEmpty(apsProductDetailDo.getInputmaterialdescription()))
|
|
|
+ || !oldProductDetail.getInputmaterialdescription().equals(apsProductDetailDo.getInputmaterialdescription())) {
|
|
|
|
|
|
//复制新的产品明细
|
|
|
apsProductDetailDo.setId(SecurityUtil.getUUID());
|