Merge branch 'open_bohai' into 'master'
申请报告调用百盛修改 See merge request !426
This commit is contained in:
+7
-4
@@ -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("您的申请已提交,请耐心等待!");
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user