|
@@ -17,6 +17,7 @@ import com.kmall.common.fileserver.util.FileManager;
|
|
import com.kmall.common.utils.*;
|
|
import com.kmall.common.utils.*;
|
|
import com.kmall.common.utils.excel.ExcelExport;
|
|
import com.kmall.common.utils.excel.ExcelExport;
|
|
import com.kmall.common.utils.excel.ExcelUtil;
|
|
import com.kmall.common.utils.excel.ExcelUtil;
|
|
|
|
+import com.kmall.manager.manager.express.sf.ServiceException;
|
|
import com.kmall.manager.manager.redis.JedisUtil;
|
|
import com.kmall.manager.manager.redis.JedisUtil;
|
|
import org.apache.commons.fileupload.FileItem;
|
|
import org.apache.commons.fileupload.FileItem;
|
|
import org.apache.commons.fileupload.FileItemFactory;
|
|
import org.apache.commons.fileupload.FileItemFactory;
|
|
@@ -34,6 +35,7 @@ import org.springframework.web.multipart.commons.CommonsMultipartFile;
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
+import javax.sql.rowset.serial.SerialException;
|
|
import java.io.*;
|
|
import java.io.*;
|
|
import java.util.*;
|
|
import java.util.*;
|
|
|
|
|
|
@@ -589,6 +591,9 @@ public class GoodsController {
|
|
Map<String,Object> map = null;
|
|
Map<String,Object> map = null;
|
|
try {
|
|
try {
|
|
map = goodsService.calculateGoodsDetail(prodBarcode,storeId,sku);
|
|
map = goodsService.calculateGoodsDetail(prodBarcode,storeId,sku);
|
|
|
|
+ } catch (ServiceException e) {
|
|
|
|
+ log.error("查询订单详情出现异常!", e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("查询条码:【{}】详情出现异常!", prodBarcode, e);
|
|
log.error("查询条码:【{}】详情出现异常!", prodBarcode, e);
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
@@ -612,6 +617,9 @@ public class GoodsController {
|
|
Map<String,Object> map = null;
|
|
Map<String,Object> map = null;
|
|
try {
|
|
try {
|
|
map = goodsService.calculateGoodsDetail(prodBarcode,storeId,null);
|
|
map = goodsService.calculateGoodsDetail(prodBarcode,storeId,null);
|
|
|
|
+ } catch (ServiceException e) {
|
|
|
|
+ log.error("查询订单详情出现异常!", e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
log.error("查询条码:【{}】价格出现异常!", prodBarcode, e);
|
|
log.error("查询条码:【{}】价格出现异常!", prodBarcode, e);
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
@@ -718,6 +726,9 @@ public class GoodsController {
|
|
List<Map<String,Object>> mapList = null;
|
|
List<Map<String,Object>> mapList = null;
|
|
try {
|
|
try {
|
|
mapList = goodsService.selectSkuDetails(prodBarcode,storeId);
|
|
mapList = goodsService.selectSkuDetails(prodBarcode,storeId);
|
|
|
|
+ } catch (ServiceException e) {
|
|
|
|
+ log.error("查询sku详情出现异常!", e);
|
|
|
|
+ return R.error(e.getMessage());
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
return R.error("系统异常,请联系管理员!e:"+e.getMessage());
|
|
}
|
|
}
|