| Line 411... |
Line 411... |
| 411 |
public String updateShcemes(HttpServletRequest request, @RequestBody SchemeItems schemeItems, Model model)
|
411 |
public String updateShcemes(HttpServletRequest request, @RequestBody SchemeItems schemeItems, Model model)
|
| 412 |
throws Exception {
|
412 |
throws Exception {
|
| 413 |
for (int schemeId : schemeItems.getSchemeIds()) {
|
413 |
for (int schemeId : schemeItems.getSchemeIds()) {
|
| 414 |
if (schemeRepository.selectById(schemeId) != null)
|
414 |
if (schemeRepository.selectById(schemeId) != null)
|
| 415 |
for (int catalogId : schemeItems.getCatalogIds()) {
|
415 |
for (int catalogId : schemeItems.getCatalogIds()) {
|
| 416 |
if (tagListingRepository.selectByItemIdsAndTagIds(new HashSet<>(Arrays.asList(catalogId)),
|
416 |
if (tagListingRepository.selectAllByCatalogIds(Arrays.asList(catalogId)).size() > 0) {
|
| 417 |
new HashSet<>(Arrays.asList(4, 7))).size() > 0) {
|
- |
|
| 418 |
SchemeItem si = new SchemeItem();
|
417 |
SchemeItem si = new SchemeItem();
|
| 419 |
si.setCatalogId(catalogId);
|
418 |
si.setCatalogId(catalogId);
|
| 420 |
si.setSchemeId(schemeId);
|
419 |
si.setSchemeId(schemeId);
|
| 421 |
si.setCreateTimestamp(LocalDateTime.now());
|
420 |
si.setCreateTimestamp(LocalDateTime.now());
|
| 422 |
try {
|
421 |
try {
|