|
|
|
@ -128,12 +128,20 @@ public class DeliveryNoteServiceImpl extends BaseServiceImpl<DeliveryNoteMapper,
|
|
|
|
|
advanceDetailEntity.setOrderCode(vo.getCustomizedBillCode()); |
|
|
|
|
advanceDetailEntity.setBrand(BrandEnums.LINSY.getValue()); |
|
|
|
|
advanceDetailEntity.setSystemType("线上"); |
|
|
|
|
advanceDetailEntity.setFirstPackName(orderPackageDTO.getMaterialCode()); |
|
|
|
|
// 二级品类名称
|
|
|
|
|
advanceDetailEntity.setSecondPackName(orderPackageDTO.getMaterialCode()); |
|
|
|
|
// 三级品类名称
|
|
|
|
|
advanceDetailEntity.setThirdPackName(orderPackageDTO.getMaterialCode()); |
|
|
|
|
advanceDetailEntity.setMaterialName(orderPackageDTO.getMaterialName()); |
|
|
|
|
// advanceDetailEntity.setFirstPackName(orderPackageDTO.getMaterialCode());
|
|
|
|
|
String materialName = orderPackageDTO.getMaterialName(); |
|
|
|
|
advanceDetailEntity.setFirstPackName("配件"); |
|
|
|
|
advanceDetailEntity.setSecondPackName("配件"); |
|
|
|
|
advanceDetailEntity.setThirdPackName("配件"); |
|
|
|
|
advanceDetailEntity.setMaterialName("配件"); |
|
|
|
|
if (StrUtil.isNotEmpty(materialName)) { |
|
|
|
|
if(!StrUtil.startWith(materialName,"LSMY")){ |
|
|
|
|
advanceDetailEntity.setFirstPackName(materialName); |
|
|
|
|
advanceDetailEntity.setSecondPackName(materialName); |
|
|
|
|
advanceDetailEntity.setThirdPackName(materialName); |
|
|
|
|
advanceDetailEntity.setMaterialName(materialName); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
advanceDetailEntity.setMaterialCode(orderPackageDTO.getMaterialCode()); |
|
|
|
|
advanceDetailEntity.setSiteName(vo.getSupplierName()); |
|
|
|
|
advanceDetailEntity.setSiteCode(""); |
|
|
|
|