Explorar o código

接口修改 expense的问题

liubing %!s(int64=4) %!d(string=hai) anos
pai
achega
e712b00b2e

+ 1 - 1
svr/svr-wlyy-specialist/src/main/java/com/yihu/jw/controller/rehabilitation/RehabilitationPlanController.java

@ -139,7 +139,7 @@ public class RehabilitationPlanController extends EnvelopRestEndpoint {
        try {
        try {
            JSONObject json = new JSONObject(rehabilitationPlan);
            JSONObject json = new JSONObject(rehabilitationPlan);
            if(json.has("totalExpense")) {
            if(json.has("totalExpense")) {
                json.put("totalExpense", DataUtils.doubleToInt(json.getDouble("totalExpense")));
                json.put("totalExpense", json.getInt("totalExpense"));
            }
            }
            JSONArray array = new JSONArray();
            JSONArray array = new JSONArray();
            for(Object planDetail : json.getJSONArray("detail")) {
            for(Object planDetail : json.getJSONArray("detail")) {