|
|
@@ -1075,7 +1075,13 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
id.add(face.getAreaId().toString());
|
|
|
title.add(face.getTitle());
|
|
|
total.add(face.getTotal());
|
|
|
- if(num == 0L){
|
|
|
+ if(face.getAreaId().equals(212)){
|
|
|
+ log.info("face.getAreaId()=="+face.getAreaId());
|
|
|
+ log.info("num=="+num);
|
|
|
+ log.info("sum=="+sum);
|
|
|
+ }
|
|
|
+
|
|
|
+ if(num.equals(0)){
|
|
|
rate.add(BigDecimal.ZERO);
|
|
|
}else {
|
|
|
BigDecimal decimal2 = new BigDecimal(sum).multiply(new BigDecimal(100.0)).divide(new BigDecimal(num), 2, BigDecimal.ROUND_HALF_UP).setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
|
@@ -1096,6 +1102,13 @@ public class OrderServiceImpl extends BaseServiceImpl<OrderMapper, Order> implem
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
+ BigDecimal a = new BigDecimal(1);
|
|
|
+ BigDecimal b = new BigDecimal(918);
|
|
|
+ BigDecimal decimal2 = a.multiply(new BigDecimal(100.0)).divide(b, 2, BigDecimal.ROUND_HALF_UP).setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
|
+ System.out.println(decimal2);
|
|
|
+ }
|
|
|
+
|
|
|
private List<SubsidyCustomerFace> integralCustomer(){
|
|
|
List<SubsidyCustomerFace> returnList = Lists.newArrayList();
|
|
|
List<Integer> operationIds = baseMapper.getIntegralCardAccOperatorIdList(dbName);
|