lidongdong
2024-07-11 eef6d2bcdb29348efe4ef17bc45a4c6886b487b1
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActNeighborCircleServiceImpl.java
@@ -1145,7 +1145,7 @@
                    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)
@@ -1163,12 +1163,13 @@
                       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+"");
                       }
@@ -1178,7 +1179,7 @@
                       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);
@@ -1202,7 +1203,7 @@
                    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(),"");
@@ -1221,12 +1222,13 @@
                        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+"");
                        }
@@ -1237,7 +1239,7 @@
                        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);