| | |
| | | Integer tuan=0; |
| | | BigDecimal shouyi=new BigDecimal(0); |
| | | for (TjOrder tjOrder : list) { |
| | | final TjCustomer byId = customerService.getById(tjOrder.getUserId()); |
| | | if (byId.getCusSex()==0){ |
| | | boys+=1; |
| | | }else if (byId.getCusSex()==1){ |
| | | girls+=1; |
| | | TjCustomer customer = customerService.getById(tjOrder.getUserId()); |
| | | if(null !=customer){ |
| | | if (customer.getCusSex()==0){ |
| | | boys+=1; |
| | | }else if (customer.getCusSex()==1){ |
| | | girls+=1; |
| | | } |
| | | } |
| | | |
| | | if ("2".equals(tjOrder.getTjType())){ |
| | | person+=1; |
| | | } else if ("1".equals(tjOrder.getTjType())) { |