Browse Source
			
			
			
			
				
		# Conflicts: # epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/dao/project/ProjectDao.java # epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/ProjectService.java # epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/project/impl/ProjectServiceImpl.java # epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/project/ProjectDao.xmlfeature/evaluate
				 26 changed files with 525 additions and 99 deletions
			
			
		| @ -0,0 +1,61 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.dto.user.result; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import java.io.Serializable; | |||
| 
 | |||
| 
 | |||
| /** | |||
|  * 政府工作人员表 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2020-04-18 | |||
|  */ | |||
| @Data | |||
| public class CustomerGridStaffDTO implements Serializable { | |||
| 
 | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
| 	/** | |||
| 	 * 客户id | |||
| 	 */ | |||
| 	private String customerId; | |||
| 
 | |||
| 	/** | |||
| 	 * 网格id | |||
| 	 */ | |||
| 	private String gridId; | |||
| 
 | |||
| 	/** | |||
| 	 * 网格所属组织id | |||
| 	 */ | |||
| 	private String agencyId; | |||
| 
 | |||
| 	/** | |||
| 	 * 网格所属的所有组织id | |||
| 	 */ | |||
| 	private String gridPids; | |||
| 
 | |||
|     /** | |||
|      * 关联User表的主键Id | |||
|      */ | |||
| 	private String userId; | |||
| 
 | |||
| } | |||
| @ -0,0 +1,122 @@ | |||
| /** | |||
|  * Copyright 2018 人人开源 https://www.renren.io
 | |||
|  * <p> | |||
|  * This program is free software: you can redistribute it and/or modify | |||
|  * it under the terms of the GNU General Public License as published by | |||
|  * the Free Software Foundation, either version 3 of the License, or | |||
|  * (at your option) any later version. | |||
|  * <p> | |||
|  * This program is distributed in the hope that it will be useful, | |||
|  * but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
|  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | |||
|  * GNU General Public License for more details. | |||
|  * <p> | |||
|  * You should have received a copy of the GNU General Public License | |||
|  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | |||
|  */ | |||
| 
 | |||
| package com.epmet.dto.user.result; | |||
| 
 | |||
| import lombok.Data; | |||
| 
 | |||
| import java.io.Serializable; | |||
| import java.util.Date; | |||
| 
 | |||
| 
 | |||
| /** | |||
|  * 工作人员巡查主记录 | |||
|  * | |||
|  * @author generator generator@elink-cn.com | |||
|  * @since v1.0.0 2021-06-07 | |||
|  */ | |||
| @Data | |||
| public class StaffPatrolRecordResult implements Serializable { | |||
| 
 | |||
|     private static final long serialVersionUID = 1L; | |||
| 
 | |||
|     /** | |||
|      * 主键 | |||
|      */ | |||
| 	private String id; | |||
| 
 | |||
|     /** | |||
|      * 客户Id | |||
|      */ | |||
| 	private String customerId; | |||
| 
 | |||
|     /** | |||
|      * 网格id | |||
|      */ | |||
| 	private String grid; | |||
| 
 | |||
|     /** | |||
|      * 网格所有上级id | |||
|      */ | |||
| 	private String gridPids; | |||
| 
 | |||
|     /** | |||
|      * 工作人员用户id | |||
|      */ | |||
| 	private String staffId; | |||
| 
 | |||
|     /** | |||
|      * 工作人员所属组织id=网格所属的组织id | |||
|      */ | |||
| 	private String agencyId; | |||
| 
 | |||
|     /** | |||
|      * 巡查开始时间 | |||
|      */ | |||
| 	private Date patrolStartTime; | |||
| 
 | |||
|     /** | |||
|      * 巡查结束时间,前端传入 | |||
|      */ | |||
| 	private Date patrolEndTime; | |||
| 
 | |||
|     /** | |||
|      * 实际结束时间=操作结束巡查的时间 | |||
|      */ | |||
| 	private Date actrualEndTime; | |||
| 
 | |||
|     /** | |||
|      * 本次巡查总耗时,单位秒;结束巡查时写入 | |||
|      */ | |||
| 	private Integer totalTime; | |||
| 
 | |||
|     /** | |||
|      * 正在巡查中:patrolling;结束:end | |||
|      */ | |||
| 	private String status; | |||
| 
 | |||
|     /** | |||
|      * 删除标识 0.未删除 1.已删除 | |||
|      */ | |||
| 	private Integer delFlag; | |||
| 
 | |||
|     /** | |||
|      * 乐观锁 | |||
|      */ | |||
| 	private Integer revision; | |||
| 
 | |||
|     /** | |||
|      * 创建人 | |||
|      */ | |||
| 	private String createdBy; | |||
| 
 | |||
|     /** | |||
|      * 创建时间 | |||
|      */ | |||
| 	private Date createdTime; | |||
| 
 | |||
|     /** | |||
|      * 更新人 | |||
|      */ | |||
| 	private String updatedBy; | |||
| 
 | |||
|     /** | |||
|      * 更新时间 | |||
|      */ | |||
| 	private Date updatedTime; | |||
| 
 | |||
| } | |||
| @ -0,0 +1,26 @@ | |||
| CREATE TABLE `stats_staff_patrol_record_daily` ( | |||
|                                                    `ID` varchar(64) NOT NULL COMMENT '主键', | |||
|                                                    `CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户Id', | |||
|                                                    `DATE_ID` varchar(32) NOT NULL COMMENT '统计日期 关联日期dim表', | |||
|                                                    `WEEK_ID` varchar(32) NOT NULL COMMENT '周ID', | |||
|                                                    `MONTH_ID` varchar(32) NOT NULL COMMENT '月ID', | |||
|                                                    `QUARTER_ID` varchar(32) NOT NULL COMMENT '季ID', | |||
|                                                    `YEAR_ID` varchar(32) NOT NULL COMMENT '年ID', | |||
|                                                    `GRID_ID` varchar(64) NOT NULL COMMENT '网格id', | |||
|                                                    `AGENCY_ID` varchar(64) DEFAULT NULL COMMENT '工作人员所属组织id=网格所属的组织id', | |||
|                                                    `GRID_PIDS` varchar(512) DEFAULT NULL COMMENT '网格所有上级id', | |||
|                                                    `STAFF_ID` varchar(64) DEFAULT NULL COMMENT '工作人员用户id', | |||
|                                                    `PATROL_TOTAL` int(11) DEFAULT NULL COMMENT '巡查次数', | |||
|                                                    `TOTAL_TIME` int(11) DEFAULT NULL COMMENT '巡查时长 单位:秒', | |||
|                                                    `REPORT_PROJECT_COUNT` int(11) DEFAULT NULL COMMENT '巡查期间直接立项项目数', | |||
|                                                    `LATEST_PATROL_TIME` datetime DEFAULT NULL COMMENT '最新的巡查开始时间', | |||
|                                                    `LATEST_PATROL_STATUS` varchar(32) DEFAULT NULL COMMENT '最新的巡查状态 正在巡查中:patrolling;结束:end', | |||
|                                                    `DEL_FLAG` int(11) NOT NULL DEFAULT '0' COMMENT '删除标识 0.未删除 1.已删除', | |||
|                                                    `REVISION` int(11) NOT NULL COMMENT '乐观锁', | |||
|                                                    `CREATED_BY` varchar(64) NOT NULL COMMENT '创建人', | |||
|                                                    `CREATED_TIME` datetime NOT NULL COMMENT '创建时间', | |||
|                                                    `UPDATED_BY` varchar(64) NOT NULL COMMENT '更新人', | |||
|                                                    `UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', | |||
|                                                    PRIMARY KEY (`ID`), | |||
|                                                    UNIQUE KEY `unx_staff` (`DATE_ID`,`GRID_ID`,`STAFF_ID`) USING BTREE | |||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='[天]工作人员巡查记录统计'; | |||
					Loading…
					
					
				
		Reference in new issue