From 4220f1d774697eebb5c710b4ee616ca5a29e1a44 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 27 六月 2019 09:37:24 +0800
Subject: [PATCH] 二级分类修改,MONGODB日志修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java
index 220a62a..0052f7b 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/goods/GoodsSubClassServiceImpl.java
@@ -204,7 +204,7 @@
 			}
 
 			goodsSubClassMapper.insert(record);
-			
+
 			if (labelId != null) {
 				GoodsSubClassLabelMap map = new GoodsSubClassLabelMap();
 				map.setGoodsSubClass(record);
@@ -250,7 +250,10 @@
 				GoodsSubClassLabelMap map = new GoodsSubClassLabelMap();
 				map.setGoodsSubClass(record);
 				map.setLabel(new GoodsSubClassLabel(labelId));
-				goodsSubClassLabelService.addSubClassLabelMap(map);
+				try {
+					goodsSubClassLabelService.addSubClassLabelMap(map);
+				} catch (Exception e) {
+				}
 			}
 
 			goodsSubClassMapper.updateByPrimaryKey(record);

--
Gitblit v1.8.0