188 changed files with 8753 additions and 175 deletions
@ -0,0 +1,27 @@ |
|||
package com.epmet.commons.tools.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* 分页通用类 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/20 17:02 |
|||
*/ |
|||
@Data |
|||
public class PageFormDTO { |
|||
public interface AddUserInternalGroup { |
|||
} |
|||
|
|||
public interface AddUserShowGroup extends CustomerClientShowGroup { |
|||
} |
|||
|
|||
@NotNull(message = "页码不能为空", groups = AddUserInternalGroup.class) |
|||
private Integer pageNo; |
|||
|
|||
@NotNull(message = "每页数量不能为空", groups = AddUserInternalGroup.class) |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,19 @@ |
|||
package com.epmet.dto; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: liushaowen |
|||
* @date: 2020/11/17 10:07 |
|||
*/ |
|||
@Data |
|||
public class AccessTokenDTO implements Serializable { |
|||
private String resiToken; |
|||
|
|||
private String workToken; |
|||
|
|||
private String errMsg; |
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.epmet.utils; |
|||
|
|||
import com.alibaba.fastjson.JSON; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.epmet.commons.tools.enums.EnvEnum; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.utils.HttpClientManager; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dto.AccessTokenDTO; |
|||
import com.epmet.dto.result.CustomerTokensResultDTO; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
|
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: liushaowen |
|||
* @date: 2020/11/17 10:04 |
|||
*/ |
|||
|
|||
public class ThirdUtils { |
|||
/** |
|||
* @Description 获取AccessToken公共方法 |
|||
* @param customerId |
|||
* @return com.epmet.dto.AccessTokenDTO |
|||
* @Author liushaowen |
|||
* @Date 2020/11/17 10:09 |
|||
*/ |
|||
public static AccessTokenDTO getAccessToken(String customerId) { |
|||
EnvEnum envEnum = EnvEnum.getCurrentEnv(); |
|||
AccessTokenDTO accessToken = new AccessTokenDTO(); |
|||
|
|||
String url = "https://epmet-cloud.elinkservice.cn/api/third/pacustomer/tokenlist"; |
|||
JSONObject postData = new JSONObject(); |
|||
postData.put("customerId", customerId); |
|||
String data = HttpClientManager.getInstance().sendPostByJSON(url, JSON.toJSONString(postData)).getData(); |
|||
JSONObject toResult = JSON.parseObject(data); |
|||
Result mapToResult = ConvertUtils.mapToEntity(toResult, Result.class); |
|||
if (null != toResult.get("code")) { |
|||
mapToResult.setCode(((Integer) toResult.get("code")).intValue()); |
|||
} |
|||
if (!mapToResult.success()) { |
|||
accessToken.setErrMsg( StringUtils.isBlank(mapToResult.getMsg()) ? mapToResult.getInternalMsg() : mapToResult.getMsg()); |
|||
} |
|||
Object CustomerTokensResultDTO = mapToResult.getData(); |
|||
JSONObject json = JSON.parseObject(CustomerTokensResultDTO.toString()); |
|||
CustomerTokensResultDTO customerTokensResultDTO = ConvertUtils.mapToEntity(json, com.epmet.dto.result.CustomerTokensResultDTO.class); |
|||
accessToken.setResiToken(customerTokensResultDTO.getResiAuthorizerToken()); |
|||
accessToken.setWorkToken(customerTokensResultDTO.getWorkAuthorizerToken()); |
|||
return accessToken; |
|||
} |
|||
} |
@ -0,0 +1,133 @@ |
|||
/** |
|||
* 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 lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Data |
|||
public class IssueApplicationDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 议题名称 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 建议 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 审核状态:under_auditing:待审核;approved:通过;rejected:驳回;自动通过:auto_passed |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
/** |
|||
* 话题id |
|||
*/ |
|||
private String topicId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 网格ID 居民端议题对应一个网格Id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 审核通过后对应的 议题id |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 审核通过时填写的理由 |
|||
*/ |
|||
private String passedReason; |
|||
|
|||
/** |
|||
* 审批通过时工作人员id,自动通过此列不存储 |
|||
*/ |
|||
private String approveStaffId; |
|||
|
|||
/** |
|||
* 删除标识 0未删除、1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间:第一次提交审核的时间,注意和历史表的第一条记录时间一致 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 更新人 |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 更新时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
//拓展属性
|
|||
/** |
|||
* 申请id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 对应issue_application.UPDATED_TIME 对应的秒级时间戳 |
|||
*/ |
|||
private Long latestTime; |
|||
|
|||
} |
@ -0,0 +1,110 @@ |
|||
/** |
|||
* 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 lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Data |
|||
public class IssueApplicationHistoryDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 话题转议题申请表 issue_application.id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; |
|||
* approved:审核通过; |
|||
* rejected:驳回; |
|||
* auto_passed:自动通过 |
|||
*/ |
|||
private String actionType; |
|||
|
|||
/** |
|||
* 审核时的说明 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 工作端人员姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
/** |
|||
* 删除标识:0 未删除 1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 创建人 提交人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 修改人ID |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
//扩展属性
|
|||
/** |
|||
* =id |
|||
*/ |
|||
private String historyId; |
|||
|
|||
/** |
|||
* createdTime 对应时间戳 |
|||
*/ |
|||
private Long operateTime; |
|||
} |
@ -0,0 +1,97 @@ |
|||
/** |
|||
* 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 lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
|
|||
/** |
|||
* 居民端用户对议题建议或意见表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-18 |
|||
*/ |
|||
@Data |
|||
public class IssueSuggestionDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 主键 |
|||
*/ |
|||
private String id; |
|||
|
|||
/** |
|||
* 客户Id customer.id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 议题id |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 议题所属网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 对议题的想法 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 1公开; 0匿名 |
|||
*/ |
|||
private Integer publicFlag; |
|||
|
|||
/** |
|||
* 删除标识:0 未删除 1已删除 |
|||
*/ |
|||
private String delFlag; |
|||
|
|||
/** |
|||
* 乐观锁 |
|||
*/ |
|||
private Integer revision; |
|||
|
|||
/** |
|||
* 提建议的人 |
|||
*/ |
|||
private String createdBy; |
|||
|
|||
/** |
|||
* 创建时间 |
|||
*/ |
|||
private Date createdTime; |
|||
|
|||
/** |
|||
* 修改人ID |
|||
*/ |
|||
private String updatedBy; |
|||
|
|||
/** |
|||
* 修改时间 |
|||
*/ |
|||
private Date updatedTime; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:10 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationDetailFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1123940740606412101L; |
|||
|
|||
public interface ApplicationDetail{} |
|||
|
|||
/** |
|||
* 申请详情,在列表接口返参里有 |
|||
*/ |
|||
@NotBlank(message = "issueApplicationId不能为空",groups = {ApplicationDetail.class}) |
|||
private String issueApplicationId; |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/18 下午5:52 |
|||
*/ |
|||
@Data |
|||
public class ApplicationDetailWorkFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 2611468185891863016L; |
|||
|
|||
public interface ApplicationDetailWork{} |
|||
|
|||
@NotBlank(message = "issueApplicationId不能为空",groups = {ApplicationDetailWork.class}) |
|||
private String issueApplicationId; |
|||
|
|||
} |
@ -0,0 +1,24 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:10 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationHistoryFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1123940740606412101L; |
|||
|
|||
public interface ApplicationHistory{} |
|||
|
|||
/** |
|||
* 申请详情,在列表接口返参里有 |
|||
*/ |
|||
@NotBlank(message = "issueApplicationId不能为空",groups = {ApplicationHistory.class}) |
|||
private String issueApplicationId; |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/19 下午2:05 |
|||
*/ |
|||
@Data |
|||
public class ApplicationHistoryWorkFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -1609931427461117171L; |
|||
|
|||
public interface ApplicationHistoryWork{} |
|||
|
|||
@NotBlank(message = "议题ID不能为空",groups = {ApplicationHistoryWork.class}) |
|||
private String issueId; |
|||
} |
@ -0,0 +1,43 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:26 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationListFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -7535577263406351310L; |
|||
|
|||
public interface ApplicationList{} |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
@NotBlank(message = "小组id不能为空",groups = {ApplicationList.class}) |
|||
private String groupId; |
|||
|
|||
/** |
|||
* under_auditing:审核中,rejected:驳回 |
|||
*/ |
|||
@NotBlank(message = "审核状态不能为空",groups = {ApplicationList.class}) |
|||
private String applyStatus; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
@NotNull(message = "页码不能为空",groups = {ApplicationList.class}) |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
@NotNull(message = "每页数量不能为空",groups = {ApplicationList.class}) |
|||
private Integer pageSize; |
|||
} |
@ -0,0 +1,47 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 查询issue_application通用入参DTO |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 16:22 |
|||
*/ |
|||
@Data |
|||
public class IssueAppQueryFormDTO implements Serializable { |
|||
public interface Required{} |
|||
public interface GovFormDTO{} |
|||
/** |
|||
* 网格id |
|||
*/ |
|||
@NotBlank(message = "网格id不能为空",groups={GovFormDTO.class}) |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 审核状态:under_auditing:待审核;approved:通过;rejected:驳回 |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
/** |
|||
* 页码 |
|||
*/ |
|||
@NotNull(message = "页码不能为空",groups = {Required.class}) |
|||
private Integer pageNo; |
|||
|
|||
/** |
|||
* 每页数量 |
|||
*/ |
|||
@NotNull(message = "每页数量不能为空",groups = {Required.class}) |
|||
private Integer pageSize; |
|||
|
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 根据issue_application.id查询审核历史 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 16:55 |
|||
*/ |
|||
@Data |
|||
public class IssueApplicationIdFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 3222664262617695211L; |
|||
@NotBlank(message = "issueApplicationId不能为空") |
|||
private String issueApplicationId; |
|||
|
|||
public IssueApplicationIdFormDTO(String issueApplicationId) { |
|||
this.issueApplicationId = issueApplicationId; |
|||
} |
|||
|
|||
public IssueApplicationIdFormDTO() { |
|||
} |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 工作人员审核议题结果传参 |
|||
* @ClassName IssueAuditionFormDTO |
|||
* @Auth wangc |
|||
* @Date 2020-11-19 10:29 |
|||
*/ |
|||
@Data |
|||
public class IssueAuditionFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 5794088085884822811L; |
|||
|
|||
/** |
|||
* 申请id |
|||
*/ |
|||
@NotBlank(message = "议题申请Id不能为空") |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 同意备注 驳回理由 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* approved:审核通过, rejected:驳回 |
|||
*/ |
|||
@NotBlank(message = "审核结果不能为空") |
|||
private String actionType; |
|||
|
|||
/** |
|||
* 工作人员名称 |
|||
*/ |
|||
private String staffName; |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/11/18 17:21 |
|||
*/ |
|||
@Data |
|||
public class ParameterFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 3007336627437933281L; |
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
@NotBlank(message = "客户ID不能为空", groups = DefaultGroup.class) |
|||
private String customerId; |
|||
/** |
|||
* 已开启审核:open; 无需审核:close |
|||
*/ |
|||
@NotBlank(message = "可滞留天数不能为空", groups = AddGroup.class) |
|||
private String auditSwitch; |
|||
} |
@ -0,0 +1,36 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 查询用户对于某个议题的想法 返回一条记录 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 10:09 |
|||
*/ |
|||
@Data |
|||
public class UserIssueSuggestionFormDTO implements Serializable { |
|||
private static final long serialVersionUID = -8506264833919404944L; |
|||
/** |
|||
* 用户id |
|||
*/ |
|||
@NotBlank(message = "userId不能为空") |
|||
private String userId; |
|||
|
|||
/** |
|||
* 议题id |
|||
*/ |
|||
@NotBlank(message = "issueId不能为空") |
|||
private String issueId; |
|||
|
|||
public UserIssueSuggestionFormDTO( String userId, String issueId) { |
|||
this.userId = userId; |
|||
this.issueId = issueId; |
|||
} |
|||
|
|||
public UserIssueSuggestionFormDTO() { |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 用户发起的议题列表-审核中列表 入参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/23 9:05 |
|||
*/ |
|||
@Data |
|||
public class UserPubAuditingIssueFormDTO extends PageFormDTO implements Serializable { |
|||
private static final long serialVersionUID = 6520349189385929988L; |
|||
@NotBlank(message = "userId不能为空", groups = AddUserInternalGroup.class) |
|||
private String userId; |
|||
} |
@ -0,0 +1,54 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:12 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationDetailResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 1121268898544759693L; |
|||
|
|||
/** |
|||
* 申请ID |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 议题标题 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 所属网格名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 议题发起人 |
|||
*/ |
|||
private String issuePublisher; |
|||
|
|||
/** |
|||
* 话题相关信息 |
|||
*/ |
|||
private TopicInfoResultDTO topicInfo; |
|||
|
|||
private String gridId; |
|||
|
|||
private String topicId; |
|||
|
|||
private String userId; |
|||
|
|||
public ApplicationDetailResultDTO() { |
|||
this.issueTitle = ""; |
|||
this.gridName = ""; |
|||
this.issuePublisher = ""; |
|||
this.topicInfo = new TopicInfoResultDTO(); |
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/18 下午5:51 |
|||
*/ |
|||
@Data |
|||
public class ApplicationDetailWorkResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 7351552491300420108L; |
|||
|
|||
/** |
|||
* 申请ID |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 议题标题 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 所属网格名称 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 议题发起人 |
|||
*/ |
|||
private String issuePublisher; |
|||
|
|||
/** |
|||
* 话题相关信息 |
|||
*/ |
|||
private TopicInfoWorkResultDTO topicInfo; |
|||
|
|||
/** |
|||
* 议题建议 |
|||
*/ |
|||
private String issueSuggestion; |
|||
|
|||
/** |
|||
* 议题发起人电话 |
|||
*/ |
|||
private String issuePublisherMobile; |
|||
|
|||
|
|||
|
|||
public ApplicationDetailWorkResultDTO() { |
|||
this.issueApplicationId = ""; |
|||
this.issueTitle = ""; |
|||
this.gridName = ""; |
|||
this.issuePublisher = ""; |
|||
this.topicInfo = new TopicInfoWorkResultDTO(); |
|||
this.issuePublisherMobile = ""; |
|||
this.issueSuggestion = ""; |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 工作端:话题转议题申请详情- 审核历史查询 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 17:31 |
|||
*/ |
|||
@Data |
|||
public class ApplicationHistoryResDTO implements Serializable { |
|||
private static final long serialVersionUID = -2680819847652745103L; |
|||
/** |
|||
* =id |
|||
*/ |
|||
private String historyId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; |
|||
* approved:审核通过; |
|||
* rejected:驳回; |
|||
*/ |
|||
private String actionType; |
|||
|
|||
/** |
|||
* createdTime 对应时间戳 |
|||
*/ |
|||
private Long operateTime; |
|||
|
|||
/** |
|||
* 审核时的说明 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 工作端人员姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
|
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:21 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationHistoryResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 3235513565728092491L; |
|||
|
|||
/** |
|||
* 审核历史表id |
|||
*/ |
|||
private String historyId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; approved:已通过, rejected:已驳回 |
|||
*/ |
|||
private String actionType; |
|||
|
|||
/** |
|||
* 操作时间戳 |
|||
*/ |
|||
private Long operateTime; |
|||
|
|||
/** |
|||
* 驳回理由或者审核通过理由 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 工作人员姓名;居民端不展示此列 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
} |
@ -0,0 +1,53 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/19 下午2:08 |
|||
*/ |
|||
@Data |
|||
public class ApplicationHistoryWorkResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6310909348304378438L; |
|||
|
|||
/** |
|||
* 审核历史表id |
|||
*/ |
|||
private String historyId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; approved:已通过, rejected:已驳回 |
|||
*/ |
|||
private String actionType; |
|||
|
|||
/** |
|||
* 操作时间戳 |
|||
*/ |
|||
private Long operateTime; |
|||
|
|||
/** |
|||
* 驳回理由或者审核通过理由 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 工作人员姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
@JsonIgnore |
|||
private String userId; |
|||
|
|||
public ApplicationHistoryWorkResultDTO() { |
|||
this.historyId = ""; |
|||
this.actionType = ""; |
|||
this.operateTime = NumConstant.ZERO_L; |
|||
this.reason = ""; |
|||
this.staffName = ""; |
|||
} |
|||
} |
@ -0,0 +1,48 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:31 上午 |
|||
*/ |
|||
@Data |
|||
public class ApplicationListResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -4042091778432048631L; |
|||
|
|||
/** |
|||
* 申请id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 议题标题 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 建议 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 对应issue_application.UPDATED_TIME 对应的秒级时间戳 |
|||
*/ |
|||
private Long time; |
|||
|
|||
/** |
|||
* 审核状态。under_auditing:审核中,approved:通过,rejected:驳回 |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
public ApplicationListResultDTO() { |
|||
this.issueTitle = ""; |
|||
this.suggestion = ""; |
|||
this.time = NumConstant.ZERO_L; |
|||
this.applyStatus = ""; |
|||
} |
|||
} |
@ -0,0 +1,44 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.validator.group.CustomerClientShowGroup; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @Description 话题首次提交转议题时的返参 注意:只是首次,二次提交统一调用重新编辑提交接口 |
|||
* @ClassName FirstTopicShiftedToIssueApplicationResultDTO |
|||
* @Auth wangc |
|||
* @Date 2020-11-18 16:50 |
|||
*/ |
|||
@Data |
|||
public class FirstTopicShiftedToIssueApplicationResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 329020301144053656L; |
|||
|
|||
public interface SwitchRequiredGroup extends CustomerClientShowGroup{} |
|||
|
|||
public interface AllowAuditionGroup extends CustomerClientShowGroup{} |
|||
|
|||
public interface ForbidAuditionGroup extends CustomerClientShowGroup{} |
|||
|
|||
/** |
|||
* 已开启审核:open; 无需审核:close |
|||
*/ |
|||
@NotBlank(message = "审核开关不能为空",groups = {SwitchRequiredGroup.class,AllowAuditionGroup.class,ForbidAuditionGroup.class}) |
|||
private String auditSwitch; |
|||
|
|||
/** |
|||
* 如果无需审核,直接生成议题,返回议题Id |
|||
* 如果需要审核,该属性为空 |
|||
*/ |
|||
@NotBlank(message = "议题Id不能为空",groups = {ForbidAuditionGroup.class}) |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 如果需要审核,生成议题申请记录,返回申请Id |
|||
* 如果无需审核,该属性为空 |
|||
*/ |
|||
@NotBlank(message = "议题审核Id不能为空",groups = {AllowAuditionGroup.class}) |
|||
private String issueApplicationId; |
|||
} |
@ -0,0 +1,41 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 待审核|| 已驳回 列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 17:22 |
|||
*/ |
|||
@Data |
|||
public class IssueApplicationResDTO implements Serializable { |
|||
private static final long serialVersionUID = -1452471134719960837L; |
|||
/** |
|||
* 申请id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* 议题名称 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 对应issue_application.UPDATED_TIME 对应的秒级时间戳 |
|||
*/ |
|||
private Long latestTime; |
|||
|
|||
/** |
|||
* 建议 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 审核状态。under_auditing:审核中,approved:通过,rejected:驳回 |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
} |
@ -0,0 +1,55 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 议题建议列表 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 14:00 |
|||
*/ |
|||
@Data |
|||
public class IssueSuggestionResDTO implements Serializable { |
|||
private static final long serialVersionUID = -6217415454610258644L; |
|||
/** |
|||
* 建议id |
|||
*/ |
|||
private String suggestionId; |
|||
|
|||
/** |
|||
* 建议内容 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 建议时间戳 |
|||
*/ |
|||
private Long publishTime; |
|||
|
|||
/** |
|||
* true 公开 false 匿名 |
|||
*/ |
|||
private Boolean publicFlag; |
|||
|
|||
/** |
|||
* 用户头像url |
|||
*/ |
|||
private String headPhoto; |
|||
|
|||
/** |
|||
* 用户显示名称 |
|||
*/ |
|||
private String userShowName; |
|||
|
|||
/** |
|||
* 态度 - opposition(反对)support(赞成) |
|||
*/ |
|||
private String aititude; |
|||
|
|||
@JsonIgnore |
|||
private String userId; |
|||
|
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/11/18 17:25 |
|||
*/ |
|||
@Data |
|||
public class ParameterResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 2557066213008529836L; |
|||
private String auditSwitch; |
|||
} |
@ -0,0 +1,22 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 保存居民端用户对议题的建议或意见 返回议题id, 建议id |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 13:14 |
|||
*/ |
|||
@Data |
|||
public class SaveIssueSuggestionResultDTO implements Serializable { |
|||
private static final long serialVersionUID = 8199657776260756910L; |
|||
private String issueId; |
|||
/** |
|||
* issue_suggestion表主键 |
|||
*/ |
|||
private String suggestionId; |
|||
|
|||
} |
@ -0,0 +1,50 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:14 上午 |
|||
*/ |
|||
@Data |
|||
public class TopicInfoResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3445869627210569553L; |
|||
|
|||
/** |
|||
* 话题id |
|||
*/ |
|||
private String topicId; |
|||
|
|||
/** |
|||
* 话题发表人昵称 |
|||
*/ |
|||
private String publishedUser; |
|||
|
|||
/** |
|||
* 话题发表时间戳 |
|||
*/ |
|||
private Long publishedTime; |
|||
|
|||
/** |
|||
* 话题内容 |
|||
*/ |
|||
private String topicContent; |
|||
|
|||
/** |
|||
* 话题图片集合 |
|||
*/ |
|||
private List<String> topicImgs; |
|||
|
|||
public TopicInfoResultDTO() { |
|||
this.publishedUser = ""; |
|||
this.publishedTime = NumConstant.ZERO_L; |
|||
this.topicContent = ""; |
|||
this.topicImgs = new ArrayList<>(); |
|||
} |
|||
} |
@ -0,0 +1,61 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import com.epmet.commons.tools.constant.NumConstant; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/17 10:14 上午 |
|||
*/ |
|||
@Data |
|||
public class TopicInfoWorkResultDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = -3445869627210569553L; |
|||
|
|||
/** |
|||
* 话题id |
|||
*/ |
|||
private String topicId; |
|||
|
|||
/** |
|||
* 话题发表人昵称 |
|||
*/ |
|||
private String publishedUser; |
|||
|
|||
/** |
|||
* 话题发表时间戳 |
|||
*/ |
|||
private Long publishedTime; |
|||
|
|||
/** |
|||
* 话题内容 |
|||
*/ |
|||
private String topicContent; |
|||
|
|||
/** |
|||
* 话题图片集合 |
|||
*/ |
|||
private List<String> topicImgs; |
|||
|
|||
/** |
|||
* 话题发表人电话 |
|||
*/ |
|||
private String topicPublishMobile; |
|||
|
|||
@JsonIgnore |
|||
private String topicUserId; |
|||
|
|||
public TopicInfoWorkResultDTO() { |
|||
this.topicId = ""; |
|||
this.publishedUser = ""; |
|||
this.publishedTime = NumConstant.ZERO_L; |
|||
this.topicContent = ""; |
|||
this.topicImgs = new ArrayList<>(); |
|||
this.topicPublishMobile = ""; |
|||
} |
|||
} |
@ -0,0 +1,62 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 用户发起的议题列表-审核中列表 返参 |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/20 16:23 |
|||
*/ |
|||
@Data |
|||
public class UserPubAuditingIssueResDTO implements Serializable { |
|||
private static final long serialVersionUID = -6452959808958252729L; |
|||
|
|||
/** |
|||
* 申请id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; rejected:驳回 |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
/** |
|||
* 议题标题 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 转议题时输入的建议 |
|||
*/ |
|||
private String issueSuggestion; |
|||
|
|||
/** |
|||
* 网格名称: 组织-网格 |
|||
*/ |
|||
private String gridName; |
|||
|
|||
/** |
|||
* 小组名称 |
|||
*/ |
|||
private String groupName; |
|||
|
|||
/** |
|||
* 发起时间戳 |
|||
*/ |
|||
private Long publishTime; |
|||
|
|||
|
|||
/** |
|||
* 网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
} |
@ -0,0 +1,167 @@ |
|||
/** |
|||
* 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.controller; |
|||
|
|||
import com.epmet.commons.tools.dto.form.PageFormDTO; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.dto.IssueApplicationDTO; |
|||
import com.epmet.dto.form.IssueAppQueryFormDTO; |
|||
import com.epmet.dto.form.UserPubAuditingIssueFormDTO; |
|||
import com.epmet.dto.result.IssueApplicationResDTO; |
|||
import com.epmet.dto.result.UserPubAuditingIssueResDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationDetailFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationHistoryFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationListFormDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationHistoryResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationListResultDTO; |
|||
import com.epmet.service.IssueApplicationService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("issueapplication") |
|||
public class IssueApplicationController { |
|||
|
|||
@Autowired |
|||
private IssueApplicationService issueApplicationService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<IssueApplicationDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IssueApplicationDTO> page = issueApplicationService.page(params); |
|||
return new Result<PageData<IssueApplicationDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<IssueApplicationDTO> get(@PathVariable("id") String id){ |
|||
IssueApplicationDTO data = issueApplicationService.get(id); |
|||
return new Result<IssueApplicationDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody IssueApplicationDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
issueApplicationService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody IssueApplicationDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
issueApplicationService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
issueApplicationService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@PostMapping("applicationdetail") |
|||
public Result<ApplicationDetailResultDTO> applicationDetail(@RequestBody ApplicationDetailFormDTO applicationDetailFormDTO){ |
|||
return new Result<ApplicationDetailResultDTO>().ok(issueApplicationService.applicationDetail(applicationDetailFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 话题转议题申请详情- 审核历史查询 |
|||
* @Param applicationHistoryFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@PostMapping("applicationhistory") |
|||
public Result<ApplicationHistoryResultDTO> applicationHistory(@RequestBody ApplicationHistoryFormDTO applicationHistoryFormDTO){ |
|||
return new Result<ApplicationHistoryResultDTO>().ok(issueApplicationService.applicationHistory(applicationHistoryFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请列表 |
|||
* @Param applicationListFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@PostMapping("applicationlist") |
|||
public Result<List<ApplicationListResultDTO>> applicationList(@RequestBody ApplicationListFormDTO applicationListFormDTO){ |
|||
return new Result<List<ApplicationListResultDTO>>().ok(issueApplicationService.applicationList(applicationListFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.IssueApplicationDTO>> |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 分页按条件查询issue_application |
|||
* @Date 2020/11/18 16:26 |
|||
**/ |
|||
@PostMapping("listissueapp") |
|||
public Result<List<IssueApplicationResDTO>> listIssueApp(@RequestBody IssueAppQueryFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class); |
|||
List<IssueApplicationResDTO> list=issueApplicationService.listIssueApp(formDTO); |
|||
return new Result<List<IssueApplicationResDTO>>().ok(list); |
|||
} |
|||
/** |
|||
* @Description 根据条件查询议题申请信息 |
|||
* @param params |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.IssueApplicationDTO>> |
|||
* @author wangc |
|||
* @date 2020.11.18 15:47 |
|||
*/ |
|||
@GetMapping("list") |
|||
public Result<List<IssueApplicationDTO>> list(@RequestParam Map<String, Object> params){ |
|||
//此处限制必须传条件,不允许全查
|
|||
AssertUtils.isMapEmpty(params); |
|||
return new Result<List<IssueApplicationDTO>>().ok(issueApplicationService.list(params)); |
|||
} |
|||
|
|||
/** |
|||
* @param fomrDTO |
|||
* @author yinzuomei |
|||
* @description 查询某个用户发起的议题列表-审核中列表(待审核+已驳回) |
|||
* @Date 2020/11/23 9:35 |
|||
**/ |
|||
@PostMapping("queryuserpubauditingissues") |
|||
public Result<List<UserPubAuditingIssueResDTO>> queryUserPubAuditingIssues(@RequestBody UserPubAuditingIssueFormDTO fomrDTO) { |
|||
ValidatorUtils.validateEntity(fomrDTO, PageFormDTO.AddUserInternalGroup.class); |
|||
return new Result<List<UserPubAuditingIssueResDTO>>().ok(issueApplicationService.queryUserPubAuditingIssues(fomrDTO)); |
|||
} |
|||
} |
@ -0,0 +1,98 @@ |
|||
/** |
|||
* 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.controller; |
|||
|
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.AssertUtils; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import com.epmet.commons.tools.validator.group.UpdateGroup; |
|||
import com.epmet.dto.IssueApplicationHistoryDTO; |
|||
import com.epmet.dto.form.IssueApplicationIdFormDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryResDTO; |
|||
import com.epmet.service.IssueApplicationHistoryService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("issueapplicationhistory") |
|||
public class IssueApplicationHistoryController { |
|||
|
|||
@Autowired |
|||
private IssueApplicationHistoryService issueApplicationHistoryService; |
|||
|
|||
@GetMapping("page") |
|||
public Result<PageData<IssueApplicationHistoryDTO>> page(@RequestParam Map<String, Object> params){ |
|||
PageData<IssueApplicationHistoryDTO> page = issueApplicationHistoryService.page(params); |
|||
return new Result<PageData<IssueApplicationHistoryDTO>>().ok(page); |
|||
} |
|||
|
|||
@GetMapping("{id}") |
|||
public Result<IssueApplicationHistoryDTO> get(@PathVariable("id") String id){ |
|||
IssueApplicationHistoryDTO data = issueApplicationHistoryService.get(id); |
|||
return new Result<IssueApplicationHistoryDTO>().ok(data); |
|||
} |
|||
|
|||
@PostMapping |
|||
public Result save(@RequestBody IssueApplicationHistoryDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
|||
issueApplicationHistoryService.save(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@PutMapping |
|||
public Result update(@RequestBody IssueApplicationHistoryDTO dto){ |
|||
//效验数据
|
|||
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); |
|||
issueApplicationHistoryService.update(dto); |
|||
return new Result(); |
|||
} |
|||
|
|||
@DeleteMapping |
|||
public Result delete(@RequestBody String[] ids){ |
|||
//效验数据
|
|||
AssertUtils.isArrayEmpty(ids, "id"); |
|||
issueApplicationHistoryService.delete(ids); |
|||
return new Result(); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 根据issue_application.id查询审核历史 |
|||
* @Date 2020/11/18 16:57 |
|||
**/ |
|||
@PostMapping("querybyissueapplicationid") |
|||
public Result<List<ApplicationHistoryResDTO>> queryByIssueApplicationId(@RequestBody IssueApplicationIdFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
return new Result<List<ApplicationHistoryResDTO>>().ok(issueApplicationHistoryService.queryByIssueApplicationId(formDTO.getIssueApplicationId())); |
|||
} |
|||
} |
@ -0,0 +1,122 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.annotation.RequirePermission; |
|||
import com.epmet.commons.tools.enums.RequirePermissionEnum; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.constant.IssueConstant; |
|||
import com.epmet.dto.form.*; |
|||
import com.epmet.dto.result.ApplicationDetailWorkResultDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryResDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryWorkResultDTO; |
|||
import com.epmet.dto.result.IssueApplicationResDTO; |
|||
import com.epmet.service.IssueApplicationHistoryService; |
|||
import com.epmet.service.IssueApplicationService; |
|||
import com.epmet.service.IssueService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 基层治理-议题管理 议题审核相关API |
|||
* |
|||
* @author yinzuomei@elink-cn.com |
|||
* @date 2020/11/18 17:13 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("issueaudit") |
|||
public class IssueAuditController { |
|||
@Autowired |
|||
private IssueApplicationService issueApplicationService; |
|||
@Autowired |
|||
private IssueApplicationHistoryService issueApplicationHistoryService; |
|||
@Autowired |
|||
private IssueService issueService; |
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 待审核|| 已驳回 列表 |
|||
* @Date 2020/11/18 17:28 |
|||
* @description 待审核列表 |
|||
* @Date 2020/11/18 17:28 |
|||
**/ |
|||
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_GRASSROOTS_ISSUE_AUDITING_LIST) |
|||
@PostMapping("underauditinglist") |
|||
public Result<List<IssueApplicationResDTO>> queryUnderAuditingList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|||
formDTO.setApplyStatus(IssueConstant.UNDER_AUDITING); |
|||
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class,IssueAppQueryFormDTO.GovFormDTO.class); |
|||
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 已驳回 列表 |
|||
* @Date 2020/11/18 17:28 |
|||
**/ |
|||
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_GRASSROOTS_ISSUE_REJECTED_LIST) |
|||
@PostMapping("rejectedlist") |
|||
public Result<List<IssueApplicationResDTO>> queryRejectedList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|||
formDTO.setApplyStatus(IssueConstant.REJECTED); |
|||
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class,IssueAppQueryFormDTO.GovFormDTO.class); |
|||
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @return com.epmet.commons.tools.utils.Result<java.util.List<com.epmet.dto.result.IssueApplicationResDTO>> |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 通用查询列表接口,对其他服务开放 |
|||
* @Date 2020/11/19 13:30 |
|||
**/ |
|||
@PostMapping("applicationlist") |
|||
public Result<List<IssueApplicationResDTO>> queryIssueAppliationList(@RequestBody IssueAppQueryFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO,IssueAppQueryFormDTO.Required.class); |
|||
return new Result<List<IssueApplicationResDTO>>().ok(issueApplicationService.listIssueApp(formDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 话题转议题申请详情- 审核历史查询 |
|||
* @Date 2020/11/18 17:40 |
|||
**/ |
|||
@PostMapping("applicationhistory") |
|||
public Result<List<ApplicationHistoryResDTO>> queryApplicationHistory(@RequestBody IssueApplicationIdFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
return new Result<List<ApplicationHistoryResDTO>>().ok(issueApplicationHistoryService.queryByIssueApplicationId(formDTO.getIssueApplicationId())); |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
@PostMapping("applicationdetail") |
|||
public Result<ApplicationDetailWorkResultDTO> applicationDetailWork(@RequestBody ApplicationDetailWorkFormDTO applicationDetailWorkFormDTO){ |
|||
ValidatorUtils.validateEntity(applicationDetailWorkFormDTO, ApplicationDetailWorkFormDTO.ApplicationDetailWork.class); |
|||
return new Result<ApplicationDetailWorkResultDTO>().ok(issueApplicationHistoryService.applicationDetailWork(applicationDetailWorkFormDTO)); |
|||
} |
|||
|
|||
/** |
|||
* @Description 议题详情- 根据issueId查询审核历史 |
|||
* @Param applicationHistoryWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_GRASSROOTS_ISSUE_DETAIL) |
|||
@PostMapping("issueaudithistory") |
|||
public Result<List<ApplicationHistoryWorkResultDTO>> applicationHistoryWork(@RequestBody ApplicationHistoryWorkFormDTO applicationHistoryWorkFormDTO){ |
|||
ValidatorUtils.validateEntity(applicationHistoryWorkFormDTO,ApplicationHistoryWorkFormDTO.ApplicationHistoryWork.class); |
|||
return new Result<List<ApplicationHistoryWorkResultDTO>>().ok(issueApplicationHistoryService.applicationHistoryWork(applicationHistoryWorkFormDTO)); |
|||
} |
|||
|
|||
@PostMapping("audit") |
|||
public Result<String> audit(@LoginUser TokenDto token, @RequestBody IssueAuditionFormDTO param){ |
|||
return new Result<String>().ok(issueService.audit(token,param)); |
|||
} |
|||
} |
@ -0,0 +1,87 @@ |
|||
/** |
|||
* 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.controller; |
|||
|
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.validator.ValidatorUtils; |
|||
import com.epmet.dto.IssueSuggestionDTO; |
|||
import com.epmet.dto.form.EvaluationListFormDTO; |
|||
import com.epmet.dto.form.UserIssueSuggestionFormDTO; |
|||
import com.epmet.dto.result.IssueSuggestionResDTO; |
|||
import com.epmet.dto.result.SaveIssueSuggestionResultDTO; |
|||
import com.epmet.service.IssueSuggestionService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PostMapping; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* 居民端用户对议题建议或意见表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-18 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("issuesuggestion") |
|||
public class IssueSuggestionController { |
|||
|
|||
@Autowired |
|||
private IssueSuggestionService issueSuggestionService; |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询用户对于某个议题的想法 返回一条记录 |
|||
* @Date 2020/11/18 10:12 |
|||
**/ |
|||
@PostMapping("queryuserissuesuggestion") |
|||
public Result<IssueSuggestionDTO> queryUserIssueSuggestion(@RequestBody UserIssueSuggestionFormDTO formDTO){ |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
IssueSuggestionDTO issueSuggestionDTO=issueSuggestionService.queryUserIssueSuggestion(formDTO); |
|||
return new Result<IssueSuggestionDTO>().ok(issueSuggestionDTO); |
|||
} |
|||
|
|||
/** |
|||
* @param dto |
|||
* @author yinzuomei |
|||
* @description 保存居民端用户对议题的建议或意见 |
|||
* @Date 2020/11/18 13:15 |
|||
**/ |
|||
@PostMapping("save") |
|||
public Result<SaveIssueSuggestionResultDTO> saveIssueSuggestion(@RequestBody IssueSuggestionDTO dto) { |
|||
SaveIssueSuggestionResultDTO resultDTO = issueSuggestionService.saveIssueSuggestion(dto); |
|||
return new Result<SaveIssueSuggestionResultDTO>().ok(resultDTO); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 议题建议列表 |
|||
* @Date 2020/11/18 14:15 |
|||
**/ |
|||
@PostMapping("list") |
|||
public Result<List<IssueSuggestionResDTO>> listIssueSug(@RequestBody EvaluationListFormDTO formDTO) { |
|||
ValidatorUtils.validateEntity(formDTO); |
|||
List<IssueSuggestionResDTO> list = issueSuggestionService.listIssueSug(formDTO); |
|||
return new Result<List<IssueSuggestionResDTO>>().ok(list); |
|||
} |
|||
} |
@ -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.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dto.IssueApplicationDTO; |
|||
import com.epmet.dto.form.IssueAppQueryFormDTO; |
|||
import com.epmet.dto.form.UserPubAuditingIssueFormDTO; |
|||
import com.epmet.dto.result.IssueApplicationResDTO; |
|||
import com.epmet.dto.result.UserPubAuditingIssueResDTO; |
|||
import com.epmet.entity.IssueApplicationEntity; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationDetailFormDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO; |
|||
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 2020-11-17 |
|||
*/ |
|||
@Mapper |
|||
public interface IssueApplicationDao extends BaseDao<IssueApplicationEntity> { |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
ApplicationDetailResultDTO applicationDetail(ApplicationDetailFormDTO applicationDetailFormDTO); |
|||
|
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 分页按条件查询issue_application |
|||
* @Date 2020/11/18 16:28 |
|||
**/ |
|||
List<IssueApplicationResDTO> selectList(IssueAppQueryFormDTO formDTO); |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询某个用户发起的议题列表-审核中列表(待审核+已驳回) |
|||
* @Date 2020/11/23 9:37 |
|||
**/ |
|||
List<UserPubAuditingIssueResDTO> selectUserPubAuditingIssues(UserPubAuditingIssueFormDTO formDTO); |
|||
|
|||
List<IssueApplicationDTO> selectByTopicId(@Param("topicId") String topicId); |
|||
} |
@ -0,0 +1,53 @@ |
|||
/** |
|||
* 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.dto.result.ApplicationHistoryResDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryWorkResultDTO; |
|||
import com.epmet.entity.IssueApplicationHistoryEntity; |
|||
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 2020-11-17 |
|||
*/ |
|||
@Mapper |
|||
public interface IssueApplicationHistoryDao extends BaseDao<IssueApplicationHistoryEntity> { |
|||
|
|||
/** |
|||
* @param issueApplicationId |
|||
* @author yinzuomei |
|||
* @description 根据issue_application.id查询审核历史 |
|||
* @Date 2020/11/18 16:59 |
|||
**/ |
|||
List<ApplicationHistoryResDTO> selectListByIssueApplicationId(String issueApplicationId); |
|||
|
|||
/** |
|||
* @Description 查询议题审核历史 |
|||
* @Param issueId |
|||
* @author zxc |
|||
* @date 2020/11/20 上午9:39 |
|||
*/ |
|||
List<ApplicationHistoryWorkResultDTO> applicationHistoryWork(@Param("issueId")String issueId); |
|||
} |
@ -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.dao; |
|||
|
|||
import com.epmet.commons.mybatis.dao.BaseDao; |
|||
import com.epmet.dto.IssueSuggestionDTO; |
|||
import com.epmet.dto.form.UserIssueSuggestionFormDTO; |
|||
import com.epmet.dto.result.IssueSuggestionResDTO; |
|||
import com.epmet.entity.IssueSuggestionEntity; |
|||
import org.apache.ibatis.annotations.Mapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 居民端用户对议题建议或意见表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-18 |
|||
*/ |
|||
@Mapper |
|||
public interface IssueSuggestionDao extends BaseDao<IssueSuggestionEntity> { |
|||
|
|||
/** |
|||
* @return com.epmet.dto.IssueSuggestionDTO |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询用户对于某个议题的想法 返回一条记录 |
|||
* @Date 2020/11/18 10:12 |
|||
**/ |
|||
IssueSuggestionDTO selectUserIssueSuggestion(UserIssueSuggestionFormDTO formDTO); |
|||
|
|||
/** |
|||
* @param issueId |
|||
* @author yinzuomei |
|||
* @description 查询议题建议 |
|||
* @Date 2020/11/18 14:27 |
|||
**/ |
|||
List<IssueSuggestionResDTO> selectListIssueSugByIssueId(String issueId); |
|||
} |
@ -0,0 +1,88 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("issue_application") |
|||
public class IssueApplicationEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 议题名称 |
|||
*/ |
|||
private String issueTitle; |
|||
|
|||
/** |
|||
* 建议 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 审核状态:under_auditing:待审核;approved:通过;rejected:驳回;自动通过:auto_passed |
|||
*/ |
|||
private String applyStatus; |
|||
|
|||
/** |
|||
* 话题id |
|||
*/ |
|||
private String topicId; |
|||
|
|||
/** |
|||
* 小组id |
|||
*/ |
|||
private String groupId; |
|||
|
|||
/** |
|||
* 网格ID 居民端议题对应一个网格Id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 审核通过后对应的 议题id |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 审核通过时填写的理由 |
|||
*/ |
|||
private String passedReason; |
|||
|
|||
/** |
|||
* 审批通过时工作人员id,自动通过此列不存储 |
|||
*/ |
|||
private String approveStaffId; |
|||
|
|||
} |
@ -0,0 +1,66 @@ |
|||
/** |
|||
* 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; |
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("issue_application_history") |
|||
public class IssueApplicationHistoryEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 话题转议题申请表 issue_application.id |
|||
*/ |
|||
private String issueApplicationId; |
|||
|
|||
/** |
|||
* under_auditing:待审核; |
|||
* approved:审核通过; |
|||
* rejected:驳回; |
|||
* auto_passed:自动通过 |
|||
*/ |
|||
private String actionType; |
|||
|
|||
/** |
|||
* 审核时的说明 |
|||
*/ |
|||
private String reason; |
|||
|
|||
/** |
|||
* 工作端人员姓名 |
|||
*/ |
|||
private String staffName; |
|||
|
|||
} |
@ -0,0 +1,66 @@ |
|||
/** |
|||
* 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 2020-11-18 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("issue_suggestion") |
|||
public class IssueSuggestionEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 客户Id customer.id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
/** |
|||
* 议题id |
|||
*/ |
|||
private String issueId; |
|||
|
|||
/** |
|||
* 议题所属网格id |
|||
*/ |
|||
private String gridId; |
|||
|
|||
/** |
|||
* 对议题的想法 |
|||
*/ |
|||
private String suggestion; |
|||
|
|||
/** |
|||
* 1公开; 0匿名 |
|||
*/ |
|||
private Integer publicFlag; |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* 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.redis; |
|||
|
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Component |
|||
public class IssueApplicationHistoryRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,47 @@ |
|||
/** |
|||
* 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.redis; |
|||
|
|||
import com.epmet.commons.tools.redis.RedisUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Component |
|||
public class IssueApplicationRedis { |
|||
@Autowired |
|||
private RedisUtils redisUtils; |
|||
|
|||
public void delete(Object[] ids) { |
|||
|
|||
} |
|||
|
|||
public void set(){ |
|||
|
|||
} |
|||
|
|||
public String get(String id){ |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,124 @@ |
|||
/** |
|||
* 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.commons.tools.page.PageData; |
|||
import com.epmet.dto.IssueApplicationHistoryDTO; |
|||
import com.epmet.dto.form.ApplicationDetailWorkFormDTO; |
|||
import com.epmet.dto.form.ApplicationHistoryWorkFormDTO; |
|||
import com.epmet.dto.result.ApplicationDetailWorkResultDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryResDTO; |
|||
import com.epmet.dto.result.ApplicationHistoryWorkResultDTO; |
|||
import com.epmet.entity.IssueApplicationHistoryEntity; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
public interface IssueApplicationHistoryService extends BaseService<IssueApplicationHistoryEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IssueApplicationHistoryDTO> |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
PageData<IssueApplicationHistoryDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* |
|||
* @param params |
|||
* @return java.util.List<IssueApplicationHistoryDTO> |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
List<IssueApplicationHistoryDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IssueApplicationHistoryDTO |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
IssueApplicationHistoryDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void save(IssueApplicationHistoryDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void update(IssueApplicationHistoryDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void delete(String[] ids); |
|||
|
|||
/** |
|||
* @param issueApplicationId |
|||
* @author yinzuomei |
|||
* @description 根据issue_application.id查询审核历史 |
|||
* @Date 2020/11/18 16:57 |
|||
**/ |
|||
List<ApplicationHistoryResDTO> queryByIssueApplicationId(String issueApplicationId); |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
ApplicationDetailWorkResultDTO applicationDetailWork(ApplicationDetailWorkFormDTO applicationDetailWorkFormDTO); |
|||
|
|||
/** |
|||
* @Description 议题详情- 根据issueId查询审核历史 |
|||
* @Param applicationHistoryWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
List<ApplicationHistoryWorkResultDTO> applicationHistoryWork(ApplicationHistoryWorkFormDTO applicationHistoryWorkFormDTO); |
|||
} |
@ -0,0 +1,146 @@ |
|||
/** |
|||
* 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.commons.tools.page.PageData; |
|||
import com.epmet.dto.IssueApplicationDTO; |
|||
import com.epmet.dto.form.IssueAppQueryFormDTO; |
|||
import com.epmet.dto.form.UserPubAuditingIssueFormDTO; |
|||
import com.epmet.dto.result.IssueApplicationResDTO; |
|||
import com.epmet.dto.result.UserPubAuditingIssueResDTO; |
|||
import com.epmet.entity.IssueApplicationEntity; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationDetailFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationHistoryFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationListFormDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationHistoryResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationListResultDTO; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
public interface IssueApplicationService extends BaseService<IssueApplicationEntity> { |
|||
|
|||
/** |
|||
* 默认分页 |
|||
* |
|||
* @param params |
|||
* @return PageData<IssueApplicationDTO> |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
PageData<IssueApplicationDTO> page(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 默认查询 |
|||
* 该方法已被重写,因此直接加载XML里的mapper,而不进行切面增强,因此改写,逻辑同selectByTopicId |
|||
* @param params |
|||
* @return java.util.List<IssueApplicationDTO> |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
List<IssueApplicationDTO> list(Map<String, Object> params); |
|||
|
|||
/** |
|||
* 单条查询 |
|||
* |
|||
* @param id |
|||
* @return IssueApplicationDTO |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
IssueApplicationDTO get(String id); |
|||
|
|||
/** |
|||
* 默认保存 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void save(IssueApplicationDTO dto); |
|||
|
|||
/** |
|||
* 默认更新 |
|||
* |
|||
* @param dto |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void update(IssueApplicationDTO dto); |
|||
|
|||
/** |
|||
* 批量删除 |
|||
* |
|||
* @param ids |
|||
* @return void |
|||
* @author generator |
|||
* @date 2020-11-17 |
|||
*/ |
|||
void delete(String[] ids); |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
ApplicationDetailResultDTO applicationDetail(ApplicationDetailFormDTO applicationDetailFormDTO); |
|||
|
|||
/** |
|||
* @Description 话题转议题申请详情- 审核历史查询 |
|||
* @Param applicationHistoryFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
ApplicationHistoryResultDTO applicationHistory(ApplicationHistoryFormDTO applicationHistoryFormDTO); |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请列表 |
|||
* @Param applicationListFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
List<ApplicationListResultDTO> applicationList(ApplicationListFormDTO applicationListFormDTO); |
|||
|
|||
/** |
|||
* @return java.util.List<com.epmet.dto.IssueApplicationDTO> |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 分页按条件查询issue_application |
|||
* @Date 2020/11/18 16:26 |
|||
**/ |
|||
List<IssueApplicationResDTO> listIssueApp(IssueAppQueryFormDTO formDTO); |
|||
|
|||
/** |
|||
* @param fomrDTO |
|||
* @author yinzuomei |
|||
* @description 查询某个用户发起的议题列表-审核中列表(待审核+已驳回) |
|||
* @Date 2020/11/23 9:35 |
|||
**/ |
|||
List<UserPubAuditingIssueResDTO> queryUserPubAuditingIssues(UserPubAuditingIssueFormDTO fomrDTO); |
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.epmet.service; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/18 下午5:42 |
|||
*/ |
|||
public interface IssueAuditService { |
|||
} |
@ -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.service; |
|||
|
|||
import com.epmet.commons.mybatis.service.BaseService; |
|||
import com.epmet.dto.IssueSuggestionDTO; |
|||
import com.epmet.dto.form.EvaluationListFormDTO; |
|||
import com.epmet.dto.form.UserIssueSuggestionFormDTO; |
|||
import com.epmet.dto.result.IssueSuggestionResDTO; |
|||
import com.epmet.dto.result.SaveIssueSuggestionResultDTO; |
|||
import com.epmet.entity.IssueSuggestionEntity; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 居民端用户对议题建议或意见表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-18 |
|||
*/ |
|||
public interface IssueSuggestionService extends BaseService<IssueSuggestionEntity> { |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询用户对于某个议题的想法 返回一条记录 |
|||
* @Date 2020/11/18 10:12 |
|||
**/ |
|||
IssueSuggestionDTO queryUserIssueSuggestion(UserIssueSuggestionFormDTO formDTO); |
|||
|
|||
/** |
|||
* @param dto |
|||
* @author yinzuomei |
|||
* @description 保存居民端用户对议题的建议或意见 |
|||
* @Date 2020/11/18 13:16 |
|||
**/ |
|||
SaveIssueSuggestionResultDTO saveIssueSuggestion(IssueSuggestionDTO dto); |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 议题建议列表 |
|||
* @Date 2020/11/18 14:16 |
|||
**/ |
|||
List<IssueSuggestionResDTO> listIssueSug(EvaluationListFormDTO formDTO); |
|||
} |
@ -0,0 +1,175 @@ |
|||
/** |
|||
* 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.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.dao.IssueApplicationHistoryDao; |
|||
import com.epmet.dto.IssueApplicationHistoryDTO; |
|||
import com.epmet.dto.form.ApplicationDetailWorkFormDTO; |
|||
import com.epmet.dto.form.ApplicationHistoryWorkFormDTO; |
|||
import com.epmet.dto.form.UserIdsFormDTO; |
|||
import com.epmet.dto.result.*; |
|||
import com.epmet.entity.IssueApplicationHistoryEntity; |
|||
import com.epmet.feign.EpmetUserOpenFeignClient; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationDetailFormDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationDetailCopyResultDTO; |
|||
import com.epmet.resi.group.feign.ResiGroupOpenFeignClient; |
|||
import com.epmet.service.IssueApplicationHistoryService; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
import org.springframework.util.CollectionUtils; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 话题转议题审核历史表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Service |
|||
public class IssueApplicationHistoryServiceImpl extends BaseServiceImpl<IssueApplicationHistoryDao, IssueApplicationHistoryEntity> implements IssueApplicationHistoryService { |
|||
|
|||
@Autowired |
|||
private ResiGroupOpenFeignClient resiGroupOpenFeignClient; |
|||
@Autowired |
|||
private EpmetUserOpenFeignClient epmetUserOpenFeignClient; |
|||
|
|||
@Override |
|||
public PageData<IssueApplicationHistoryDTO> page(Map<String, Object> params) { |
|||
IPage<IssueApplicationHistoryEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IssueApplicationHistoryDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
public List<IssueApplicationHistoryDTO> list(Map<String, Object> params) { |
|||
List<IssueApplicationHistoryEntity> entityList = baseDao.selectList(getWrapper(params)); |
|||
|
|||
return ConvertUtils.sourceToTarget(entityList, IssueApplicationHistoryDTO.class); |
|||
} |
|||
|
|||
private QueryWrapper<IssueApplicationHistoryEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
|
|||
QueryWrapper<IssueApplicationHistoryEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
|
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IssueApplicationHistoryDTO get(String id) { |
|||
IssueApplicationHistoryEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IssueApplicationHistoryDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IssueApplicationHistoryDTO dto) { |
|||
IssueApplicationHistoryEntity entity = ConvertUtils.sourceToTarget(dto, IssueApplicationHistoryEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IssueApplicationHistoryDTO dto) { |
|||
IssueApplicationHistoryEntity entity = ConvertUtils.sourceToTarget(dto, IssueApplicationHistoryEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
/** |
|||
* @param issueApplicationId |
|||
* @author yinzuomei |
|||
* @description 根据issue_application.id查询审核历史 |
|||
* @Date 2020/11/18 16:57 |
|||
**/ |
|||
@Override |
|||
public List<ApplicationHistoryResDTO> queryByIssueApplicationId(String issueApplicationId) { |
|||
return baseDao.selectListByIssueApplicationId(issueApplicationId); |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
@Override |
|||
public ApplicationDetailWorkResultDTO applicationDetailWork(ApplicationDetailWorkFormDTO applicationDetailWorkFormDTO) { |
|||
ApplicationDetailFormDTO formDTO = new ApplicationDetailFormDTO(); |
|||
formDTO.setIssueApplicationId(applicationDetailWorkFormDTO.getIssueApplicationId()); |
|||
Result<ApplicationDetailCopyResultDTO> result = resiGroupOpenFeignClient.applicationDetail(formDTO); |
|||
if (!result.success()){ |
|||
throw new RenException("工作端查询待审核||已驳回 申请详情失败......"); |
|||
} |
|||
if (null == result.getData()){ |
|||
return new ApplicationDetailWorkResultDTO(); |
|||
} |
|||
ApplicationDetailWorkResultDTO applicationDetailWorkResultDTO = ConvertUtils.sourceToTarget(result.getData(), ApplicationDetailWorkResultDTO.class); |
|||
TopicInfoWorkResultDTO topicInfoWorkResultDTO = ConvertUtils.sourceToTarget(result.getData().getTopicInfo(), TopicInfoWorkResultDTO.class); |
|||
applicationDetailWorkResultDTO.setTopicInfo(topicInfoWorkResultDTO); |
|||
return applicationDetailWorkResultDTO; |
|||
} |
|||
|
|||
/** |
|||
* @Description 议题详情- 根据issueId查询审核历史 |
|||
* @Param applicationHistoryWorkFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/19 下午2:26 |
|||
*/ |
|||
@Override |
|||
public List<ApplicationHistoryWorkResultDTO> applicationHistoryWork(ApplicationHistoryWorkFormDTO applicationHistoryWorkFormDTO) { |
|||
List<ApplicationHistoryWorkResultDTO> result = baseDao.applicationHistoryWork(applicationHistoryWorkFormDTO.getIssueId()); |
|||
if (CollectionUtils.isEmpty(result)){ |
|||
return new ArrayList<>(); |
|||
} |
|||
List<String> userIds = result.stream().map(m -> m.getUserId()).collect(Collectors.toList()); |
|||
UserIdsFormDTO form = new UserIdsFormDTO(); |
|||
form.setUserIds(userIds); |
|||
Result<List<StaffSinGridResultDTO>> listResult = epmetUserOpenFeignClient.getStaffInfoList(form); |
|||
if (!listResult.success()){ |
|||
throw new RenException("议题审核历史查询用户基本信息失败......"); |
|||
} |
|||
result.forEach(r -> listResult.getData().stream().filter(u -> r.getUserId().equals(u.getStaffId())).forEach(u -> r.setStaffName(u.getStaffName()))); |
|||
return result; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,178 @@ |
|||
/** |
|||
* 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.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|||
import com.baomidou.mybatisplus.core.metadata.IPage; |
|||
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl; |
|||
import com.epmet.commons.tools.constant.FieldConstant; |
|||
import com.epmet.commons.tools.page.PageData; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.dao.IssueApplicationDao; |
|||
import com.epmet.dto.IssueApplicationDTO; |
|||
import com.epmet.dto.form.IssueAppQueryFormDTO; |
|||
import com.epmet.dto.form.UserPubAuditingIssueFormDTO; |
|||
import com.epmet.dto.result.IssueApplicationResDTO; |
|||
import com.epmet.dto.result.UserPubAuditingIssueResDTO; |
|||
import com.epmet.entity.IssueApplicationEntity; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationDetailFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationHistoryFormDTO; |
|||
import com.epmet.resi.group.dto.group.form.ApplicationListFormDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationHistoryResultDTO; |
|||
import com.epmet.resi.group.dto.group.result.ApplicationListResultDTO; |
|||
import com.epmet.service.IssueApplicationService; |
|||
import com.github.pagehelper.PageHelper; |
|||
import com.epmet.utils.ModuleConstants; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
|
|||
import java.util.Arrays; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* 话题转议题申请表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-17 |
|||
*/ |
|||
@Service |
|||
public class IssueApplicationServiceImpl extends BaseServiceImpl<IssueApplicationDao, IssueApplicationEntity> implements IssueApplicationService { |
|||
|
|||
@Override |
|||
public PageData<IssueApplicationDTO> page(Map<String, Object> params) { |
|||
IPage<IssueApplicationEntity> page = baseDao.selectPage( |
|||
getPage(params, FieldConstant.CREATED_TIME, false), |
|||
getWrapper(params) |
|||
); |
|||
return getPageData(page, IssueApplicationDTO.class); |
|||
} |
|||
|
|||
/** |
|||
* @Description 该方法已被重写,因此直接加载XML里的mapper,而不进行切面增强,因此改写,逻辑同selectByTopicId |
|||
* @param params |
|||
* @return java.util.List<com.epmet.dto.IssueApplicationDTO> |
|||
* @author wangc |
|||
* @date 2020.11.30 09:53 |
|||
*/ |
|||
@Override |
|||
public List<IssueApplicationDTO> list(Map<String, Object> params) { |
|||
//List<IssueApplicationEntity> entityList = baseDao.selectList(getWrapper(params));
|
|||
return baseDao.selectByTopicId((String)params.get(ModuleConstants.FIELD_JAVA_TOPIC_ID)); |
|||
//return ConvertUtils.sourceToTarget(entityList, IssueApplicationDTO.class);
|
|||
} |
|||
|
|||
private QueryWrapper<IssueApplicationEntity> getWrapper(Map<String, Object> params){ |
|||
String id = (String)params.get(FieldConstant.ID_HUMP); |
|||
String topicId = (String)params.get(ModuleConstants.FIELD_JAVA_TOPIC_ID); |
|||
|
|||
QueryWrapper<IssueApplicationEntity> wrapper = new QueryWrapper<>(); |
|||
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id); |
|||
wrapper.eq(StringUtils.isNotBlank(topicId), ModuleConstants.FIELD_SQL_TOPIC_ID, topicId); |
|||
return wrapper; |
|||
} |
|||
|
|||
@Override |
|||
public IssueApplicationDTO get(String id) { |
|||
IssueApplicationEntity entity = baseDao.selectById(id); |
|||
return ConvertUtils.sourceToTarget(entity, IssueApplicationDTO.class); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void save(IssueApplicationDTO dto) { |
|||
IssueApplicationEntity entity = ConvertUtils.sourceToTarget(dto, IssueApplicationEntity.class); |
|||
insert(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void update(IssueApplicationDTO dto) { |
|||
IssueApplicationEntity entity = ConvertUtils.sourceToTarget(dto, IssueApplicationEntity.class); |
|||
updateById(entity); |
|||
} |
|||
|
|||
@Override |
|||
@Transactional(rollbackFor = Exception.class) |
|||
public void delete(String[] ids) { |
|||
// 逻辑删除(@TableLogic 注解)
|
|||
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @return java.util.List<com.epmet.dto.IssueApplicationDTO> |
|||
* @author yinzuomei |
|||
* @description 分页按条件查询issue_application |
|||
* @Date 2020/11/18 16:26 |
|||
**/ |
|||
@Override |
|||
public List<IssueApplicationResDTO> listIssueApp(IssueAppQueryFormDTO formDTO) { |
|||
PageHelper.startPage(formDTO.getPageNo(),formDTO.getPageSize()); |
|||
return baseDao.selectList(formDTO); |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询某个用户发起的议题列表-审核中列表(待审核+已驳回) |
|||
* @Date 2020/11/23 9:35 |
|||
**/ |
|||
@Override |
|||
public List<UserPubAuditingIssueResDTO> queryUserPubAuditingIssues(UserPubAuditingIssueFormDTO formDTO) { |
|||
PageHelper.startPage(formDTO.getPageNo(),formDTO.getPageSize()); |
|||
return baseDao.selectUserPubAuditingIssues(formDTO); |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请详情 |
|||
* @Param applicationDetailFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@Override |
|||
public ApplicationDetailResultDTO applicationDetail(ApplicationDetailFormDTO applicationDetailFormDTO) { |
|||
ApplicationDetailResultDTO applicationDetailResultDTO = baseDao.applicationDetail(applicationDetailFormDTO); |
|||
return applicationDetailResultDTO; |
|||
} |
|||
|
|||
/** |
|||
* @Description 话题转议题申请详情- 审核历史查询 |
|||
* @Param applicationHistoryFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@Override |
|||
public ApplicationHistoryResultDTO applicationHistory(ApplicationHistoryFormDTO applicationHistoryFormDTO) { |
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* @Description 待审核||已驳回 申请列表 |
|||
* @Param applicationListFormDTO |
|||
* @author zxc |
|||
* @date 2020/11/17 10:45 上午 |
|||
*/ |
|||
@Override |
|||
public List<ApplicationListResultDTO> applicationList(ApplicationListFormDTO applicationListFormDTO) { |
|||
return null; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,17 @@ |
|||
package com.epmet.service.impl; |
|||
|
|||
import com.epmet.service.IssueAuditService; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @DateTime 2020/11/18 下午5:42 |
|||
*/ |
|||
@Service |
|||
@Slf4j |
|||
public class IssueAuditServiceImpl implements IssueAuditService { |
|||
|
|||
|
|||
|
|||
} |
@ -0,0 +1,173 @@ |
|||
/** |
|||
* 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.commons.tools.constant.StrConstant; |
|||
import com.epmet.commons.tools.exception.EpmetErrorCode; |
|||
import com.epmet.commons.tools.exception.RenException; |
|||
import com.epmet.commons.tools.scan.param.TextScanParamDTO; |
|||
import com.epmet.commons.tools.scan.param.TextTaskDTO; |
|||
import com.epmet.commons.tools.scan.result.SyncScanResult; |
|||
import com.epmet.commons.tools.utils.ConvertUtils; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.commons.tools.utils.ScanContentUtils; |
|||
import com.epmet.dao.IssueSuggestionDao; |
|||
import com.epmet.dao.IssueVoteDetailDao; |
|||
import com.epmet.dto.IssueDTO; |
|||
import com.epmet.dto.IssueSuggestionDTO; |
|||
import com.epmet.dto.IssueVoteDetailDTO; |
|||
import com.epmet.dto.form.EvaluationListFormDTO; |
|||
import com.epmet.dto.form.UserIssueSuggestionFormDTO; |
|||
import com.epmet.dto.form.UserResiInfoListFormDTO; |
|||
import com.epmet.dto.result.IssueSuggestionResDTO; |
|||
import com.epmet.dto.result.SaveIssueSuggestionResultDTO; |
|||
import com.epmet.dto.result.UserResiInfoResultDTO; |
|||
import com.epmet.entity.IssueSuggestionEntity; |
|||
import com.epmet.feign.EpmetUserFeignClient; |
|||
import com.epmet.service.IssueService; |
|||
import com.epmet.service.IssueSuggestionService; |
|||
import com.github.pagehelper.PageHelper; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.commons.collections4.CollectionUtils; |
|||
import org.apache.commons.lang3.StringUtils; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.beans.factory.annotation.Value; |
|||
import org.springframework.stereotype.Service; |
|||
|
|||
import java.util.*; |
|||
import java.util.function.Function; |
|||
import java.util.stream.Collectors; |
|||
|
|||
/** |
|||
* 居民端用户对议题建议或意见表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-11-18 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
public class IssueSuggestionServiceImpl extends BaseServiceImpl<IssueSuggestionDao, IssueSuggestionEntity> implements IssueSuggestionService { |
|||
@Autowired |
|||
private IssueService issueService; |
|||
@Value("${openapi.scan.server.url}") |
|||
private String scanApiUrl; |
|||
@Value("${openapi.scan.method.textSyncScan}") |
|||
private String textSyncScanMethod; |
|||
@Autowired |
|||
private EpmetUserFeignClient epmetUserFeignClient; |
|||
@Autowired |
|||
private IssueVoteDetailDao issueVoteDetailDao; |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 查询用户对于某个议题的想法 返回一条记录 |
|||
* @Date 2020/11/18 10:12 |
|||
**/ |
|||
@Override |
|||
public IssueSuggestionDTO queryUserIssueSuggestion(UserIssueSuggestionFormDTO formDTO) { |
|||
return baseDao.selectUserIssueSuggestion(formDTO); |
|||
} |
|||
|
|||
/** |
|||
* @param dto |
|||
* @author yinzuomei |
|||
* @description 保存居民端用户对议题的建议或意见 |
|||
* @Date 2020/11/18 13:16 |
|||
**/ |
|||
@Override |
|||
public SaveIssueSuggestionResultDTO saveIssueSuggestion(IssueSuggestionDTO dto) { |
|||
//是否表决过
|
|||
IssueVoteDetailDTO issueVoteDetailDTO = issueVoteDetailDao.selectUserIssueDet(dto.getCreatedBy(), dto.getIssueId()); |
|||
if(null==issueVoteDetailDTO){ |
|||
throw new RenException(EpmetErrorCode.VOTE_ISSUE_PLEASE.getCode()); |
|||
} |
|||
//校验建议内容
|
|||
TextScanParamDTO textScanParamDTO = new TextScanParamDTO(); |
|||
TextTaskDTO taskDTO = new TextTaskDTO(); |
|||
taskDTO.setDataId(UUID.randomUUID().toString().replace("-", "")); |
|||
taskDTO.setContent(dto.getSuggestion()); |
|||
textScanParamDTO.getTasks().add(taskDTO); |
|||
Result<SyncScanResult> textSyncScanResult = ScanContentUtils.textSyncScan(scanApiUrl.concat(textSyncScanMethod), textScanParamDTO); |
|||
if (!textSyncScanResult.success()) { |
|||
log.warn("居民端用户对议题发表建议,内容审核服务返回失败"); |
|||
throw new RenException(EpmetErrorCode.SERVER_ERROR.getCode()); |
|||
} else { |
|||
if (!textSyncScanResult.getData().isAllPass()) { |
|||
throw new RenException(EpmetErrorCode.TEXT_SCAN_FAILED.getCode()); |
|||
} |
|||
} |
|||
//赋值网格id
|
|||
IssueDTO issueDTO = issueService.get(dto.getIssueId()); |
|||
if (null == issueDTO) { |
|||
throw new RenException(String.format("根据议题id%s,没有找到议题信息", dto.getIssueId())); |
|||
} |
|||
dto.setGridId(issueDTO.getGridId()); |
|||
dto.setCustomerId(issueDTO.getCustomerId()); |
|||
//插入
|
|||
IssueSuggestionEntity entity = ConvertUtils.sourceToTarget(dto, IssueSuggestionEntity.class); |
|||
insert(entity); |
|||
SaveIssueSuggestionResultDTO resultDTO = new SaveIssueSuggestionResultDTO(); |
|||
resultDTO.setIssueId(dto.getIssueId()); |
|||
resultDTO.setSuggestionId(entity.getId()); |
|||
return resultDTO; |
|||
} |
|||
|
|||
/** |
|||
* @param formDTO |
|||
* @author yinzuomei |
|||
* @description 议题建议列表 |
|||
* @Date 2020/11/18 14:16 |
|||
**/ |
|||
@Override |
|||
public List<IssueSuggestionResDTO> listIssueSug(EvaluationListFormDTO formDTO) { |
|||
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); |
|||
List<IssueSuggestionResDTO> list = baseDao.selectListIssueSugByIssueId(formDTO.getIssueId()); |
|||
//用户信息公开的userId集合
|
|||
Set<String> userIds = new HashSet<>(); |
|||
list.forEach(issueSuggestion -> { |
|||
if (issueSuggestion.getPublicFlag()) { |
|||
userIds.add(issueSuggestion.getUserId()); |
|||
} |
|||
IssueVoteDetailDTO issueVoteDetailDTO = issueVoteDetailDao.selectUserIssueDet(issueSuggestion.getUserId(), formDTO.getIssueId()); |
|||
issueSuggestion.setAititude(null != issueVoteDetailDTO ? issueVoteDetailDTO.getAttitude() : StrConstant.EPMETY_STR); |
|||
}); |
|||
//查询这部分人的基本信息
|
|||
if (!CollectionUtils.isEmpty(userIds)) { |
|||
Result<List<UserResiInfoResultDTO>> userInfoRes = epmetUserFeignClient.getUserResiInfoList(new UserResiInfoListFormDTO(new ArrayList<>(userIds))); |
|||
if (userInfoRes.success() && !CollectionUtils.isEmpty(userInfoRes.getData())) { |
|||
Map<String, UserResiInfoResultDTO> userBaseInfoMap = userInfoRes.getData().stream().collect(Collectors.toMap(UserResiInfoResultDTO::getUserId, Function.identity())); |
|||
//赋值
|
|||
list.forEach(issueSuggestionInfo -> { |
|||
if (issueSuggestionInfo.getPublicFlag()) { |
|||
UserResiInfoResultDTO userInfo = userBaseInfoMap.get(issueSuggestionInfo.getUserId()); |
|||
if (null != userInfo && StringUtils.isNotBlank(userInfo.getHeadPhoto())) { |
|||
issueSuggestionInfo.setHeadPhoto(userInfo.getHeadPhoto()); |
|||
} |
|||
if (null != userInfo && StringUtils.isNotBlank(userInfo.getShowName())) { |
|||
issueSuggestionInfo.setUserShowName(userInfo.getShowName()); |
|||
} |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
return list; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,37 @@ |
|||
drop table if exists issue_application; |
|||
CREATE TABLE `issue_application` ( |
|||
`ID` varchar(64) NOT NULL COMMENT '主键', |
|||
`CUSTOMER_ID` varchar(32) NOT NULL COMMENT '客户ID', |
|||
`ISSUE_TITLE` varchar(128) NOT NULL COMMENT '议题名称 ', |
|||
`SUGGESTION` varchar(1024) NOT NULL COMMENT '建议', |
|||
`APPLY_STATUS` varchar(32) NOT NULL COMMENT '审核状态:under_auditing:待审核;approved:通过;rejected:驳回', |
|||
`TOPIC_ID` varchar(32) NOT NULL COMMENT '话题id', |
|||
`GROUP_ID` varchar(64) NOT NULL COMMENT '小组id', |
|||
`GRID_ID` varchar(32) NOT NULL COMMENT '网格ID 居民端议题对应一个网格Id', |
|||
`ISSUE_ID` varchar(64) DEFAULT NULL COMMENT '审核通过后对应的 议题id', |
|||
`PASSED_REASON` varchar(1024) DEFAULT NULL COMMENT '审核通过时填写的理由', |
|||
`DEL_FLAG` varchar(1) NOT NULL DEFAULT '0' COMMENT '删除标识 0未删除、1已删除', |
|||
`REVISION` int(11) NOT NULL DEFAULT '0' COMMENT '乐观锁', |
|||
`CREATED_BY` varchar(32) NOT NULL COMMENT '创建人', |
|||
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间:第一次提交审核的时间,注意和历史表的第一条记录时间一致', |
|||
`UPDATED_BY` varchar(32) NOT NULL COMMENT '更新人', |
|||
`UPDATED_TIME` datetime NOT NULL COMMENT '更新时间', |
|||
PRIMARY KEY (`ID`) |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='话题转议题申请表'; |
|||
|
|||
drop table if exists issue_application_history; |
|||
CREATE TABLE `issue_application_history` ( |
|||
`ID` varchar(64) NOT NULL COMMENT '主键', |
|||
`CUSTOMER_ID` varchar(32) NOT NULL COMMENT '客户ID', |
|||
`ISSUE_APPLICATION_ID` varchar(64) NOT NULL COMMENT '话题转议题申请表 issue_application.id', |
|||
`ACTION_TYPE` varchar(32) NOT NULL COMMENT 'under_auditing:提交审核;\r\napproved:审核通过,\r\nrejected:驳回', |
|||
`REASON` varchar(1024) DEFAULT NULL COMMENT '审核时的说明', |
|||
`STAFF_NAME` varchar(255) DEFAULT NULL COMMENT '工作端人员姓名', |
|||
`DEL_FLAG` varchar(1) NOT NULL DEFAULT '0' COMMENT '删除标识:0 未删除 1已删除', |
|||
`REVISION` int(11) NOT NULL DEFAULT '0' COMMENT '乐观锁', |
|||
`CREATED_BY` varchar(64) NOT NULL COMMENT '创建人 提交人', |
|||
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间', |
|||
`UPDATED_BY` varchar(64) NOT NULL COMMENT '修改人ID', |
|||
`UPDATED_TIME` datetime NOT NULL COMMENT '修改时间', |
|||
PRIMARY KEY (`ID`) |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='话题转议题审核历史表'; |
@ -0,0 +1,16 @@ |
|||
drop table if exists issue_suggestion; |
|||
CREATE TABLE `issue_suggestion` ( |
|||
`ID` varchar(64) NOT NULL COMMENT '主键', |
|||
`CUSTOMER_ID` varchar(64) NOT NULL COMMENT '客户Id customer.id', |
|||
`ISSUE_ID` varchar(64) NOT NULL COMMENT '议题id', |
|||
`GRID_ID` varchar(64) NOT NULL COMMENT '议题所属网格id', |
|||
`SUGGESTION` varchar(512) NOT NULL COMMENT '对议题的想法', |
|||
`PUBLIC_FLAG` tinyint(1) NOT NULL COMMENT '1公开; 0匿名', |
|||
`DEL_FLAG` varchar(1) NOT NULL DEFAULT '0' COMMENT '删除标识:0 未删除 1已删除', |
|||
`REVISION` int(11) NOT NULL DEFAULT '0' COMMENT '乐观锁', |
|||
`CREATED_BY` varchar(64) NOT NULL COMMENT '提建议的人', |
|||
`CREATED_TIME` datetime NOT NULL COMMENT '创建时间', |
|||
`UPDATED_BY` varchar(64) NOT NULL COMMENT '修改人ID', |
|||
`UPDATED_TIME` datetime NOT NULL COMMENT '修改时间', |
|||
PRIMARY KEY (`ID`) |
|||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='居民端用户对议题建议或意见表'; |
@ -0,0 +1,2 @@ |
|||
ALTER TABLE issue_application MODIFY APPLY_STATUS VARCHAR(32) NOT NULL comment '审核状态:under_auditing:待审核;approved:通过;rejected:驳回;自动通过:auto_passed'; |
|||
alter table issue_application_history modify ACTION_TYPE varchar(32) not null comment 'under_auditing:提交审核;approved:审核通过,rejected:驳回;auto_passed:自动通过'; |
@ -0,0 +1,2 @@ |
|||
ALTER TABLE issue_application |
|||
ADD COLUMN(`APPROVE_STAFF_ID` VARCHAR(64) COMMENT '审批通过时工作人员id,自动通过此列不存储'); |
@ -0,0 +1 @@ |
|||
INSERT INTO `issue_customer_parameter`(`ID`, `CUSTOMER_ID`, `PARAMETER_KEY`, `PARAMETER_NAME`, `PARAMETER_VALUE`, `DESCRIPTION`, `DEL_FLAG`, `REVISION`, `CREATED_BY`, `CREATED_TIME`, `UPDATED_BY`, `UPDATED_TIME`) VALUES ('1', 'default', 'audit_switch', '议题发布前经网格员审核', 'close', '已开启审核:open; 无需审核:close', '0', 0, 'APP_USER', '2020-11-17 09:31:03', 'APP_USER', '2020-11-17 09:31:10'); |
@ -0,0 +1,75 @@ |
|||
<?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.IssueApplicationDao"> |
|||
|
|||
<select id="applicationDetail" resultType="com.epmet.resi.group.dto.group.result.ApplicationDetailResultDTO"> |
|||
SELECT |
|||
ID AS issueApplicationId, |
|||
ISSUE_TITLE, |
|||
GRID_ID, |
|||
topic_id, |
|||
CREATED_BY AS userId, |
|||
suggestion AS issueSuggestion |
|||
FROM issue_application |
|||
WHERE DEL_FLAG = '0' |
|||
AND ID = #{issueApplicationId} |
|||
</select> |
|||
<!-- 分页按条件查询issue_application --> |
|||
<select id="selectList" resultType="com.epmet.dto.result.IssueApplicationResDTO" parameterType="com.epmet.dto.form.IssueAppQueryFormDTO"> |
|||
SELECT |
|||
ia.id AS issueApplicationId, |
|||
ia.ISSUE_TITLE, |
|||
unix_timestamp( ia.UPDATED_TIME ) AS latestTime, |
|||
ia.SUGGESTION, |
|||
ia.APPLY_STATUS |
|||
FROM |
|||
issue_application ia |
|||
WHERE |
|||
ia.DEL_FLAG = '0' |
|||
<if test="applyStatus != null and applyStatus.trim() != ''"> |
|||
AND ia.APPLY_STATUS = #{applyStatus} |
|||
</if> |
|||
<if test="gridId != null and gridId.trim() != ''"> |
|||
AND ia.GRID_ID = #{gridId} |
|||
</if> |
|||
<if test="groupId != null and groupId.trim() != ''"> |
|||
AND ia.GROUP_ID = #{groupId} |
|||
</if> |
|||
ORDER BY |
|||
ia.UPDATED_TIME DESC |
|||
</select> |
|||
|
|||
<!-- 查询某个用户发起的议题列表-审核中列表(待审核+已驳回) --> |
|||
<select id="selectUserPubAuditingIssues" parameterType="com.epmet.dto.form.UserPubAuditingIssueFormDTO" |
|||
resultType="com.epmet.dto.result.UserPubAuditingIssueResDTO"> |
|||
SELECT |
|||
ia.id AS issueApplicationId, |
|||
ia.APPLY_STATUS AS applyStatus, |
|||
ia.ISSUE_TITLE AS issueTitle, |
|||
ia.SUGGESTION AS issueSuggestion, |
|||
'' AS gridName, |
|||
'' AS groupName, |
|||
unix_timestamp( ia.CREATED_TIME ) AS publishTime, |
|||
ia.GRID_ID AS gridId, |
|||
ia.GROUP_ID AS groupId |
|||
FROM |
|||
issue_application ia |
|||
WHERE |
|||
ia.DEL_FLAG = '0' |
|||
AND ia.CREATED_BY =#{userId} |
|||
AND ( |
|||
ia.APPLY_STATUS = 'under_auditing' |
|||
OR ia.APPLY_STATUS = 'rejected') |
|||
order by ia.CREATED_TIME desc |
|||
</select> |
|||
|
|||
<select id="selectByTopicId" resultType="com.epmet.dto.IssueApplicationDTO"> |
|||
SELECT |
|||
* |
|||
FROM issue_application |
|||
WHERE DEL_FLAG = '0' |
|||
AND TOPIC_ID = #{topicId} |
|||
ORDER BY CREATED_TIME DESC |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,37 @@ |
|||
<?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.IssueApplicationHistoryDao"> |
|||
<!-- 根据issue_application.id查询审核历史 --> |
|||
<select id="selectListByIssueApplicationId" resultType="com.epmet.dto.result.ApplicationHistoryResDTO"> |
|||
SELECT |
|||
iah.ID as historyId, |
|||
iah.ACTION_TYPE, |
|||
unix_timestamp( iah.CREATED_TIME ) AS operateTime, |
|||
IFNULL(iah.REASON,'')AS REASON, |
|||
IFNULL(iah.STAFF_NAME,'')as STAFF_NAME |
|||
FROM |
|||
issue_application_history iah |
|||
WHERE |
|||
iah.DEL_FLAG = '0' |
|||
AND iah.ISSUE_APPLICATION_ID = #{issueApplicationId} |
|||
ORDER BY |
|||
iah.CREATED_TIME DESC |
|||
</select> |
|||
|
|||
<!-- 查询议题审核历史 --> |
|||
<select id="applicationHistoryWork" resultType="com.epmet.dto.result.ApplicationHistoryWorkResultDTO"> |
|||
SELECT |
|||
iah.ID AS historyId, |
|||
iah.ACTION_TYPE, |
|||
UNIX_TIMESTAMP(iah.CREATED_TIME) AS operateTime, |
|||
IFNULL(iah.REASON,'') AS reason, |
|||
iah.CREATED_BY AS userId |
|||
FROM issue_application_history iah |
|||
LEFT JOIN issue_application ia ON ia.ID = iah.ISSUE_APPLICATION_ID |
|||
WHERE iah.DEL_FLAG = '0' |
|||
AND ia.DEL_FLAG = '0' |
|||
AND ia.ISSUE_ID = #{issueId} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,36 @@ |
|||
<?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.IssueSuggestionDao"> |
|||
<!-- 查询用户对于某个议题的想法 返回一条记录 --> |
|||
<select id="selectUserIssueSuggestion" parameterType="com.epmet.dto.form.UserIssueSuggestionFormDTO" resultType="com.epmet.dto.IssueSuggestionDTO"> |
|||
SELECT |
|||
* |
|||
FROM |
|||
issue_suggestion i |
|||
WHERE |
|||
i.DEL_FLAG = '0' |
|||
AND i.ISSUE_ID = #{issueId} |
|||
AND i.CREATED_BY=#{userId} |
|||
</select> |
|||
|
|||
<!-- 查询议题建议 --> |
|||
<select id="selectListIssueSugByIssueId" resultType="com.epmet.dto.result.IssueSuggestionResDTO"> |
|||
SELECT |
|||
ig.id AS suggestionId, |
|||
ig.SUGGESTION, |
|||
unix_timestamp(ig.CREATED_TIME)AS publishTime, |
|||
ig.PUBLIC_FLAG AS publicFlag, |
|||
'' AS headPhoto, |
|||
'' AS userShowName, |
|||
'' AS aititude, |
|||
ig.CREATED_BY AS userId |
|||
FROM |
|||
issue_suggestion ig |
|||
WHERE |
|||
ig.DEL_FLAG = '0' |
|||
AND ig.ISSUE_ID =#{issueId} |
|||
ORDER BY |
|||
ig.CREATED_TIME DESC |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,56 @@ |
|||
package com.epmet.dto.form; |
|||
|
|||
import com.epmet.commons.tools.validator.group.AddGroup; |
|||
import com.epmet.commons.tools.validator.group.DefaultGroup; |
|||
import lombok.Data; |
|||
import lombok.NoArgsConstructor; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/11/18 15:00 |
|||
*/ |
|||
@NoArgsConstructor |
|||
@Data |
|||
public class ParameterFormDTO implements Serializable { |
|||
|
|||
private static final long serialVersionUID = 6943367994919967821L; |
|||
/** |
|||
* 客户ID |
|||
*/ |
|||
@NotBlank(message = "客户ID不能为空", groups = DefaultGroup.class) |
|||
private String customerId; |
|||
/** |
|||
* 可滞留天数 |
|||
*/ |
|||
@NotBlank(message = "可滞留天数不能为空", groups = AddGroup.class) |
|||
private String detentionDays; |
|||
/** |
|||
* 计算方式 工作日work 日历天calendar |
|||
*/ |
|||
@NotBlank(message = "计算方式 不能为空", groups = AddGroup.class) |
|||
private String calculation; |
|||
/** |
|||
* 即将超期提醒时间 |
|||
*/ |
|||
@NotBlank(message = "即将超期提醒时间不能为空", groups = AddGroup.class) |
|||
private String remindTime; |
|||
/** |
|||
* 推送时间 默认 上午8点 |
|||
*/ |
|||
@NotBlank(message = "推送时间不能为空", groups = AddGroup.class) |
|||
private String pushTime; |
|||
/** |
|||
* 设定核算单位天开始时间 |
|||
*/ |
|||
@NotBlank(message = "设定核算单位天开始时间不能为空", groups = AddGroup.class) |
|||
private String startTime; |
|||
/** |
|||
* 设定核算单位天结束时间 |
|||
*/ |
|||
@NotBlank(message = "设定核算单位天结束时间不能为空", groups = AddGroup.class) |
|||
private String endTime; |
|||
} |
@ -0,0 +1,39 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* @author zhaoqifeng |
|||
* @dscription |
|||
* @date 2020/11/18 15:19 |
|||
*/ |
|||
@Data |
|||
public class ParameterResultDTO implements Serializable { |
|||
private static final long serialVersionUID = -2066374948905858262L; |
|||
/** |
|||
* 可滞留天数 |
|||
*/ |
|||
private String detentionDays; |
|||
/** |
|||
* 计算方式 工作日work 日历天calendar |
|||
*/ |
|||
private String calculation; |
|||
/** |
|||
* 即将超期提醒时间 |
|||
*/ |
|||
private String remindTime; |
|||
/** |
|||
* 推送时间 默认 上午8点 |
|||
*/ |
|||
private String pushTime; |
|||
/** |
|||
* 设定核算单位天开始时间 |
|||
*/ |
|||
private String startTime; |
|||
/** |
|||
* 设定核算单位天结束时间 |
|||
*/ |
|||
private String endTime; |
|||
} |
@ -0,0 +1,23 @@ |
|||
package com.epmet.resi.group.constant; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: liushaowen |
|||
* @date: 2020/11/13 16:23 |
|||
*/ |
|||
|
|||
public interface GroupCodeConstant { |
|||
/** |
|||
* 群二维码类型-邀请 |
|||
*/ |
|||
String CODE_TYPE_INVITE = "invite"; |
|||
|
|||
/** |
|||
* aliyun图片地址域名对应正则表达式 |
|||
*/ |
|||
String PATTERN = "^((http://)|(https://))?([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6}(/)"; |
|||
/** |
|||
* 供前端下载图片jenkins转发前缀 |
|||
*/ |
|||
String STORAGE = "/storage/"; |
|||
} |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue