use of mingzuozhibi.persist.disc.Disc in project mzzb-server by mingzuozhibi.
the class DiscSpiderController method createDisc.
private Disc createDisc(@PathVariable String asin, JSONObject discJson) {
Disc disc = new Disc(asin, createTitle(discJson), createType(discJson), createDate(discJson));
dao.save(disc);
return disc;
}
use of mingzuozhibi.persist.disc.Disc in project mzzb-server by mingzuozhibi.
the class DiscUtils method needUpdateAsins.
public static Set<String> needUpdateAsins(Session session) {
Set<String> asins = new LinkedHashSet<>();
findActiveDiscGroups(session).forEach(discGroup -> {
for (Disc disc : discGroup.getDiscs()) {
asins.add(disc.getAsin());
}
});
return asins;
}
Aggregations