|
|
|
|
@ -16,6 +16,7 @@ import com.biutag.supervision.pojo.entity.DataSupervisionNotify;
|
|
|
|
|
import com.biutag.supervision.pojo.entity.Negative; |
|
|
|
|
import com.biutag.supervision.pojo.entity.NegativeBlame; |
|
|
|
|
import com.biutag.supervision.pojo.entity.SupDepart; |
|
|
|
|
import com.biutag.supervision.pojo.vo.EchartsVo; |
|
|
|
|
import com.biutag.supervision.pojo.vo.RankVo; |
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
@ -142,6 +143,8 @@ public class DataSupervisionNotifyServiceImpl extends ServiceImpl<DataSupervisio
|
|
|
|
|
rankVoRe.setDenominator(totalPro.toString()); |
|
|
|
|
rankVoRe.setNumerator(changed.toString()); |
|
|
|
|
Double rate = totalPro != 0 ? (changed * 1.0 / totalPro) * 100 : 0; |
|
|
|
|
int intRate = (int) Math.ceil(rate); |
|
|
|
|
rankVoRe.setRate((double) intRate); |
|
|
|
|
rankVoRe.setDenominator(totalPro.toString()); |
|
|
|
|
rankVoRe.setNumerator(changed.toString()); |
|
|
|
|
rankVoRe.setRate(rate); |
|
|
|
|
@ -152,6 +155,12 @@ public class DataSupervisionNotifyServiceImpl extends ServiceImpl<DataSupervisio
|
|
|
|
|
// 排序
|
|
|
|
|
return rankVoRes; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<EchartsVo> getProblemTypeRatio(Date beginTime, Date endTime) { |
|
|
|
|
List<EchartsVo> echartsVos = new ArrayList<>(); |
|
|
|
|
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|