获取第三方产品规格型号问题

pro
anthonywj 2 years ago
parent 7bb00727f3
commit d23ffecf3b

@ -186,7 +186,9 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
thrProductsEntity = new ThrProductsEntity();
BeanUtil.copyProperties(item, thrProductsEntity);
thrProductsEntity.setCreateTime(new Date());
thrProductsEntity.setSpec(thrProductsEntity.getStandard());
if (StrUtil.isEmpty(item.getSpec())) {
thrProductsEntity.setSpec(item.getStandard());
}
thrProductsEntity.setUpdateTime(new Date());
thrProductsEntity.setId(IdUtil.getSnowflakeNextId());
thrProductsEntity.setThirdSysFk(thrSystemDetailEntity.getThirdSysFk());
@ -232,7 +234,9 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
BeanUtil.copyProperties(item, thrProductsEntity);
thrProductsEntity.setCreateTime(new Date());
thrProductsEntity.setUpdateTime(new Date());
thrProductsEntity.setSpec(thrProductsEntity.getStandard());
if (StrUtil.isEmpty(item.getSpec())) {
thrProductsEntity.setSpec(item.getStandard());
}
thrProductsEntity.setId(IdUtil.getSnowflakeNextId());
thrProductsEntity.setThirdSysFk(filterThrProductsRequest.getThirdSys());
thrProductsDao.insertThrProducts(thrProductsEntity);

Loading…
Cancel
Save