| | |
| | | serviceStaticDTO.getYear(), serviceStaticDTO.getServiceType()); |
| | | |
| | | |
| | | if(serviceStaticDTO.getServiceType()==1 || serviceStaticDTO.getServiceType()==null) |
| | | if(serviceStaticDTO.getServiceType()==null || serviceStaticDTO.getServiceType()==1) |
| | | { |
| | | List<NewFightNeedProblemClaim> list=baseMapper.getNewServiceNum("",serviceStaticDTO.getCheckUnitId()+""); |
| | | if(list.size()>0) |
| | |
| | | String Ltime=item.getServiceTime(); |
| | | if(!StringUtils.isEmpty(Ltime)) |
| | | { |
| | | double time=(double)(Long.valueOf(Ltime)/3600000); |
| | | hours=hours+(time); |
| | | |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | double time=(Double.valueOf(Ltime)/3600000); |
| | | DecimalFormat df = new DecimalFormat("#.##"); |
| | | String formattedNumber = df.format(time); |
| | | double result = Double.parseDouble(formattedNumber); |
| | | |
| | | hours=hours+result; |
| | | |
| | | newItem.setServiceTime(result); |
| | | item.setServiceTime(result+""); |
| | | } |
| | |
| | | newItem.setServiceAt(item.getCreationTime()); |
| | | serviceDetailStaticsVOList.add(newItem); |
| | | } |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | DecimalFormat df = new DecimalFormat("#.##"); |
| | | String formattedNumber = df.format(hours); |
| | | double result = Double.parseDouble(formattedNumber); |
| | | serviceStaticsVO.setHours(result); |
| | |
| | | serviceStaticDTO.getYear(), serviceStaticDTO.getServiceType()); |
| | | |
| | | |
| | | if(serviceStaticDTO.getServiceType()==1 || serviceStaticDTO.getServiceType()==null) |
| | | if(serviceStaticDTO.getServiceType()==null || serviceStaticDTO.getServiceType()==1) |
| | | { |
| | | //获取新需求服务列表 |
| | | List<NewFightNeedProblemClaim> list=baseMapper.getNewServiceNum(serviceStaticDTO.getPhone(),""); |
| | |
| | | String Ltime=item.getServiceTime(); |
| | | if(!StringUtils.isEmpty(Ltime)) |
| | | { |
| | | double time=(double)(Long.valueOf(Ltime)/3600000); |
| | | |
| | | hours=hours+(time); |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | double time=(Double.valueOf(Ltime)/3600000); |
| | | DecimalFormat df = new DecimalFormat("#.##"); |
| | | String formattedNumber = df.format(time); |
| | | double result = Double.parseDouble(formattedNumber); |
| | | |
| | | hours=hours+result; |
| | | |
| | | newItem.setServiceTime(result); |
| | | item.setServiceTime(result+""); |
| | | } |
| | |
| | | serviceDetailStaticsVOList.add(newItem); |
| | | } |
| | | |
| | | DecimalFormat df = new DecimalFormat("#.00"); |
| | | DecimalFormat df = new DecimalFormat("#.##"); |
| | | String formattedNumber = df.format(hours); |
| | | double result = Double.parseDouble(formattedNumber); |
| | | serviceStaticsVO.setHours(result); |