Commit d4f37659 authored by BlackJokerCJ's avatar BlackJokerCJ

修改提交

parent 85fd32ee
...@@ -43,14 +43,17 @@ public class CreditThirdDataListener extends AbstractMQConsumerHandler<JSONObjec ...@@ -43,14 +43,17 @@ public class CreditThirdDataListener extends AbstractMQConsumerHandler<JSONObjec
@Override @Override
public void run(JSONObject req) throws Exception { public void run(JSONObject req) throws Exception {
log.info("req:[{}]",req.toJSONString()); CreditModel creditModel= creditComponent.getByOrderNo(req.getString("orderNo"));
JSONObject thirdCredit = new JSONObject(); if(creditModel!=null&& creditModel.getCreditThirdStatus()!="INIT"){
thirdCredit.put("reqNo", req.getString("orderNo")); log.info("req:[{}]",req.toJSONString());
thirdCredit.put("type", "01"); JSONObject thirdCredit = new JSONObject();
abcHttpClient.postRequest(thirdCredit.toJSONString(), ZNPostUrlEnum.CREDIT_APPLY.getCode()); thirdCredit.put("reqNo", req.getString("orderNo"));
CreditModel creditModel1=new CreditModel(); thirdCredit.put("type", "01");
creditModel1.setCreditThirdStatus("INIT"); abcHttpClient.postRequest(thirdCredit.toJSONString(), ZNPostUrlEnum.CREDIT_APPLY.getCode());
creditComponent.updateByOrderNo(req.getString("orderNo"),creditModel1); CreditModel creditModel1=new CreditModel();
creditModel1.setCreditThirdStatus("INIT");
creditComponent.updateByOrderNo(req.getString("orderNo"),creditModel1);
}
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment