|
|
|
@ -137,6 +137,7 @@ public class GroupCommodityCodeServiceImpl implements IGroupCommodityCodeService |
|
|
|
|
try { |
|
|
|
|
BeanUtils.copyProperties(newCommodityCodeEntity, commodityCodeEntity); |
|
|
|
|
newCommodityCodeEntity.setEntId(quoteGroupCommodityDTO.getDeptId()); |
|
|
|
|
newCommodityCodeEntity.setDataSource(CommodityCodeEnum.DATA_SOURCE_9.getKey()); |
|
|
|
|
} catch (IllegalAccessException e) { |
|
|
|
|
log.error("{}引用物料异常", LOGGER_MSG, e); |
|
|
|
|
} catch (InvocationTargetException e) { |
|
|
|
@ -159,13 +160,13 @@ public class GroupCommodityCodeServiceImpl implements IGroupCommodityCodeService |
|
|
|
|
}else{ |
|
|
|
|
newCommodityCodeEntity.setId(baseService.getGenerateShotKey()); |
|
|
|
|
newCommodityCodeEntity.setXhfNsrsbh(quoteGroupCommodityDTO.getXhfNsrsbh()); |
|
|
|
|
newCommodityCodeEntity.setDataSource(CommodityCodeEnum.DATA_SOURCE_9.getKey()); |
|
|
|
|
newCommodityCodeEntity.setDataState(ConfigureConstant.STRING_0); |
|
|
|
|
newCommodityCodeEntity.setXhfMc(quoteGroupCommodityDTO.getXhfMc()); |
|
|
|
|
newCommodityCodeEntity.setHsbz(ConfigureConstant.STRING_1); |
|
|
|
|
newCommodityCodeEntity.setYhzcbs(ConfigureConstant.STRING_0); |
|
|
|
|
newCommodityCodeEntity.setCreateTime(new Date()); |
|
|
|
|
newCommodityCodeEntity.setUserId(userInfoService.getUser() != null && userInfoService.getUser().getUserId() != null ? userInfoService.getUser().getUserId().toString():""); |
|
|
|
|
newCommodityCodeEntity.setModifyUserId(null); |
|
|
|
|
if(StringUtils.isNotBlank(newCommodityCodeEntity.getSpbm())){ |
|
|
|
|
TaxClassCodeEntity taxClassCodeEntity = taxClassCodeMapper.queryTaxClassCodeEntityBySpbm(newCommodityCodeEntity.getSpbm()); |
|
|
|
|
if(taxClassCodeEntity != null){ |
|
|
|
|