Commit 3ec4b7ee authored by liwenbin's avatar liwenbin

期数格式更改

parent 9ab5b273
......@@ -229,7 +229,12 @@ public class AssetServiceImpl implements IAssetService{
amountJSON.put("terms", termArray);
JSONObject termJSON = new JSONObject();
termArray.add(termJSON);
termJSON.put("term", assetForm.getTerm());
try {
// 不能是string,否则资方那边会报错
termJSON.put("term", Integer.parseInt(assetForm.getTerm()));
} catch (Exception e) {
termJSON.put("term", Double.parseDouble(assetForm.getTerm()));
}
JSONArray fundArray = new JSONArray();
termJSON.put("fundInfo", fundArray);
......@@ -290,5 +295,4 @@ public class AssetServiceImpl implements IAssetService{
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment