| | |
| | | } |
| | | |
| | | @Override |
| | | public R checkExport(String account, String password,String oldPassword) { |
| | | if(new BCryptPasswordEncoder().matches(password, oldPassword)){ |
| | | return R.ok(); |
| | | } |
| | | return R.fail(); |
| | | } |
| | | |
| | | @Override |
| | | public R newIndexData(Integer type, Long streetId) { |
| | | IndexDataKanbanVO indexDataKanbanVO = userDao.selectIndexDataKanban(null); |
| | | IndexDataAnalysisVO vo=new IndexDataAnalysisVO(); |
| | |
| | | private Double getRate(Integer total,Integer count){ |
| | | if (0 != total && null != total){ |
| | | if (0 != count && null != count){ |
| | | BigDecimal div = NumberUtil.div(count.toString(), total.toString(),1); |
| | | BigDecimal div = NumberUtil.div(count.toString(), total.toString(),2); |
| | | return div.doubleValue(); |
| | | } |
| | | } |