feature:物料引用修改人、更新来源不复制集团库的

release
gaorl 2 years ago
parent 4df83b1a00
commit 3e10acc28b
  1. 3
      order-management-consumer/src/main/java/com/dxhy/order/consumer/modules/commodity/service/impl/GroupCommodityCodeServiceImpl.java

@ -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){

Loading…
Cancel
Save