Browse Source
# Conflicts: # epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenCustomerGridServiceImpl.javadev_shibei_match
64 changed files with 2593 additions and 22 deletions
@ -0,0 +1,131 @@ |
|||
/** |
|||
* 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.dataaggre.dto.epmetuser; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
public class StaffPatrolDetailDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* staff_patrol_record.ID |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 前端给的序号 |
|||
*/ |
|||
private Integer serialNum; |
|||
|
|||
/** |
|||
* 上传时间,后台自动插入该时间 |
|||
*/ |
|||
private Date uploadTime; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 速度,单位m/s;开始和结束时默认0 |
|||
*/ |
|||
private String speed; |
|||
|
|||
/** |
|||
* 位置的精确度 |
|||
*/ |
|||
private String accuracy; |
|||
|
|||
/** |
|||
* 高度,单位米 |
|||
*/ |
|||
private String altitude; |
|||
|
|||
/** |
|||
* 垂直经度,单位m |
|||
*/ |
|||
private String verticalaccuracy; |
|||
|
|||
/** |
|||
* 水平经度,单位m |
|||
*/ |
|||
private String horizontalaccuracy; |
|||
|
|||
/** |
|||
* 地址;暂时不用 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,121 @@ |
|||
/** |
|||
* 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.dataaggre.dto.epmetuser; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
public class StaffPatrolRecordDTO 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,54 @@ |
|||
package com.epmet.dataaggre.dto.epmetuser.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Min; |
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Description 巡查-各人员巡查记录列表查询-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class StaffListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3381286960911634231L; |
|||
/** |
|||
* 近1一个月传1; 近3个月传3【自然月分】 |
|||
*/ |
|||
@NotNull(message = "最近时间不能为空", groups = StaffListFormDTO.Staff.class) |
|||
private Integer time; |
|||
/** |
|||
* 排序字段【巡查总次数:patrolTotal;最近开始巡查时间:latestPatrolledTime】 |
|||
*/ |
|||
@NotBlank(message = "排序条件不能为空", groups = StaffListFormDTO.Staff.class) |
|||
private String sortCode; |
|||
/** |
|||
* 网格id集合,为空则查询当前组织下所有网格数据 |
|||
*/ |
|||
private List<String> gridIds; |
|||
/** |
|||
* 工作人员姓名;可空 |
|||
*/ |
|||
private String staffName; |
|||
/** |
|||
* 页码 |
|||
* */ |
|||
@Min(1) |
|||
private Integer pageNo; |
|||
/** |
|||
* 每页多少条 |
|||
* */ |
|||
private Integer pageSize = 20; |
|||
//token中用户Id
|
|||
private String userId; |
|||
//起止巡查开始时间
|
|||
private String patrolStartTime; |
|||
public interface Staff extends CustomerClientShowGroup {} |
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
package com.epmet.dataaggre.dto.epmetuser.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 巡查-各人员巡查记录列表查询-接口入参 |
|||
* @Auth sun |
|||
*/ |
|||
@Data |
|||
public class StaffListResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 7129564173128153335L; |
|||
|
|||
//工作人员所属网格id
|
|||
private String gridId = ""; |
|||
//工作人员所在网格名称,最多显示到网格的上两级
|
|||
private String gridName = ""; |
|||
//工作人员用户id
|
|||
private String staffId = ""; |
|||
//真名
|
|||
private String staffName = ""; |
|||
//最近巡查时间[最近一次进行中或已结束巡查的开始时间]
|
|||
private String patrolStartTime = ""; |
|||
//巡查总次数
|
|||
private Integer patrolTotal = 0; |
|||
//性别0.未知,1男,2.女前端默认头像用
|
|||
private String gender = "0"; |
|||
//正在巡查中:patrolling;否则返回空字符串
|
|||
private String status = ""; |
|||
|
|||
} |
@ -0,0 +1,34 @@ |
|||
/** |
|||
* 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.dataaggre.dao.epmetuser; |
|||
|
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolDetailEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolDetailDao extends BaseDao<StaffPatrolDetailEntity> { |
|||
|
|||
} |
@ -0,0 +1,44 @@ |
|||
/** |
|||
* 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.dataaggre.dao.epmetuser; |
|||
|
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dataaggre.dto.epmetuser.form.StaffListFormDTO; |
|||
import com.epmet.dataaggre.dto.epmetuser.result.StaffListResultDTO; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolRecordEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolRecordDao extends BaseDao<StaffPatrolRecordEntity> { |
|||
|
|||
/** |
|||
* @Description 按条件查询巡查业务数据 |
|||
* @author sun |
|||
*/ |
|||
List<StaffListResultDTO> selectPatrolList(StaffListFormDTO formDTO); |
|||
|
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* 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.dataaggre.entity.epmetuser; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_detail") |
|||
public class StaffPatrolDetailEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* staff_patrol_record.ID |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 前端给的序号 |
|||
*/ |
|||
private Integer serialNum; |
|||
|
|||
/** |
|||
* 上传时间,后台自动插入该时间 |
|||
*/ |
|||
private Date uploadTime; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 速度,单位m/s;开始和结束时默认0 |
|||
*/ |
|||
private String speed; |
|||
|
|||
/** |
|||
* 位置的精确度 |
|||
*/ |
|||
private String accuracy; |
|||
|
|||
/** |
|||
* 高度,单位米 |
|||
*/ |
|||
private String altitude; |
|||
|
|||
/** |
|||
* 垂直经度,单位m |
|||
*/ |
|||
private String verticalaccuracy; |
|||
|
|||
/** |
|||
* 水平经度,单位m |
|||
*/ |
|||
private String horizontalaccuracy; |
|||
|
|||
/** |
|||
* 地址;暂时不用 |
|||
*/ |
|||
private String address; |
|||
|
|||
} |
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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.dataaggre.entity.epmetuser; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_record") |
|||
public class StaffPatrolRecordEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户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,0 +1,33 @@ |
|||
/** |
|||
* 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.dataaggre.service.epmetuser; |
|||
|
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolDetailEntity; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolDetailService extends BaseService<StaffPatrolDetailEntity> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,32 @@ |
|||
/** |
|||
* 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.dataaggre.service.epmetuser; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolRecordEntity; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolRecordService extends BaseService<StaffPatrolRecordEntity> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
/** |
|||
* 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.dataaggre.service.epmetuser.impl; |
|||
|
|||
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dataaggre.constant.DataSourceConstant; |
|||
import com.epmet.dataaggre.dao.epmetuser.StaffPatrolDetailDao; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolDetailEntity; |
|||
import com.epmet.dataaggre.service.epmetuser.StaffPatrolDetailService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@DataSource(DataSourceConstant.EPMET_USER) |
|||
@Slf4j |
|||
@Service |
|||
public class StaffPatrolDetailServiceImpl extends BaseServiceImpl<StaffPatrolDetailDao, StaffPatrolDetailEntity> implements StaffPatrolDetailService { |
|||
|
|||
|
|||
} |
@ -0,0 +1,42 @@ |
|||
/** |
|||
* 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.dataaggre.service.epmetuser.impl; |
|||
|
|||
import com.epmet.commons.dynamic.datasource.annotation.DataSource; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dataaggre.constant.DataSourceConstant; |
|||
import com.epmet.dataaggre.dao.epmetuser.StaffPatrolRecordDao; |
|||
import com.epmet.dataaggre.entity.epmetuser.StaffPatrolRecordEntity; |
|||
import com.epmet.dataaggre.service.epmetuser.StaffPatrolRecordService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@DataSource(DataSourceConstant.EPMET_USER) |
|||
@Slf4j |
|||
@Service |
|||
public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRecordDao, StaffPatrolRecordEntity> implements StaffPatrolRecordService { |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,9 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dataaggre.dao.epmetuser.StaffPatrolDetailDao"> |
|||
|
|||
|
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,52 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dataaggre.dao.epmetuser.StaffPatrolRecordDao"> |
|||
|
|||
<select id="selectPatrolList" resultType="com.epmet.dataaggre.dto.epmetuser.result.StaffListResultDTO"> |
|||
SELECT |
|||
spr.grid AS "gridId", |
|||
spr.staff_id AS "staffId", |
|||
MAX(spr.patrol_start_time) AS "patrolStartTime", |
|||
COUNT(spr.staff_id) AS "patrolTotal", |
|||
( |
|||
select |
|||
`status` |
|||
from |
|||
staff_patrol_record |
|||
where |
|||
grid = spr.grid |
|||
and staff_id = spr.staff_id |
|||
order by |
|||
patrol_start_time desc |
|||
limit 1 |
|||
) AS "status", |
|||
cs.real_name AS "staffName", |
|||
cs.gender AS "gender" |
|||
FROM |
|||
staff_patrol_record spr |
|||
LEFT JOIN customer_staff cs ON spr.staff_id = cs.user_id |
|||
WHERE |
|||
spr.del_flag = '0' |
|||
<if test='patrolStartTime != "" and patrolStartTime != null'> |
|||
AND spr.patrol_start_time <![CDATA[ >= ]]> #{patrolStartTime} |
|||
</if> |
|||
<if test='staffName != "" and staffName != null'> |
|||
AND cs.real_name LIKE CONCAT('%',#{staffName},'%') |
|||
</if> |
|||
<foreach collection="gridIds" item="gridId" open="AND( " separator=" OR " close=")"> |
|||
spr.GRID = #{gridId} |
|||
</foreach> |
|||
GROUP BY |
|||
spr.grid, spr.staff_id |
|||
<if test='sortCode != "" and sortCode != null and sortCode == "patrolTotal" '> |
|||
ORDER BY COUNT(spr.staff_id) DESC |
|||
</if> |
|||
<if test='sortCode != "" and sortCode != null and sortCode == "latestPatrolledTime" '> |
|||
ORDER BY MAX(spr.patrol_start_time) DESC |
|||
</if> |
|||
LIMIT |
|||
#{pageNo}, #{pageSize} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,131 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
public class StaffPatrolDetailDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* staff_patrol_record.ID |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 前端给的序号 |
|||
*/ |
|||
private Integer serialNum; |
|||
|
|||
/** |
|||
* 上传时间,后台自动插入该时间 |
|||
*/ |
|||
private Date uploadTime; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 速度,单位m/s;开始和结束时默认0 |
|||
*/ |
|||
private String speed; |
|||
|
|||
/** |
|||
* 位置的精确度 |
|||
*/ |
|||
private String accuracy; |
|||
|
|||
/** |
|||
* 高度,单位米 |
|||
*/ |
|||
private String altitude; |
|||
|
|||
/** |
|||
* 垂直经度,单位m |
|||
*/ |
|||
private String verticalaccuracy; |
|||
|
|||
/** |
|||
* 水平经度,单位m |
|||
*/ |
|||
private String horizontalaccuracy; |
|||
|
|||
/** |
|||
* 地址;暂时不用 |
|||
*/ |
|||
private String address; |
|||
|
|||
/** |
|||
* 删除标识 0.未删除 1.已删除 |
|||
*/ |
|||
private Integer delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,121 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
public class StaffPatrolRecordDTO 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,25 @@ |
|||
package com.epmet.user.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 2:57 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class GridManagerListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7624307754570242679L; |
|||
|
|||
public interface GridManagerListForm{} |
|||
|
|||
@NotBlank(message = "组织ID不能为空",groups = GridManagerListForm.class) |
|||
private String agencyId; |
|||
|
|||
@NotBlank(message = "行政区域编码不能为空",groups = GridManagerListForm.class) |
|||
private String areaCode; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.epmet.user.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 3:27 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PatrolTrackFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5074643104620363029L; |
|||
|
|||
public interface PatrolTrackForm{} |
|||
|
|||
@NotBlank(message = "巡查记录ID不能为空",groups = PatrolTrackForm.class) |
|||
private String staffPatrolRecId; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.user.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 3:09 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class RecordListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1034587652692011650L; |
|||
|
|||
public interface RecordListForm{} |
|||
|
|||
@NotBlank(message = "staffId不能为空",groups = RecordListForm.class) |
|||
private String staffId; |
|||
|
|||
@NotBlank(message = "网格ID不能为空",groups = RecordListForm.class) |
|||
private String gridId; |
|||
|
|||
} |
@ -0,0 +1,52 @@ |
|||
package com.epmet.user.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 2:57 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class GridManagerListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3606724812822179356L; |
|||
|
|||
/** |
|||
* 工作人员id |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 网格ID |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 正在巡查:patrolling;否则返回空字符串 |
|||
*/ |
|||
private String status; |
|||
|
|||
/** |
|||
* 网格名称,最多显示上两级 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.user.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 3:29 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class PatrolTrackResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5147586435344204616L; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.user.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2021/6/7 3:14 下午 |
|||
* @DESC |
|||
*/ |
|||
@Data |
|||
public class RecordListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1021736989973649009L; |
|||
|
|||
/** |
|||
* 巡查记录id |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 开始时间;yyyy-MM-dd HH:mm |
|||
*/ |
|||
private String patrolStartTime; |
|||
|
|||
/** |
|||
* 结束时间;yyyy-MM-dd HH:mm |
|||
*/ |
|||
private String patrolEndTime; |
|||
|
|||
/** |
|||
* 正在巡查:patrolling;已结束:end |
|||
*/ |
|||
private String status; |
|||
} |
@ -0,0 +1,66 @@ |
|||
package com.epmet.datareport.controller.user; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.datareport.service.user.StaffPatrolDetailService; |
|||
import com.epmet.user.form.GridManagerListFormDTO; |
|||
import com.epmet.user.form.PatrolTrackFormDTO; |
|||
import com.epmet.user.form.RecordListFormDTO; |
|||
import com.epmet.user.result.GridManagerListResultDTO; |
|||
import com.epmet.user.result.PatrolTrackResultDTO; |
|||
import com.epmet.user.result.RecordListResultDTO; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("staffpatrol") |
|||
public class StaffPatrolDetailController { |
|||
|
|||
@Autowired |
|||
private StaffPatrolDetailService staffPatrolService; |
|||
|
|||
/** |
|||
* @Description 001、网格员分布 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:06 下午 |
|||
*/ |
|||
@PostMapping("gridmanagerlist") |
|||
public Result<List<GridManagerListResultDTO>> gridManagerList(@RequestBody GridManagerListFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO, GridManagerListFormDTO.GridManagerListForm.class); |
|||
return new Result<List<GridManagerListResultDTO>>().ok(staffPatrolService.gridManagerList(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 002、查看巡查记录 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:25 下午 |
|||
*/ |
|||
@PostMapping("recordlist") |
|||
public Result<List<RecordListResultDTO>> recordList(@RequestBody RecordListFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO, RecordListFormDTO.RecordListForm.class); |
|||
return new Result<List<RecordListResultDTO>>().ok(staffPatrolService.recordList(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 003、巡查轨迹 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:35 下午 |
|||
*/ |
|||
@PostMapping("patroltrack") |
|||
public Result<List<PatrolTrackResultDTO>> patrolTrack(@RequestBody PatrolTrackFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO, PatrolTrackFormDTO.PatrolTrackForm.class); |
|||
return new Result<List<PatrolTrackResultDTO>>().ok(staffPatrolService.patrolTrack(formDTO)); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.datareport.controller.user; |
|||
|
|||
import com.epmet.datareport.service.user.StaffPatrolRecordService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("staffpatrolrecord") |
|||
public class StaffPatrolRecordController { |
|||
|
|||
@Autowired |
|||
private StaffPatrolRecordService staffPatrolRecordService; |
|||
|
|||
} |
@ -0,0 +1,45 @@ |
|||
/** |
|||
* 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.datareport.dao.user; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.datareport.entity.user.StaffPatrolDetailEntity; |
|||
import com.epmet.user.result.PatrolTrackResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolDetailDao extends BaseDao<StaffPatrolDetailEntity> { |
|||
|
|||
/** |
|||
* @Description 查询巡查轨迹 |
|||
* @Param staffPatrolRecId |
|||
* @author zxc |
|||
* @date 2021/6/7 5:13 下午 |
|||
*/ |
|||
List<PatrolTrackResultDTO> selectPatrolTrack(@Param("staffPatrolRecId") String staffPatrolRecId); |
|||
|
|||
} |
@ -0,0 +1,45 @@ |
|||
/** |
|||
* 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.datareport.dao.user; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.datareport.entity.user.StaffPatrolRecordEntity; |
|||
import com.epmet.user.form.RecordListFormDTO; |
|||
import com.epmet.user.result.RecordListResultDTO; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolRecordDao extends BaseDao<StaffPatrolRecordEntity> { |
|||
|
|||
/** |
|||
* @Description 巡查记录查询 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 5:29 下午 |
|||
*/ |
|||
List<RecordListResultDTO> recordList(RecordListFormDTO formDTO); |
|||
|
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* 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.datareport.entity.user; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_detail") |
|||
public class StaffPatrolDetailEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* staff_patrol_record.ID |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 前端给的序号 |
|||
*/ |
|||
private Integer serialNum; |
|||
|
|||
/** |
|||
* 上传时间,后台自动插入该时间 |
|||
*/ |
|||
private Date uploadTime; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 速度,单位m/s;开始和结束时默认0 |
|||
*/ |
|||
private String speed; |
|||
|
|||
/** |
|||
* 位置的精确度 |
|||
*/ |
|||
private String accuracy; |
|||
|
|||
/** |
|||
* 高度,单位米 |
|||
*/ |
|||
private String altitude; |
|||
|
|||
/** |
|||
* 垂直经度,单位m |
|||
*/ |
|||
private String verticalaccuracy; |
|||
|
|||
/** |
|||
* 水平经度,单位m |
|||
*/ |
|||
private String horizontalaccuracy; |
|||
|
|||
/** |
|||
* 地址;暂时不用 |
|||
*/ |
|||
private String address; |
|||
|
|||
} |
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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.datareport.entity.user; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_record") |
|||
public class StaffPatrolRecordEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户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,0 +1,46 @@ |
|||
package com.epmet.datareport.service.user; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.datareport.entity.user.StaffPatrolDetailEntity; |
|||
import com.epmet.user.form.GridManagerListFormDTO; |
|||
import com.epmet.user.form.PatrolTrackFormDTO; |
|||
import com.epmet.user.form.RecordListFormDTO; |
|||
import com.epmet.user.result.GridManagerListResultDTO; |
|||
import com.epmet.user.result.PatrolTrackResultDTO; |
|||
import com.epmet.user.result.RecordListResultDTO; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolDetailService{ |
|||
|
|||
/** |
|||
* @Description 001、网格员分布 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:06 下午 |
|||
*/ |
|||
List<GridManagerListResultDTO> gridManagerList(GridManagerListFormDTO formDTO); |
|||
|
|||
/** |
|||
* @Description 002、查看巡查记录 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:25 下午 |
|||
*/ |
|||
List<RecordListResultDTO> recordList(RecordListFormDTO formDTO); |
|||
|
|||
/** |
|||
* @Description 003、巡查轨迹 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:35 下午 |
|||
*/ |
|||
List<PatrolTrackResultDTO> patrolTrack(PatrolTrackFormDTO formDTO); |
|||
|
|||
} |
@ -0,0 +1,14 @@ |
|||
package com.epmet.datareport.service.user; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.datareport.entity.user.StaffPatrolRecordEntity; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolRecordService extends BaseService<StaffPatrolRecordEntity> { |
|||
|
|||
} |
@ -0,0 +1,77 @@ |
|||
package com.epmet.datareport.service.user.impl; |
|||
|
|||
import com.epmet.datareport.dao.user.StaffPatrolDetailDao; |
|||
import com.epmet.datareport.dao.user.StaffPatrolRecordDao; |
|||
import com.epmet.datareport.service.user.StaffPatrolDetailService; |
|||
import com.epmet.user.form.GridManagerListFormDTO; |
|||
import com.epmet.user.form.PatrolTrackFormDTO; |
|||
import com.epmet.user.form.RecordListFormDTO; |
|||
import com.epmet.user.result.GridManagerListResultDTO; |
|||
import com.epmet.user.result.PatrolTrackResultDTO; |
|||
import com.epmet.user.result.RecordListResultDTO; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.util.CollectionUtils; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Service |
|||
@Slf4j |
|||
public class StaffPatrolDetailServiceImpl implements StaffPatrolDetailService { |
|||
|
|||
@Autowired |
|||
private StaffPatrolDetailDao staffPatrolDetailDao; |
|||
|
|||
@Autowired |
|||
private StaffPatrolRecordDao staffPatrolRecordDao; |
|||
|
|||
/** |
|||
* @Description 001、网格员分布 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:06 下午 |
|||
*/ |
|||
@Override |
|||
public List<GridManagerListResultDTO> gridManagerList(GridManagerListFormDTO formDTO) { |
|||
|
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* @Description 002、查看巡查记录 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:25 下午 |
|||
*/ |
|||
@Override |
|||
public List<RecordListResultDTO> recordList(RecordListFormDTO formDTO) { |
|||
List<RecordListResultDTO> result = staffPatrolRecordDao.recordList(formDTO); |
|||
if (!CollectionUtils.isEmpty(result)){ |
|||
return result; |
|||
} |
|||
return new ArrayList<>(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 003、巡查轨迹 |
|||
* @Param formDTO |
|||
* @author zxc |
|||
* @date 2021/6/7 3:35 下午 |
|||
*/ |
|||
@Override |
|||
public List<PatrolTrackResultDTO> patrolTrack(PatrolTrackFormDTO formDTO) { |
|||
List<PatrolTrackResultDTO> results = staffPatrolDetailDao.selectPatrolTrack(formDTO.getStaffPatrolRecId()); |
|||
if (!CollectionUtils.isEmpty(results)){ |
|||
return results; |
|||
} |
|||
return new ArrayList<>(); |
|||
} |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.datareport.service.user.impl; |
|||
|
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.datareport.dao.user.StaffPatrolRecordDao; |
|||
import com.epmet.datareport.entity.user.StaffPatrolRecordEntity; |
|||
import com.epmet.datareport.service.user.StaffPatrolRecordService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Service |
|||
@Slf4j |
|||
public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRecordDao, StaffPatrolRecordEntity> implements StaffPatrolRecordService { |
|||
|
|||
|
|||
} |
@ -0,0 +1,18 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.datareport.dao.user.StaffPatrolDetailDao"> |
|||
|
|||
<!-- 查询巡查轨迹 --> |
|||
<select id="selectPatrolTrack" resultType="com.epmet.user.result.PatrolTrackResultDTO"> |
|||
SELECT |
|||
LATITUDE, |
|||
LONGITUDE |
|||
FROM |
|||
staff_patrol_detail |
|||
WHERE |
|||
STAFF_PATROL_REC_ID = #{staffPatrolRecId} |
|||
AND DEL_FLAG = 0 |
|||
ORDER BY SERIAL_NUM |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,19 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.datareport.dao.user.StaffPatrolRecordDao"> |
|||
|
|||
<!-- 巡查记录查询 --> |
|||
<select id="recordList" resultType="com.epmet.user.result.RecordListResultDTO"> |
|||
SELECT |
|||
ID AS staffPatrolRecId, |
|||
DATE_FORMAT(PATROL_START_TIME,'%Y-%m-%d %H:%i:%s') AS patrolStartTime, |
|||
DATE_FORMAT(PATROL_END_TIME,'%Y-%m-%d %H:%i:%s') AS patrolEndTime, |
|||
`STATUS` |
|||
FROM staff_patrol_record |
|||
WHERE DEL_FLAG = 0 |
|||
AND GRID_ID = #{gridId} |
|||
AND STAFF_ID = #{staffId} |
|||
ORDER BY CREATED_TIME DESC |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,18 @@ |
|||
package com.epmet.dto.screen.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* desc:修改组织中心点 |
|||
* @author liujianjun |
|||
*/ |
|||
@Data |
|||
public class CenterPointForm implements Serializable { |
|||
private static final long serialVersionUID = 6425114459278919896L; |
|||
private String title; |
|||
private List<Double> center = new ArrayList<>(); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.epmet.dto.screen.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* desc:修改组织中心点 |
|||
* @author liujianjun |
|||
*/ |
|||
@Data |
|||
public class GridCenterPointForm implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -6988009829971668860L; |
|||
|
|||
private String customerId; |
|||
|
|||
private List<CenterPointForm> centerDataList = new ArrayList<>(); |
|||
|
|||
|
|||
/* @Data |
|||
public class CenterData implements Serializable{ |
|||
|
|||
private static final long serialVersionUID = 6425114459278919896L; |
|||
private String title; |
|||
private List<Double> center = new ArrayList<>(); |
|||
}*/ |
|||
} |
@ -0,0 +1,33 @@ |
|||
/** |
|||
* 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.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.entity.StaffPatrolDetailEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolDetailDao extends BaseDao<StaffPatrolDetailEntity> { |
|||
|
|||
} |
@ -0,0 +1,33 @@ |
|||
/** |
|||
* 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.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.entity.StaffPatrolRecordEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Mapper |
|||
public interface StaffPatrolRecordDao extends BaseDao<StaffPatrolRecordEntity> { |
|||
|
|||
} |
@ -0,0 +1,101 @@ |
|||
/** |
|||
* 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.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_detail") |
|||
public class StaffPatrolDetailEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* staff_patrol_record.ID |
|||
*/ |
|||
private String staffPatrolRecId; |
|||
|
|||
/** |
|||
* 前端给的序号 |
|||
*/ |
|||
private Integer serialNum; |
|||
|
|||
/** |
|||
* 上传时间,后台自动插入该时间 |
|||
*/ |
|||
private Date uploadTime; |
|||
|
|||
/** |
|||
* 纬度 |
|||
*/ |
|||
private String latitude; |
|||
|
|||
/** |
|||
* 经度 |
|||
*/ |
|||
private String longitude; |
|||
|
|||
/** |
|||
* 速度,单位m/s;开始和结束时默认0 |
|||
*/ |
|||
private String speed; |
|||
|
|||
/** |
|||
* 位置的精确度 |
|||
*/ |
|||
private String accuracy; |
|||
|
|||
/** |
|||
* 高度,单位米 |
|||
*/ |
|||
private String altitude; |
|||
|
|||
/** |
|||
* 垂直经度,单位m |
|||
*/ |
|||
private String verticalaccuracy; |
|||
|
|||
/** |
|||
* 水平经度,单位m |
|||
*/ |
|||
private String horizontalaccuracy; |
|||
|
|||
/** |
|||
* 地址;暂时不用 |
|||
*/ |
|||
private String address; |
|||
|
|||
} |
@ -0,0 +1,91 @@ |
|||
/** |
|||
* 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.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("staff_patrol_record") |
|||
public class StaffPatrolRecordEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户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,0 +1,32 @@ |
|||
/** |
|||
* 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.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.entity.StaffPatrolDetailEntity; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolDetailService extends BaseService<StaffPatrolDetailEntity> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,33 @@ |
|||
/** |
|||
* 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.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.entity.StaffPatrolRecordEntity; |
|||
|
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
public interface StaffPatrolRecordService extends BaseService<StaffPatrolRecordEntity> { |
|||
|
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
/** |
|||
* 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.service.impl; |
|||
|
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dao.StaffPatrolDetailDao; |
|||
import com.epmet.entity.StaffPatrolDetailEntity; |
|||
import com.epmet.service.StaffPatrolDetailService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员巡查记录明细 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Service |
|||
public class StaffPatrolDetailServiceImpl extends BaseServiceImpl<StaffPatrolDetailDao, StaffPatrolDetailEntity> implements StaffPatrolDetailService { |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,36 @@ |
|||
/** |
|||
* 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.service.impl; |
|||
|
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.dao.StaffPatrolRecordDao; |
|||
import com.epmet.entity.StaffPatrolRecordEntity; |
|||
import com.epmet.service.StaffPatrolRecordService; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* 工作人员巡查主记录 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2021-06-07 |
|||
*/ |
|||
@Service |
|||
public class StaffPatrolRecordServiceImpl extends BaseServiceImpl<StaffPatrolRecordDao, StaffPatrolRecordEntity> implements StaffPatrolRecordService { |
|||
|
|||
|
|||
} |
@ -0,0 +1,29 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dao.StaffPatrolDetailDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.StaffPatrolDetailEntity" id="staffPatrolDetailMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="staffPatrolRecId" column="STAFF_PATROL_REC_ID"/> |
|||
<result property="serialNum" column="SERIAL_NUM"/> |
|||
<result property="uploadTime" column="UPLOAD_TIME"/> |
|||
<result property="latitude" column="LATITUDE"/> |
|||
<result property="longitude" column="LONGITUDE"/> |
|||
<result property="speed" column="SPEED"/> |
|||
<result property="accuracy" column="ACCURACY"/> |
|||
<result property="altitude" column="ALTITUDE"/> |
|||
<result property="verticalaccuracy" column="VERTICALACCURACY"/> |
|||
<result property="horizontalaccuracy" column="HORIZONTALACCURACY"/> |
|||
<result property="address" column="ADDRESS"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,27 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
|
|||
<mapper namespace="com.epmet.dao.StaffPatrolRecordDao"> |
|||
|
|||
<resultMap type="com.epmet.entity.StaffPatrolRecordEntity" id="staffPatrolRecordMap"> |
|||
<result property="id" column="ID"/> |
|||
<result property="customerId" column="CUSTOMER_ID"/> |
|||
<result property="grid" column="GRID"/> |
|||
<result property="gridPids" column="GRID_PIDS"/> |
|||
<result property="staffId" column="STAFF_ID"/> |
|||
<result property="agencyId" column="AGENCY_ID"/> |
|||
<result property="patrolStartTime" column="PATROL_START_TIME"/> |
|||
<result property="patrolEndTime" column="PATROL_END_TIME"/> |
|||
<result property="actrualEndTime" column="ACTRUAL_END_TIME"/> |
|||
<result property="totalTime" column="TOTAL_TIME"/> |
|||
<result property="status" column="STATUS"/> |
|||
<result property="delFlag" column="DEL_FLAG"/> |
|||
<result property="revision" column="REVISION"/> |
|||
<result property="createdBy" column="CREATED_BY"/> |
|||
<result property="createdTime" column="CREATED_TIME"/> |
|||
<result property="updatedBy" column="UPDATED_BY"/> |
|||
<result property="updatedTime" column="UPDATED_TIME"/> |
|||
</resultMap> |
|||
|
|||
|
|||
</mapper> |
Loading…
Reference in new issue