|
@ -139,14 +139,11 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
|
|
|
try {
|
|
|
JSONObject json = new JSONObject(rehabilitationPlan);
|
|
|
if(json.has("totalExpense")) {
|
|
|
json.put("totalExpense", (DataUtils.doubleToInt(json.getDouble("totalExpense"))));
|
|
|
json.put("totalExpense", DataUtils.doubleToInt(json.getDouble("totalExpense")));
|
|
|
}
|
|
|
JSONArray array = new JSONArray();
|
|
|
for(Object planDetail : json.getJSONArray("detail")) {
|
|
|
JSONObject j = (JSONObject)planDetail;
|
|
|
if(j.has("expense")){
|
|
|
j.put("expense", (DataUtils.doubleToInt(j.getDouble("expense"))));
|
|
|
}
|
|
|
if(j.has("executeTime")) {
|
|
|
String executeTime = j.get("executeTime").toString();
|
|
|
String[] result = null;
|
|
@ -382,9 +379,6 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
|
|
|
JSONArray array = new JSONArray();
|
|
|
for(Object planDetail : json.getJSONArray("detail")) {
|
|
|
JSONObject j = (JSONObject)planDetail;
|
|
|
if(j.has("expense")){
|
|
|
j.put("expense", (DataUtils.doubleToInt(j.getDouble("expense"))));
|
|
|
}
|
|
|
if(j.has("executeTime")) {
|
|
|
String executeTime = j.get("executeTime").toString();
|
|
|
String[] result = null;
|