|
@@ -74,9 +74,9 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public JSONObject getItemDetail(Long regId,Long activityId, Long itemId, KuaishouAccessToken accessToken) throws Exception {
|
|
|
+ public JSONObject getItemDetail(Long regId, Long activityId, Long itemId, KuaishouAccessToken accessToken) throws Exception {
|
|
|
// 调用爬虫信息
|
|
|
- JSONObject invaliItemDetail = getInvaliItemDetail(regId,activityId, itemId);
|
|
|
+ JSONObject invaliItemDetail = getInvaliItemDetail(regId, activityId, itemId);
|
|
|
JSONObject returnJson = new JSONObject();
|
|
|
AccessTokenKsMerchantClient client = new AccessTokenKsMerchantClient(KuaiShouConstants.KFX_URL, accessToken.getAppKey(), accessToken.getAppSecret());
|
|
|
OpenDistributionInvestmentActivityItemDetailRequest request = new OpenDistributionInvestmentActivityItemDetailRequest();
|
|
@@ -132,7 +132,7 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
}
|
|
|
|
|
|
|
|
|
- private JSONObject getInvaliItemDetail(Long regId,Long activityId, Long itemId) throws Exception {
|
|
|
+ private JSONObject getInvaliItemDetail(Long regId, Long activityId, Long itemId) throws Exception {
|
|
|
JSONObject returnJson = new JSONObject();
|
|
|
String cookie = supplyChainMapper.getCookie(regId);
|
|
|
Map<String, Object> params = new HashMap<>();
|
|
@@ -283,6 +283,8 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
|
|
|
@Override
|
|
|
public void insertItem(KuaishouItemList kuaishouItemList) {
|
|
|
+ Long relateId = kuaishouItemListMapper.selectMaxRelateId();
|
|
|
+ kuaishouItemList.setRelateId(relateId + 1);
|
|
|
kuaishouItemListMapper.insertItem(kuaishouItemList);
|
|
|
kuaishouItemListMapper.insertItemBindUser(kuaishouItemList.getItemId(), kuaishouItemList.getUserId(), kuaishouItemList.getUserName());
|
|
|
}
|
|
@@ -397,8 +399,8 @@ public class KuaishouItemListServiceImpl implements IKuaishouItemListService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void batchItemProcess(JSONArray itemIds, Integer status,Long examineId,String examineName) {
|
|
|
- kuaishouItemListMapper.batchItemProcess(itemIds,status,examineId,examineName);
|
|
|
+ public void batchItemProcess(JSONArray itemIds, Integer status, Long examineId, String examineName) {
|
|
|
+ kuaishouItemListMapper.batchItemProcess(itemIds, status, examineId, examineName);
|
|
|
}
|
|
|
|
|
|
@Override
|