|
@@ -82,6 +82,8 @@ public class RepairBillStatisticsManagerImpl implements RepairBillStatisticsMana
|
|
|
for (Element element :
|
|
|
elementList) {
|
|
|
|
|
|
+ LOG.info("===>小类名字:" + element.getItemname());
|
|
|
+
|
|
|
ElementGroup elementGroup = elementGroupManager.getElementGroupId(element.getElementGroup().getId());
|
|
|
Element element1 = elementGroupManager.getByItemCode(elementGroup.getGroupcode());//查询大类
|
|
|
|
|
@@ -203,6 +205,9 @@ public class RepairBillStatisticsManagerImpl implements RepairBillStatisticsMana
|
|
|
BigDecimal todayCreate=BigDecimal.ZERO;
|
|
|
|
|
|
for (RepairBill repairBill : repairBills) {
|
|
|
+
|
|
|
+ LOG.info("===>code:{}"+ repairBill.getCode());
|
|
|
+
|
|
|
int status = repairBill.getStatus().intValue();
|
|
|
|
|
|
if (status != CodeConstants.CANCEL &&
|
|
@@ -247,19 +252,34 @@ public class RepairBillStatisticsManagerImpl implements RepairBillStatisticsMana
|
|
|
dto.setBillStatus5Total(dto.getBillStatus5Total() + 1);
|
|
|
}
|
|
|
|
|
|
+ Date minutes_startTime = DateHelper.parseToDate(DateHelper.toDateTimeString(repairBill.getCreateTime()),"yyyy-MM-dd HH:mm"); //格式化到分
|
|
|
+ LOG.info("===>minutes_startTime:{}"+ DateHelper.toDateTimeString(minutes_startTime));
|
|
|
+ Date minutes_endTime = null;
|
|
|
+ if(null != repairBill.getEndTime()){
|
|
|
+ minutes_endTime = DateHelper.parseToDate(DateHelper.toDateTimeString(repairBill.getEndTime()),"yyyy-MM-dd HH:mm"); //格式化到分
|
|
|
+ LOG.info("===>minutes_endTime:{}"+ DateHelper.toDateTimeString(minutes_endTime));
|
|
|
+ }
|
|
|
+
|
|
|
+ Date minutes_singleTime = null;
|
|
|
+ if(null != repairBill.getSingleTime()){
|
|
|
+ minutes_singleTime = DateHelper.parseToDate(DateHelper.toDateTimeString(repairBill.getSingleTime()),"yyyy-MM-dd HH:mm"); //格式化到分
|
|
|
+ LOG.info("===>minutes_singleTime:{}"+ DateHelper.toDateTimeString(minutes_singleTime));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (status == CodeConstants.COMPLETED) {
|
|
|
//已完成
|
|
|
dto.setBillStatus8Total(dto.getBillStatus8Total() + 1);
|
|
|
//已完成的总耗时
|
|
|
hours += DateHelper.getHoursBetween(repairBill.getCreateTime(), repairBill.getEndTime());
|
|
|
- completedMinutes += DateHelper.getMinutesBetween(repairBill.getCreateTime(), repairBill.getEndTime());
|
|
|
+ completedMinutes += DateHelper.getMinutesBetween(minutes_startTime, minutes_endTime);
|
|
|
|
|
|
}
|
|
|
|
|
|
//已抢单-数量
|
|
|
if(null != repairBill.getSingleTime()){
|
|
|
dto.setBillSingleTotal(dto.getBillSingleTotal() + 1);
|
|
|
- singleMinutes += DateHelper.getMinutesBetween(repairBill.getCreateTime(), repairBill.getSingleTime());
|
|
|
+ singleMinutes += DateHelper.getMinutesBetween(minutes_startTime, minutes_singleTime);
|
|
|
}
|
|
|
|
|
|
if (status == CodeConstants.UNAUDIT || status == CodeConstants.CANCEL) {
|