|
|
@@ -12,6 +12,7 @@ import com.izouma.awesomeadmin.service.OrderAlbumService;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.dao.DataIntegrityViolationException;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.HashMap;
|
|
|
@@ -307,6 +308,9 @@ public class OrderAlbumServiceImpl implements OrderAlbumService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ } catch (DataIntegrityViolationException dive) {
|
|
|
+ logger.error("pass", dive);
|
|
|
+ return true;
|
|
|
} catch (Exception e) {
|
|
|
logger.error("pass", e);
|
|
|
}
|
|
|
@@ -315,7 +319,7 @@ public class OrderAlbumServiceImpl implements OrderAlbumService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<String> allImageName(OrderAlbum record) {
|
|
|
+ public List<String> allImageName(OrderAlbum record) {
|
|
|
|
|
|
logger.info("allImageName");
|
|
|
try {
|