申请报告调用百盛修改
This commit is contained in:
+7
-4
@@ -1109,10 +1109,13 @@ public class WeiXinEvaluationController {
|
|||||||
formalReportService.update(formalReport);
|
formalReportService.update(formalReport);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Integer code = BHBankUtils.inquireToReport(bohaiEvaluationAudit.getQueryId(), model.getAddress());
|
JSONObject jsonObj = BHBankUtils.inquireToReport(bohaiEvaluationAudit.getQueryId(), model.getAddress());
|
||||||
Map<String, Integer> data = new HashMap<String, Integer>();
|
if(jsonObj!=null){
|
||||||
data.put("code", code);
|
Map<String, Object> data = new HashMap<String, Object>();
|
||||||
jsonModel.setJsonModel(data);
|
data.put("code", (Integer)jsonObj.get("errCode"));
|
||||||
|
data.put("msg", (String)jsonObj.get("errMsg"));
|
||||||
|
jsonModel.setJsonModel(data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return jsonModel;
|
return jsonModel;
|
||||||
|
|||||||
@@ -431,8 +431,7 @@ public class BHBankUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static JSONObject inquireToReport(String queryId, String reportMsg){
|
||||||
public static Integer inquireToReport(String queryId, String reportMsg){
|
|
||||||
String feedbackId = null;
|
String feedbackId = null;
|
||||||
List<JSONObject> list = new ArrayList<JSONObject>();
|
List<JSONObject> list = new ArrayList<JSONObject>();
|
||||||
Map params = new HashMap();
|
Map params = new HashMap();
|
||||||
@@ -475,10 +474,7 @@ public class BHBankUtils {
|
|||||||
if(StringUtils.isNotBlank(content)){
|
if(StringUtils.isNotBlank(content)){
|
||||||
JSONObject jsonObj = JSONObject.fromObject(content);
|
JSONObject jsonObj = JSONObject.fromObject(content);
|
||||||
if(jsonObj.containsKey("errCode")){
|
if(jsonObj.containsKey("errCode")){
|
||||||
Integer code = (Integer) jsonObj.get("errCode");
|
return jsonObj;
|
||||||
if (code == 0) {
|
|
||||||
return code;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
|
|||||||
@@ -375,8 +375,13 @@ function clickFormalReport(){
|
|||||||
},
|
},
|
||||||
dataType:"json",
|
dataType:"json",
|
||||||
success:function(data){
|
success:function(data){
|
||||||
$.cookie("fjt-formal-report",address, {path:"/",expires: 30})
|
if(data && data.code!=0){
|
||||||
alert("您的申请已提交,请耐心等待!");
|
alert(data.msg);
|
||||||
|
}else{
|
||||||
|
$.cookie("fjt-formal-report",address, {path:"/",expires: 30})
|
||||||
|
alert("您的申请已提交,请耐心等待!");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user