Преглед изворни кода

[深爱]科目客商变更

zxl пре 1 месец
родитељ
комит
615f0799da

+ 4 - 4
src/main/java/com/uas/eis/controller/STKController.java

@@ -90,15 +90,15 @@ public class STKController {
     /**
      * 新增修改客商信息
      */
-    /*@PostMapping(value="/erp/updateCustVend")
+    @PostMapping(value="/erp/updateCustVend")
     public ApiResult<String> updateCustVend(@RequestBody UpdateCustVendDTO dto){
         return stkService.updateCustVend( dto);
-    }*/
+    }
 
     /***
      * 新增修改客商2
      * */
-    @PostMapping(value="/erp/updateCustVend")
+    /*@PostMapping(value="/erp/updateCustVend")
     public ApiResult updateCustVend(@RequestBody UpdateCustVendDTO dto){
         Integer page  = 1;
         Integer size = 500;
@@ -112,7 +112,7 @@ public class STKController {
             log.info("新增修改客商信息异常!");
         }
         return new ApiResult();
-    }
+    }*/
 
 
 

+ 9 - 1
src/main/java/com/uas/eis/service/Impl/RequestSTKServiceImpl.java

@@ -114,13 +114,21 @@ public class RequestSTKServiceImpl implements RequestSTKService {
             log.info("深投控,新增修改客商信息数据为空");
             return new SaveOrChangeCustomerVo();
         }
+
+        //头部请求参数
+        Map<String,String> headerMap = null;
+        try {
+            headerMap = getHeaderMap(sourceDataList);
+        } catch (Exception e) {
+            log.error("STK加密异常:{}",e.getMessage());
+        }
         //新增修改客商信息对象集合
         //List<SaveOrChangeCustomerDetailDto> detailDtos = doSaveOrUpdateCustomerParam(sourceDataList);
 
         //调用深投控新增修改客商信息
         SaveOrChangeCustomerDto changeCustomerDto = new SaveOrChangeCustomerDto();
         changeCustomerDto.setParam(sourceDataList);
-        HttpResultResponse resultResponse = HuToolUtils.post(SAVE_OR_UPDATE_URL+SAVE_OR_UPDATE_REQUEST_CODE,changeCustomerDto);
+        HttpResultResponse resultResponse = HuToolUtils.post(SAVE_OR_UPDATE_URL+SAVE_OR_UPDATE_REQUEST_CODE,changeCustomerDto,headerMap);
         log.info("深投控,新增修改客商信息,返回结果数据{}",JSONObject.toJSONString(resultResponse));
         if(!resultResponse.getSuccess()){
             log.info("深投控,新增修改客商信息数据异常:{}",resultResponse.getMessage());