|
|
|
@ -186,6 +186,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
thrProductsEntity = new ThrProductsEntity();
|
|
|
|
|
BeanUtil.copyProperties(item, thrProductsEntity);
|
|
|
|
|
thrProductsEntity.setCreateTime(new Date());
|
|
|
|
|
thrProductsEntity.setSpec(thrProductsEntity.getStandard());
|
|
|
|
|
thrProductsEntity.setUpdateTime(new Date());
|
|
|
|
|
thrProductsEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
thrProductsEntity.setThirdSysFk(thrSystemDetailEntity.getThirdSysFk());
|
|
|
|
@ -231,6 +232,7 @@ public class ThrProductsServiceImpl extends ServiceImpl<ThrProductsDao, ThrProdu
|
|
|
|
|
BeanUtil.copyProperties(item, thrProductsEntity);
|
|
|
|
|
thrProductsEntity.setCreateTime(new Date());
|
|
|
|
|
thrProductsEntity.setUpdateTime(new Date());
|
|
|
|
|
thrProductsEntity.setSpec(thrProductsEntity.getStandard());
|
|
|
|
|
thrProductsEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
thrProductsEntity.setThirdSysFk(filterThrProductsRequest.getThirdSys());
|
|
|
|
|
thrProductsDao.insertThrProducts(thrProductsEntity);
|
|
|
|
|