Browse Source

Merge remote-tracking branch 'remotes/origin/dev_patrol_stats' into develop

master
jianjun 4 years ago
parent
commit
025be3e627
  1. 1
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java
  2. 3
      epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql

1
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/extract/biz/impl/BizDataStatsServiceImpl.java

@ -95,7 +95,6 @@ public class BizDataStatsServiceImpl implements BizDataStatsService {
//获取所有网格员
List<CustomerGridStaffDTO> allGridMembers = getAllGridMembers(formDTO);
reloadStaffPatrolStatsData(formDTO, allGridMembers);
String currentDateId = DimIdGenerator.getDateDimId(new Date());
//初始化参数里日期的数据
initStaffPatrolTodayData(formDTO, allGridMembers);

3
epmet-user/epmet-user-server/src/main/resources/db/migration/V0.0.15__update_patrol_stats.sql

@ -0,0 +1,3 @@
ALTER TABLE `epmet_user`.`stats_staff_patrol_record_daily`
DROP INDEX `unx_staff`,
ADD UNIQUE INDEX `unx_staff`(`DATE_ID`, `STAFF_ID`, `GRID_ID`) USING BTREE;
Loading…
Cancel
Save