9 changed files with 397 additions and 8 deletions
@ -0,0 +1,92 @@ |
|||||
|
/** |
||||
|
* 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; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 修改、删除社会组织 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class EditSocietyOrgFormDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
/** |
||||
|
* 社会组织Id |
||||
|
*/ |
||||
|
@NotBlank(message = "社会组织Id不能为空", groups = { Edit.class, Del.class }) |
||||
|
private String societyId; |
||||
|
/** |
||||
|
* 社会组织名称 |
||||
|
*/ |
||||
|
@Length(max = 50, message = "社会组织名称不能超过50个字符",groups = {Edit.class}) |
||||
|
private String societyName; |
||||
|
/** |
||||
|
* 服务事项 |
||||
|
*/ |
||||
|
@Length(max = 1000, message = "服务事项不能超过1000个字符",groups = {Edit.class}) |
||||
|
private String serviceMatters; |
||||
|
/** |
||||
|
* 负责人 |
||||
|
*/ |
||||
|
@Length(max = 20, message = "负责人名称不能超过20个字符",groups = {Edit.class}) |
||||
|
private String personInCharge; |
||||
|
/** |
||||
|
* 负责人电话 |
||||
|
*/ |
||||
|
@Length(max = 11, message = "负责人电话不能超过11个字符",groups = {Edit.class}) |
||||
|
private String mobile; |
||||
|
/** |
||||
|
* 起始服务时间 |
||||
|
*/ |
||||
|
private Date serviceStartTime; |
||||
|
/** |
||||
|
* 终止服务时间 |
||||
|
*/ |
||||
|
private Date serviceEndTime; |
||||
|
/** |
||||
|
* 绑定管理员[组织下录入的工作人员] |
||||
|
*/ |
||||
|
private String adminStaffId; |
||||
|
/** |
||||
|
* 地址 |
||||
|
*/ |
||||
|
private String address; |
||||
|
/** |
||||
|
* 经度 |
||||
|
*/ |
||||
|
private String longitude; |
||||
|
/** |
||||
|
* 维度 |
||||
|
*/ |
||||
|
private String dimension; |
||||
|
//token中userId
|
||||
|
private String staffId; |
||||
|
|
||||
|
public interface Edit {} |
||||
|
public interface Del {} |
||||
|
|
||||
|
} |
@ -0,0 +1,51 @@ |
|||||
|
/** |
||||
|
* 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; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 社会组织列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListSocietyOrgFormDTO implements Serializable { |
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//社会组织名称
|
||||
|
private String societyName; |
||||
|
//负责人
|
||||
|
private String personInCharge; |
||||
|
//负责人电话
|
||||
|
private String mobile; |
||||
|
//起始服务时间
|
||||
|
private Date serviceStartTime; |
||||
|
//终止服务时间
|
||||
|
private Date serviceEndTime; |
||||
|
//页码
|
||||
|
@Min(1) |
||||
|
private Integer pageNo; |
||||
|
//每页多少条
|
||||
|
private Integer pageSize = 20; |
||||
|
|
||||
|
} |
@ -0,0 +1,69 @@ |
|||||
|
/** |
||||
|
* 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.result; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* @Author sun |
||||
|
* @Description 社会组织列表查询 |
||||
|
**/ |
||||
|
@Data |
||||
|
public class GetListSocietyOrgResultDTO implements Serializable { |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
//集合总条数
|
||||
|
private Integer total; |
||||
|
//社会组织信息
|
||||
|
private List<SocietyOrgList> list; |
||||
|
|
||||
|
@Data |
||||
|
public class SocietyOrgList{ |
||||
|
//所属组织Id
|
||||
|
private String agencyId; |
||||
|
//社会组织Id
|
||||
|
private String societyId; |
||||
|
//社会组织名称
|
||||
|
private String societyName; |
||||
|
//服务事项
|
||||
|
private String serviceMatters; |
||||
|
//负责人姓名
|
||||
|
private String personInCharge; |
||||
|
//负责人电话
|
||||
|
private String mobile; |
||||
|
//起始服务时间
|
||||
|
private String serviceStartTime; |
||||
|
//终止服务时间
|
||||
|
private String serviceEndTime; |
||||
|
//绑定管理员[组织下Id录入的工作人员]
|
||||
|
private String adminStaffId; |
||||
|
//绑定管理员[组织下录入的工作人员]姓名
|
||||
|
private String adminStaffName; |
||||
|
//地址
|
||||
|
private String address; |
||||
|
//经度
|
||||
|
private String longitude; |
||||
|
//维度
|
||||
|
private String dimension; |
||||
|
} |
||||
|
|
||||
|
} |
Loading…
Reference in new issue