|
|
@ -138,12 +138,12 @@ public class RequestRecordServiceImpl extends MpBaseServiceImpl<RequestRecordDao |
|
|
|
R data = new R(1000, "default success"); |
|
|
|
R data = new R(1000, "default success"); |
|
|
|
try { |
|
|
|
try { |
|
|
|
DynamicContextHolder.push(dbname+DbConstant.BUSINESS_WRITE); |
|
|
|
DynamicContextHolder.push(dbname+DbConstant.BUSINESS_WRITE); |
|
|
|
if (recordenum.getArgClass().length>1) { |
|
|
|
List<String> arglist = JSONObject.parseObject(dbRecord.getActiveCallRequestDetail(),List.class); |
|
|
|
List<String> list = JSONObject.parseObject(dbRecord.getActiveCallRequestDetail(),List.class); |
|
|
|
List<Object> args = new ArrayList<>(); |
|
|
|
invokeResponse = method.invoke(snPushCheckRecordService, JSONObject.parseObject(list.get(0), recordenum.getArgClass()[0]),JSONObject.parseObject(list.get(1), recordenum.getArgClass()[1])); |
|
|
|
arglist.forEach(strArg-> args.add(JSONObject.parseObject(strArg, recordenum.getArgClass()[arglist.indexOf(strArg)]))); |
|
|
|
}else { |
|
|
|
|
|
|
|
invokeResponse = method.invoke(snPushCheckRecordService, JSONObject.parseObject(dbRecord.getActiveCallRequestDetail(), recordenum.getArgClass()[0])); |
|
|
|
invokeResponse = method.invoke(snPushCheckRecordService, args.toArray()); |
|
|
|
} |
|
|
|
|
|
|
|
log.info("重调后得到的结果:{}",JSONObject.toJSONString(invokeResponse)); |
|
|
|
log.info("重调后得到的结果:{}",JSONObject.toJSONString(invokeResponse)); |
|
|
|
|
|
|
|
|
|
|
|
Map<String,String> map = JSONObject.parseObject(JSONObject.toJSONString(invokeResponse), Map.class); |
|
|
|
Map<String,String> map = JSONObject.parseObject(JSONObject.toJSONString(invokeResponse), Map.class); |
|
|
|