|
@@ -199,9 +199,9 @@ public class DeviceImpl implements IDevice {
|
|
}
|
|
}
|
|
String rate = mathUtil.countRate(num, total, bit);
|
|
String rate = mathUtil.countRate(num, total, bit);
|
|
JSONObject outJo = new JSONObject();
|
|
JSONObject outJo = new JSONObject();
|
|
- outJo.put("total",total);
|
|
|
|
- outJo.put("num",num);
|
|
|
|
- outJo.put("rate",rate+"%");
|
|
|
|
|
|
+ outJo.put("total",total+" 个");
|
|
|
|
+ outJo.put("num",num+" 个");
|
|
|
|
+ outJo.put("rate",rate+" %");
|
|
return new Result(ResultCode.SUCCESS,outJo);
|
|
return new Result(ResultCode.SUCCESS,outJo);
|
|
}
|
|
}
|
|
|
|
|