|
@@ -59,7 +59,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
request.setItemId(item);
|
|
|
OpenDistributionInvestmentActivityItemDetailResponse response = client.execute(request);
|
|
|
JSONObject json = JSONObject.parseObject(GsonUtils.toJSON(response));
|
|
|
- log.info("获取信息返回数据:{}", json);
|
|
|
+
|
|
|
if (Check.isNull(json)) {
|
|
|
throw new Exception("获取商品信息出错,请重新提交");
|
|
|
}
|
|
@@ -92,6 +92,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
returnJson.put("code", -1);
|
|
|
returnJson.put("message", "数据查询失败");
|
|
|
}
|
|
|
+ log.info("获取商品信息回,活动ID:{},商品ID:{},数据:「」", activityId, itemId, returnJson);
|
|
|
return returnJson;
|
|
|
}
|
|
|
|
|
@@ -118,8 +119,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
secondCategory = kuaishouItemListMapper.getCategoryInfo(category.getParentId());
|
|
|
thirdCategory = kuaishouItemListMapper.getCategoryInfo(secondCategory.getParentId());
|
|
|
stringBuffer.append(thirdCategory.getCategoryName()).append(">").append(secondCategory.getCategoryName()).append(">").append(category.getCategoryName());
|
|
|
- }
|
|
|
- else if (category.getCategorySort() == 4) {
|
|
|
+ } else if (category.getCategorySort() == 4) {
|
|
|
secondCategory = kuaishouItemListMapper.getCategoryInfo(category.getParentId());
|
|
|
thirdCategory = kuaishouItemListMapper.getCategoryInfo(secondCategory.getParentId());
|
|
|
fourthCategory = kuaishouItemListMapper.getCategoryInfo(thirdCategory.getParentId());
|
|
@@ -139,7 +139,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
@Override
|
|
|
public void insertItem(KuaishouItemList kuaishouItemList) {
|
|
|
kuaishouItemListMapper.insertItem(kuaishouItemList);
|
|
|
- kuaishouItemListMapper.insertItemBindUser(kuaishouItemList.getItemId(),kuaishouItemList.getUserId(),kuaishouItemList.getUserName());
|
|
|
+ kuaishouItemListMapper.insertItemBindUser(kuaishouItemList.getItemId(), kuaishouItemList.getUserId(), kuaishouItemList.getUserName());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -199,7 +199,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
Long thirdCategoryId = third.getLong("categoryId");
|
|
|
adds.add(thirdCategory);
|
|
|
JSONArray fourthChildCategory = third.getJSONArray("childCategory");
|
|
|
- if(!Check.isNull(fourthChildCategory)){
|
|
|
+ if (!Check.isNull(fourthChildCategory)) {
|
|
|
for (int l = 0; l < fourthChildCategory.size(); l++) {
|
|
|
JSONObject fourth = fourthChildCategory.getJSONObject(l);
|
|
|
KuaishouItemCategory fourthCategory = new KuaishouItemCategory();
|