|
|
@@ -31,11 +31,10 @@ import com.sundot.airport.common.enums.SourceTypeEnum;
|
|
31
|
31
|
import com.sundot.airport.common.exception.ServiceException;
|
|
32
|
32
|
import com.sundot.airport.common.utils.SecurityUtils;
|
|
33
|
33
|
import com.sundot.airport.common.utils.StringUtils;
|
|
34
|
|
-import com.sundot.airport.item.domain.ItemSeizureRecord;
|
|
35
|
|
-import com.sundot.airport.item.domain.ItemSeizureRecordDTO;
|
|
|
34
|
+import com.sundot.airport.item.domain.ItemLargeScreenTotalSomeDto;
|
|
36
|
35
|
import com.sundot.airport.item.domain.SimpleDutySchedule;
|
|
37
|
36
|
import com.sundot.airport.item.mapper.SimpleDutyScheduleMapper;
|
|
38
|
|
-import com.sundot.airport.item.service.IItemSeizureRecordService;
|
|
|
37
|
+import com.sundot.airport.item.service.ItemLargeScreenService;
|
|
39
|
38
|
import com.sundot.airport.system.domain.vo.PositionInfoVO;
|
|
40
|
39
|
import com.sundot.airport.system.service.IBasePositionService;
|
|
41
|
40
|
import com.sundot.airport.system.service.ISysDeptService;
|
|
|
@@ -46,6 +45,7 @@ import org.springframework.web.bind.annotation.RequestHeader;
|
|
46
|
45
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
47
|
46
|
import org.springframework.web.bind.annotation.RestController;
|
|
48
|
47
|
|
|
|
48
|
+import java.math.BigDecimal;
|
|
49
|
49
|
import java.util.ArrayList;
|
|
50
|
50
|
import java.util.Arrays;
|
|
51
|
51
|
import java.util.Calendar;
|
|
|
@@ -76,7 +76,7 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
76
|
76
|
private ISysUserService sysUserService;
|
|
77
|
77
|
|
|
78
|
78
|
@Autowired
|
|
79
|
|
- private IItemSeizureRecordService itemSeizureRecordService;
|
|
|
79
|
+ private ItemLargeScreenService itemLargeScreenService;
|
|
80
|
80
|
|
|
81
|
81
|
@Autowired
|
|
82
|
82
|
private IAttendanceCheckRecordService attendanceCheckRecordService;
|
|
|
@@ -296,7 +296,7 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
296
|
296
|
stats.setOnDutyPersonnelCount(onDutyPersonnelCount);
|
|
297
|
297
|
|
|
298
|
298
|
// 获取今日查获上报数量(安检员和班组长上报的数量,不需要完成审核)
|
|
299
|
|
- int todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "3");
|
|
|
299
|
+ BigDecimal todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "3");
|
|
300
|
300
|
stats.setTodaySeizureReportCount(todaySeizureReportCount);
|
|
301
|
301
|
|
|
302
|
302
|
// 获取今日巡检问题数
|
|
|
@@ -334,7 +334,7 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
334
|
334
|
stats.setChannelOpenStats(channelStats);
|
|
335
|
335
|
|
|
336
|
336
|
// 获取今日查获上报数量(安检员和班组长上报的数量,不需要完成审核)
|
|
337
|
|
- int todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "1");
|
|
|
337
|
+ BigDecimal todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "1");
|
|
338
|
338
|
stats.setTodaySeizureReportCount(todaySeizureReportCount);
|
|
339
|
339
|
|
|
340
|
340
|
// 获取今日巡检问题数
|
|
|
@@ -442,9 +442,9 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
442
|
442
|
/**
|
|
443
|
443
|
* 获取今日查获上报数量
|
|
444
|
444
|
*/
|
|
445
|
|
- private int getTodaySeizureReportCount(Long deptId, Date startOfDay, Date endOfDay, String type) {
|
|
|
445
|
+ private BigDecimal getTodaySeizureReportCount(Long deptId, Date startOfDay, Date endOfDay, String type) {
|
|
446
|
446
|
// 查询今日的查获上报记录数量(安检员和班组长上报的数量,不需要完成审核)
|
|
447
|
|
- ItemSeizureRecordDTO record = new ItemSeizureRecordDTO();
|
|
|
447
|
+ BaseLargeScreenQueryParamDto record = new BaseLargeScreenQueryParamDto();
|
|
448
|
448
|
switch (type) {
|
|
449
|
449
|
case "1":
|
|
450
|
450
|
record.setInspectStationId(deptId);
|
|
|
@@ -458,11 +458,11 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
458
|
458
|
default:
|
|
459
|
459
|
break;
|
|
460
|
460
|
}
|
|
461
|
|
- record.setBeginTime(startOfDay);
|
|
462
|
|
- record.setEndTime(endOfDay);
|
|
|
461
|
+ record.setStartDate(startOfDay);
|
|
|
462
|
+ record.setEndDate(endOfDay);
|
|
463
|
463
|
// 不限制process_status,即包含所有状态的记录(不需要完成审核)
|
|
464
|
|
- List<ItemSeizureRecord> seizureRecords = itemSeizureRecordService.selectItemSeizureRecordList(record);
|
|
465
|
|
- return seizureRecords.size();
|
|
|
464
|
+ ItemLargeScreenTotalSomeDto result = itemLargeScreenService.getPcTotalSome(record);
|
|
|
465
|
+ return ObjectUtil.isNotEmpty(result) ? result.getTotal() : BigDecimal.ZERO;
|
|
466
|
466
|
}
|
|
467
|
467
|
|
|
468
|
468
|
/**
|
|
|
@@ -537,7 +537,7 @@ public class AttendanceIndexStatsController extends BaseController {
|
|
537
|
537
|
stats.setChannelOpenStats(channelStats);
|
|
538
|
538
|
|
|
539
|
539
|
// 获取今日查获上报数量(安检员和班组长上报的数量,不需要完成审核)
|
|
540
|
|
- int todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "2");
|
|
|
540
|
+ BigDecimal todaySeizureReportCount = getTodaySeizureReportCount(deptId, startOfDay, endOfDay, "2");
|
|
541
|
541
|
stats.setTodaySeizureReportCount(todaySeizureReportCount);
|
|
542
|
542
|
|
|
543
|
543
|
// 获取今日巡检问题数
|