代码优化

This commit is contained in:
Achilles
2024-03-18 18:12:57 +08:00
parent 11d4062859
commit 5a9029f950

View File

@@ -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);
} }