| | |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.math.BigDecimal; |
| | | import java.util.*; |
| | | |
| | | import static java.util.Objects.isNull; |
| | |
| | | if (nonNull(vo.getSuccess()) && !vo.getSuccess().equals(0)){ |
| | | if (nonNull(vo.getAccepted()) && !vo.getAccepted().equals(0)){ |
| | | //计算成功率 |
| | | vo.setSuccessRate(NumberUtil.div(vo.getSuccess(),vo.getAccepted(),2)); |
| | | try { |
| | | vo.setSuccessRate(NumberUtil.div(vo.getSuccess(),vo.getAccepted(),2)); |
| | | }catch (NullPointerException e){ |
| | | vo.setSuccessRate(new BigDecimal(0)); |
| | | } |
| | | |
| | | } |
| | | } |
| | | vo.setExpert(comSanshuoExpertDao.selectExpertCount(indexDataDTO)); |