申请报告调用百盛修改

This commit is contained in:
2022-11-04 11:35:19 +08:00
parent 9c4ade44cb
commit e2046d01e4
3 changed files with 16 additions and 12 deletions
@@ -1109,10 +1109,13 @@ public class WeiXinEvaluationController {
formalReportService.update(formalReport);
}
}
Integer code = BHBankUtils.inquireToReport(bohaiEvaluationAudit.getQueryId(), model.getAddress());
Map<String, Integer> data = new HashMap<String, Integer>();
data.put("code", code);
jsonModel.setJsonModel(data);
JSONObject jsonObj = BHBankUtils.inquireToReport(bohaiEvaluationAudit.getQueryId(), model.getAddress());
if(jsonObj!=null){
Map<String, Object> data = new HashMap<String, Object>();
data.put("code", (Integer)jsonObj.get("errCode"));
data.put("msg", (String)jsonObj.get("errMsg"));
jsonModel.setJsonModel(data);
}
}
}
return jsonModel;
@@ -431,8 +431,7 @@ public class BHBankUtils {
}
public static Integer inquireToReport(String queryId, String reportMsg){
public static JSONObject inquireToReport(String queryId, String reportMsg){
String feedbackId = null;
List<JSONObject> list = new ArrayList<JSONObject>();
Map params = new HashMap();
@@ -475,10 +474,7 @@ public class BHBankUtils {
if(StringUtils.isNotBlank(content)){
JSONObject jsonObj = JSONObject.fromObject(content);
if(jsonObj.containsKey("errCode")){
Integer code = (Integer) jsonObj.get("errCode");
if (code == 0) {
return code;
}
return jsonObj;
}
}
}catch (Exception e){
@@ -375,8 +375,13 @@ function clickFormalReport(){
},
dataType:"json",
success:function(data){
$.cookie("fjt-formal-report",address, {path:"/",expires: 30})
alert("您的申请已提交,请耐心等待!");
if(data && data.code!=0){
alert(data.msg);
}else{
$.cookie("fjt-formal-report",address, {path:"/",expires: 30})
alert("您的申请已提交,请耐心等待!");
}
}
})
}