Przeglądaj źródła

修改首页图表

LiFei 5 lat temu
rodzic
commit
419dc2d45f

+ 2 - 2
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwpayment/controller/HlwPaymentDetailController.java

@@ -360,10 +360,10 @@ public class HlwPaymentDetailController extends JeecgController<HlwPaymentDetail
         Random rand = new Random();
         Random rand = new Random();
         list.add(weekUser);
         list.add(weekUser);
         //本周新增用户占月新增用户比例
         //本周新增用户占月新增用户比例
-        list.add(businessAccountUtils.round(businessAccountUtils.div(weekUser, monthUser), 2) * 100 + "%");
+        list.add(businessAccountUtils.round(businessAccountUtils.div(weekUser, monthUser), 2) * 100);
         list.add(monthUser);
         list.add(monthUser);
         //本月新增用户占年新增用户比例
         //本月新增用户占年新增用户比例
-        list.add(businessAccountUtils.round(businessAccountUtils.div(monthUser, yearUser), 2) * 100 + "%");
+        list.add(businessAccountUtils.round(businessAccountUtils.div(monthUser, yearUser), 2) * 100 );
         //用户环增长比
         //用户环增长比
         list.add(rand.nextInt(9) + 8 + "%");
         list.add(rand.nextInt(9) + 8 + "%");
         return Result.ok(list);
         return Result.ok(list);