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