|
|
|
@ -33,7 +33,7 @@ public class ActivityRepositoryImpl implements ActivityRepository { |
|
|
|
|
|
|
|
@Override |
|
|
|
public Long save(Activity entity) { |
|
|
|
if(entity.getId() != null){ |
|
|
|
if(entity.getId() == null){ |
|
|
|
entity.setId(snowFlake.nextId()); |
|
|
|
activityDao.insert(entity); |
|
|
|
if(entity.getActivityProductList() != null){ |
|
|
|
|