|
@@ -158,12 +158,11 @@ public class PoTetherServiceImpl extends ServiceImpl<PoTetherMapper,PoTether> im
|
|
|
|
|
|
|
|
|
for (int i = 0; i < tetherVo.getPoTetherandcollections().size(); i++) {
|
|
|
- System.out.println(tetherVo.getPoTetherandcollections().get(i).getCollectionTitle());
|
|
|
- PoCollection poTetherandcollection1 = new PoCollection();
|
|
|
- poTetherandcollection1.setCollectionTitle(tetherVo.getPoTetherandcollections().get(i).getCollectionTitle());
|
|
|
- poTetherandcollection1.setCollectionType(tetherVo.getPoTetherandcollections().get(i).getCollectionType());
|
|
|
- poTetherandcollection1.setTetherId(tetherVo.getTetherId());
|
|
|
- poCollectionService.insertCollection(poTetherandcollection1);
|
|
|
+ PoCollection poCollection = new PoCollection();
|
|
|
+ poCollection.setCollectionTitle(tetherVo.getPoTetherandcollections().get(i).getCollectionTitle());
|
|
|
+ poCollection.setCollectionType(tetherVo.getPoTetherandcollections().get(i).getCollectionType());
|
|
|
+ poCollection.setTetherId(tetherVo.getTetherId());
|
|
|
+ poCollectionService.insertCollection(poCollection);
|
|
|
}
|
|
|
}
|
|
|
}
|