Merge branch 'open_gj' into 'master'

修复渤海银行估价失败异常

See merge request !258
This commit is contained in:
2022-01-26 13:25:34 +08:00
@@ -462,8 +462,14 @@ public class WeiXinEvaluationController {
}else if(bhDists.size()>1){
int mod = Integer.MAX_VALUE;
for(JSONObject jo : bhDists){
double price = Double.valueOf((String)jo.get("price"));
int bhprice = (int)price;
int bhprice = 0;
if (jo.get("price") == null || jo.get("price").equals("null")) {
bhprice = 0;
} else {
double price = Double.valueOf((String)jo.get("price"));
bhprice = (int)price;
}
int bhmod = Math.abs(bhprice - avgPrice);
if(bhmod<mod){
mod = bhmod;