|
|
@@ -17,12 +17,9 @@ import com.sckw.core.exception.SystemException;
|
|
|
import com.sckw.core.model.constant.Global;
|
|
|
import com.sckw.core.model.enums.ClientTypeEnum;
|
|
|
import com.sckw.core.model.enums.CooperateTypeEnum;
|
|
|
-import com.sckw.core.utils.AsyncThreadUtils;
|
|
|
-import com.sckw.core.utils.BeanUtils;
|
|
|
+import com.sckw.core.utils.*;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.cloud.stream.function.StreamBridge;
|
|
|
-import com.sckw.core.utils.OkHttpUtils;
|
|
|
-import com.sckw.core.utils.UUIDUtils;
|
|
|
import com.sckw.core.web.constant.HttpStatus;
|
|
|
import com.sckw.core.web.context.LoginUserHolder;
|
|
|
import com.sckw.order.api.dubbo.TradeOrderInfoService;
|
|
|
@@ -265,8 +262,8 @@ public class CommonBusinessService {
|
|
|
* @author: czh
|
|
|
* @date: 2023/8/14
|
|
|
*/
|
|
|
- public void postToEsign(String firstAccount, String secondAccount, Long orgFirst, Long orgSeconId, String contractFile, Long id, String contractName, String filePathPrefix) {
|
|
|
- AsyncFactory.execute(new AsyncProcess(firstAccount, secondAccount, orgFirst, orgSeconId, contractFile, id, contractName, remoteSystemService, eSignUrl, kwcContractLogisticsMapper, kwcContractTradeMapper, filePathPrefix));
|
|
|
+ public void postToEsign(String firstAccount, String secondAccount, Long orgFirst, Long orgSeconId, String contractFile, Long id, String contractName) {
|
|
|
+ AsyncFactory.execute(new AsyncProcess(firstAccount, secondAccount, orgFirst, orgSeconId, contractFile, id, contractName, remoteSystemService, eSignUrl, kwcContractLogisticsMapper, kwcContractTradeMapper));
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -312,7 +309,6 @@ public class CommonBusinessService {
|
|
|
private final String contractFile;
|
|
|
private final Long id;
|
|
|
private final String contractName;
|
|
|
- private final String filePathPrefix;
|
|
|
|
|
|
private RemoteSystemService remoteSystemService;
|
|
|
private String eSignUrl;
|
|
|
@@ -329,8 +325,7 @@ public class CommonBusinessService {
|
|
|
RemoteSystemService remoteSystemService,
|
|
|
String eSignUrl,
|
|
|
KwcContractLogisticsMapper kwcContractLogisticsMapper,
|
|
|
- KwcContractTradeMapper kwcContractTradeMapper,
|
|
|
- String filePathPrefix) {
|
|
|
+ KwcContractTradeMapper kwcContractTradeMapper) {
|
|
|
this.firstAccount = firstAccount;
|
|
|
this.secondAccount = secondAccount;
|
|
|
this.orgFirst = orgFirst;
|
|
|
@@ -342,7 +337,6 @@ public class CommonBusinessService {
|
|
|
this.eSignUrl = eSignUrl;
|
|
|
this.kwcContractLogisticsMapper = kwcContractLogisticsMapper;
|
|
|
this.kwcContractTradeMapper = kwcContractTradeMapper;
|
|
|
- this.filePathPrefix = filePathPrefix;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -351,7 +345,7 @@ public class CommonBusinessService {
|
|
|
JSONArray jsonArray = JSONArray.parseArray(contractFile);
|
|
|
JSONObject jsonObject = jsonArray.getJSONObject(0);
|
|
|
String fileName = jsonObject.getString("name");
|
|
|
- String url = filePathPrefix + jsonObject.getString("url");
|
|
|
+ String url = FileUtils.splice(jsonObject.getString("url"));
|
|
|
File file = getFileByHttpURL(url, fileName);
|
|
|
List<Long> entIds = new ArrayList<>(2);
|
|
|
entIds.add(orgFirst);
|