27 changed files with 1147 additions and 471 deletions
@ -0,0 +1,125 @@ |
|||||
|
/** |
||||
|
* 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.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 新增场所巡查记录 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AddPlacePatrolRecordFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 组织Id |
||||
|
*/ |
||||
|
private String agencyId; |
||||
|
|
||||
|
/** |
||||
|
* agency_id的所有上级 |
||||
|
*/ |
||||
|
private String pids; |
||||
|
|
||||
|
/** |
||||
|
* 网格Id【场所区域】 |
||||
|
*/ |
||||
|
@NotBlank(message = "场所区域不能为空", groups = {Add.class}) |
||||
|
private String gridId; |
||||
|
/** |
||||
|
* 场所类型【admin库sys_dict_data表九小场所value值】 |
||||
|
*/ |
||||
|
@NotBlank(message = "场所类型不能为空", groups = {Add.class}) |
||||
|
private String ninePlaceVal; |
||||
|
|
||||
|
/** |
||||
|
* 场所下的组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "场所名称不能为空", groups = {Add.class}) |
||||
|
private String placeOrgId; |
||||
|
|
||||
|
/** |
||||
|
* 场所下分队(place_patrolteam)表Id |
||||
|
*/ |
||||
|
@NotBlank(message = "分队名称不能为空", groups = {Add.class}) |
||||
|
private String placePatrolTeamId; |
||||
|
|
||||
|
/** |
||||
|
* 分队下检查人员Id,分号分隔 |
||||
|
*/ |
||||
|
@NotBlank(message = "检察人员不能为空", groups = {Add.class}) |
||||
|
private String inspectors; |
||||
|
|
||||
|
/** |
||||
|
* 首次巡查时间 |
||||
|
*/ |
||||
|
@NotBlank(message = "首次巡查时间不能为空", groups = {Add.class}) |
||||
|
private Date firstTime; |
||||
|
|
||||
|
/** |
||||
|
* 隐患明细 |
||||
|
*/ |
||||
|
@NotBlank(message = "隐患明细不能为空", groups = {Add.class}) |
||||
|
//@Length(max = 200, message = "隐患明细不能超过200个字符", groups = {Add.class})
|
||||
|
private String detailed; |
||||
|
|
||||
|
/** |
||||
|
* 首次检查结果【0:合格 1:不合格】 |
||||
|
*/ |
||||
|
@NotBlank(message = "首次检查结果不能为空", groups = {Add.class}) |
||||
|
private String firstResult; |
||||
|
|
||||
|
/** |
||||
|
* 拟复查时间 |
||||
|
*/ |
||||
|
private Date reviewTime; |
||||
|
|
||||
|
/** |
||||
|
* 最终检查结果【0:合格 1:不合格】初始数据默认和首次检查结果相同 |
||||
|
*/ |
||||
|
private String finalResult; |
||||
|
|
||||
|
/** |
||||
|
* 最新复查时间【初始数据默认和首次巡查时间相同】 |
||||
|
*/ |
||||
|
private Date finalTime; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
|
||||
|
|
||||
|
//token中userId
|
||||
|
private String staffId; |
||||
|
|
||||
|
public interface Add {} |
||||
|
|
||||
|
} |
@ -0,0 +1,83 @@ |
|||||
|
/** |
||||
|
* 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.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 新增巡查复查记录 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class AddPlacePatrolReviewRecordFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 客户Id |
||||
|
*/ |
||||
|
private String customerId; |
||||
|
|
||||
|
/** |
||||
|
* 巡查记录主(place_patrol_record)表Id |
||||
|
*/ |
||||
|
@NotBlank(message = "巡查记录Id不能为空", groups = {Add.class}) |
||||
|
private String placePatrolRecordId; |
||||
|
|
||||
|
/** |
||||
|
* 场所下分队(place_patrol_team)表Id |
||||
|
*/ |
||||
|
@NotBlank(message = "分队名称不能为空", groups = {Add.class}) |
||||
|
private String placePatrolTeamId; |
||||
|
|
||||
|
/** |
||||
|
* 检查人员Id,逗号分隔 |
||||
|
*/ |
||||
|
@NotBlank(message = "检查人员不能为空", groups = {Add.class}) |
||||
|
private String inspectors; |
||||
|
|
||||
|
/** |
||||
|
* 复查时间 |
||||
|
*/ |
||||
|
@NotBlank(message = "复查时间不能为空", groups = {Add.class}) |
||||
|
private Date reviewTime; |
||||
|
|
||||
|
/** |
||||
|
* 复查隐患明细 |
||||
|
*/ |
||||
|
private String detailed; |
||||
|
|
||||
|
/** |
||||
|
* 复查检查结果【0:合格 1:不合格】 |
||||
|
*/ |
||||
|
@NotBlank(message = "复查检查结果不能为空", groups = {Add.class}) |
||||
|
private String reviewResult; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
|
||||
|
public interface Add { } |
||||
|
|
||||
|
} |
@ -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.dto.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 删除、详情场所巡查记录 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class EditPlacePatrolRecordFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** |
||||
|
* 巡查记录Id |
||||
|
*/ |
||||
|
@NotBlank(message = "巡查记录Id不能为空", groups = {Del.class, Detail.class}) |
||||
|
private String placePatrolRecordId; |
||||
|
|
||||
|
|
||||
|
public interface Del { } |
||||
|
public interface Detail { } |
||||
|
|
||||
|
} |
@ -0,0 +1,77 @@ |
|||||
|
/** |
||||
|
* 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.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
import org.hibernate.validator.constraints.Length; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 修改、删除、详情巡查复查记录 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class EditPlacePatrolReviewRecordFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
/** |
||||
|
* 复查记录Id |
||||
|
*/ |
||||
|
@NotBlank(message = "复查记录Id不能为空", groups = {Edit.class, Del.class, Detail.class}) |
||||
|
private String placePatrolReviewRecordId; |
||||
|
|
||||
|
/** |
||||
|
* 场所下分队(place_patrol_team)表Id |
||||
|
*/ |
||||
|
private String placePatrolTeamId; |
||||
|
|
||||
|
/** |
||||
|
* 检查人员Id,逗号分隔 |
||||
|
*/ |
||||
|
private String inspectors; |
||||
|
|
||||
|
/** |
||||
|
* 复查时间 |
||||
|
*/ |
||||
|
private Date reviewTime; |
||||
|
|
||||
|
/** |
||||
|
* 复查隐患明细 |
||||
|
*/ |
||||
|
private String detailed; |
||||
|
|
||||
|
/** |
||||
|
* 复查检查结果【0:合格 1:不合格】 |
||||
|
*/ |
||||
|
private String reviewResult; |
||||
|
|
||||
|
/** |
||||
|
* 备注 |
||||
|
*/ |
||||
|
private String remarks; |
||||
|
|
||||
|
public interface Edit { } |
||||
|
public interface Del { } |
||||
|
public interface Detail { } |
||||
|
|
||||
|
} |
@ -0,0 +1,54 @@ |
|||||
|
/** |
||||
|
* 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.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 场所巡查记录列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListPlacePatrolRecordFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//场所名称
|
||||
|
private String placeOrgName; |
||||
|
//首次检查结果【0:合格 1:不合格】
|
||||
|
private String firstResult; |
||||
|
//场所区域【网格Id】
|
||||
|
private String gridId; |
||||
|
//场所类型【九小场所Value值】
|
||||
|
private String ninePlacsVal; |
||||
|
//最终检查结果【0:合格 1:不合格】
|
||||
|
private String finalResult; |
||||
|
//页码
|
||||
|
@Min(1) |
||||
|
private Integer pageNo; |
||||
|
//每页多少条
|
||||
|
private Integer pageSize = 20; |
||||
|
//token中客户Id
|
||||
|
private String customerId; |
||||
|
//巡查记录Id
|
||||
|
private String placePatrolRecordId; |
||||
|
|
||||
|
} |
@ -0,0 +1,48 @@ |
|||||
|
/** |
||||
|
* 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.form; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.Min; |
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 巡查复查记录列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListPlacePatrolReviewRecordFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
//巡查记录Id
|
||||
|
private String placePatrolRecordId; |
||||
|
//复查记录Id
|
||||
|
@NotBlank(message = "复查记录Id不能为空", groups = {GetData.class}) |
||||
|
private String placePatrolReviewRecordId; |
||||
|
//页码
|
||||
|
@Min(1) |
||||
|
private Integer pageNo; |
||||
|
//每页多少条
|
||||
|
private Integer pageSize = 20; |
||||
|
//token中客户Id
|
||||
|
private String customerId; |
||||
|
public interface GetData { } |
||||
|
|
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 场所巡查记录列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListPlacePatrolRecordResultDTO implements Serializable { |
||||
|
//集合总条数
|
||||
|
private Integer total; |
||||
|
//社会组织信息
|
||||
|
private List<PlacePatrolRecordDetailResultDTO> list; |
||||
|
|
||||
|
} |
@ -0,0 +1,19 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 巡查复查记录列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListPlacePatrolReviewRecordResultDTO implements Serializable { |
||||
|
//集合总条数
|
||||
|
private Integer total; |
||||
|
//社会组织信息
|
||||
|
private List<PlacePatrolReviewRecordDetailResultDTO> list; |
||||
|
|
||||
|
} |
@ -0,0 +1,50 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 场所巡查记录详情 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PlacePatrolRecordDetailResultDTO implements Serializable { |
||||
|
//所属组织Id
|
||||
|
private String agencyId; |
||||
|
//巡查Id
|
||||
|
private String placePatrolRecordId; |
||||
|
//网格Id【场所区域】
|
||||
|
private String gridId; |
||||
|
//网格名称【场所区域】
|
||||
|
private String gridName; |
||||
|
//场所下的组织Id
|
||||
|
private String placeOrgId; |
||||
|
//场所下的组织名称
|
||||
|
private String placeOrgName; |
||||
|
//场所类型【admin库sys_dict_data表九小场所value值】
|
||||
|
private String ninePlaceVal; |
||||
|
//场所类型名称
|
||||
|
private String ninePlaceName; |
||||
|
//场所下分队(place_patrolteam)表Id
|
||||
|
private String placePatrolTeamId; |
||||
|
//场所下分队名称
|
||||
|
private String placePatrolTeamName; |
||||
|
//分队下检查人员Id,分号分隔
|
||||
|
private String inspectors; |
||||
|
//分队下检查人员名称
|
||||
|
private String inspectorsNames; |
||||
|
//首次巡查时间
|
||||
|
private String firstTime; |
||||
|
//隐患明细
|
||||
|
private String detailed; |
||||
|
//首次检查结果【0:合格 1:不合格】
|
||||
|
private String firstResult; |
||||
|
//拟复查时间
|
||||
|
private String reviewTime; |
||||
|
//最新结果【0:合格 1:不合格】
|
||||
|
private String finalResult; |
||||
|
//最新检查时间
|
||||
|
private String finalTime; |
||||
|
|
||||
|
} |
@ -0,0 +1,32 @@ |
|||||
|
package com.epmet.dto.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 巡查复查记录详情 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class PlacePatrolReviewRecordDetailResultDTO implements Serializable { |
||||
|
//复查记录Id
|
||||
|
private String placePatrolReviewRecordId; |
||||
|
//巡查记录Id
|
||||
|
private String placePatrolRecordId; |
||||
|
//分队id
|
||||
|
private String placePatrolTeamId; |
||||
|
//分队名称
|
||||
|
private String placePatrolTeamName; |
||||
|
//检查人员Id,分号分隔
|
||||
|
private String inspectors; |
||||
|
//检查人员姓名,分号分隔
|
||||
|
private String inspectorsNames; |
||||
|
//复查时间
|
||||
|
private String reviewTime; |
||||
|
//复查隐患明细
|
||||
|
private String detailed; |
||||
|
//复查检查结果【0:合格 1:不合格】
|
||||
|
private String reviewResult; |
||||
|
|
||||
|
} |
Loading…
Reference in new issue