|
|
|
@ -370,7 +370,7 @@ public class SaasMerService { |
|
|
|
|
if (platformNo == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "商户未提交过进件"); |
|
|
|
|
} |
|
|
|
|
JSONObject responseObj = reconsiderSubmit(platformNo.getPlatformNo()); |
|
|
|
|
String responseObj = reconsiderSubmit(platformNo.getPlatformNo()); |
|
|
|
|
|
|
|
|
|
String orderNo = System.currentTimeMillis()+""; |
|
|
|
|
// 增加进件记录
|
|
|
|
@ -378,7 +378,7 @@ public class SaasMerService { |
|
|
|
|
record.setMerId(merId); |
|
|
|
|
record.setPlatformType(PlatformTypeEnum.type1.getNumber()); |
|
|
|
|
record.setOrderNo(orderNo); |
|
|
|
|
record.setContractId(responseObj.toJSONString()); |
|
|
|
|
record.setContractId(responseObj); |
|
|
|
|
record.setStatus(1); |
|
|
|
|
merContractRecordService.insertRecord(record); |
|
|
|
|
|
|
|
|
@ -389,16 +389,16 @@ public class SaasMerService { |
|
|
|
|
recordMsg.setRequestContent(platformNo.getPlatformNo()); |
|
|
|
|
recordMsg.setResponseCode(null); |
|
|
|
|
recordMsg.setResponseMsg(null); |
|
|
|
|
recordMsg.setResponseContent(responseObj.toJSONString()); |
|
|
|
|
recordMsg.setResponseContent(responseObj); |
|
|
|
|
merContractRecordMsgService.insertRecordMsg(recordMsg); |
|
|
|
|
return responseObj; |
|
|
|
|
return new JSONObject(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 进件复议提交 |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
public JSONObject reconsiderSubmit(String customerNo) throws Exception { |
|
|
|
|
public String reconsiderSubmit(String customerNo) throws Exception { |
|
|
|
|
Map<String,Object> param = new HashMap<>(); |
|
|
|
|
param.put("customerNo", customerNo); |
|
|
|
|
|
|
|
|
@ -415,7 +415,7 @@ public class SaasMerService { |
|
|
|
|
if (responseObj == null || !responseObj.getString("code").equals("000000")) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, responseObj.getString("message")); |
|
|
|
|
} |
|
|
|
|
return JSONObject.parseObject(new String(RSAUtil.decryptByPublicKey(Base64.decodeBase64(responseObj.getString("data")), Base64.decodeBase64(RSAUtil.PUBLIC_KEY)))); |
|
|
|
|
return new String(RSAUtil.decryptByPublicKey(Base64.decodeBase64(responseObj.getString("data")), Base64.decodeBase64(RSAUtil.PUBLIC_KEY))); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|