代码优化
This commit is contained in:
@@ -203,6 +203,10 @@ public class MoneyApiController {
|
|||||||
if(null!=moneyStock){
|
if(null!=moneyStock){
|
||||||
json1.put("id",moneyStock.getId());
|
json1.put("id",moneyStock.getId());
|
||||||
}
|
}
|
||||||
|
if(StringUtils.equals(data.getString("OPN"),"0.00")&&StringUtils.equals(data.getString("pricecurrent"),"0.00")
|
||||||
|
&& (!StringUtils.equals(data.getString("priceprevclose"),"0.00"))){
|
||||||
|
json1.put("pricecurrent",data.getString("priceprevclose"));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ServerResponse.createBySuccess(json1);
|
return ServerResponse.createBySuccess(json1);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user