征求意见
This commit is contained in:
parent
41fe2c517e
commit
2bf0bc8fb3
|
@ -0,0 +1,156 @@
|
||||||
|
package com.ydool.boot.api.controller;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.github.xiaoymin.knife4j.annotations.DynamicParameter;
|
||||||
|
import com.github.xiaoymin.knife4j.annotations.DynamicResponseParameters;
|
||||||
|
import com.ydool.boot.common.result.Ret;
|
||||||
|
import com.ydool.boot.core.entity.BaseEntity;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Suggestion;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.SuggestionComment;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.request.SuggestRequest;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.request.SuggestionCommentRequest;
|
||||||
|
import com.ydool.boot.modules.rddb.service.SuggestionCommentService;
|
||||||
|
import com.ydool.boot.modules.rddb.service.SuggestionService;
|
||||||
|
import com.ydool.boot.modules.sys.entity.User;
|
||||||
|
import io.swagger.annotations.Api;
|
||||||
|
import io.swagger.annotations.ApiImplicitParam;
|
||||||
|
import io.swagger.annotations.ApiImplicitParams;
|
||||||
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/api/suggestion")
|
||||||
|
@Api(value = "征求意见", tags = "征求意见")
|
||||||
|
@AllArgsConstructor
|
||||||
|
public class ApiSuggestionController extends ApiBaseController {
|
||||||
|
@Autowired
|
||||||
|
private SuggestionService suggestionService;
|
||||||
|
@Autowired
|
||||||
|
private SuggestionCommentService suggestionCommentService;
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "page", value = "当前页"),
|
||||||
|
@ApiImplicitParam(name = "size", value = "显示条数"),
|
||||||
|
@ApiImplicitParam(name = "title", value = "标题"),
|
||||||
|
@ApiImplicitParam(name = "platform", value = "当前登录的是哪个端 admin机关办公/ rddb代表/ voter选民 "),
|
||||||
|
@ApiImplicitParam(name = "top", value = "是否置顶0:不置顶;1:置顶", dataType = "int"),
|
||||||
|
@ApiImplicitParam(name = "type", value = "是否结束0:未结束;1:结束", dataType = "int"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
@DynamicResponseParameters(properties = {@DynamicParameter(value = "征求意见", name = "data", dataTypeClass =
|
||||||
|
Suggestion.class)})
|
||||||
|
@ApiOperation("征求意见列表")
|
||||||
|
@GetMapping("suggestionPage")
|
||||||
|
public void suggestionPage(String title,String platform,Integer top,Integer type) {
|
||||||
|
LambdaQueryWrapper<Suggestion> qw = new LambdaQueryWrapper<Suggestion>();
|
||||||
|
qw.like(StrUtil.isNotBlank(title),Suggestion::getTitle, title)
|
||||||
|
.eq(ObjectUtil.isNotNull(top),Suggestion::getTop,top)
|
||||||
|
.eq(ObjectUtil.isNotNull(type),Suggestion::getType,type)
|
||||||
|
.like(StrUtil.isNotBlank(platform),Suggestion::getObj,platform);
|
||||||
|
qw.orderByDesc(Suggestion::getTop, Suggestion::getCreatedAt);
|
||||||
|
Page<Suggestion> paged = suggestionService.page(new Page<>(getPageNum(), getPageSize()), qw);
|
||||||
|
render(Ret.ok().paged(paged));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "id", value = "征求意见id"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
@DynamicResponseParameters(properties = {@DynamicParameter(value = "征求意见", name = "data", dataTypeClass =
|
||||||
|
Suggestion.class)})
|
||||||
|
@ApiOperation("征求意见详情")
|
||||||
|
@GetMapping("suggestionDetail")
|
||||||
|
public void suggestionDetail(String id) {
|
||||||
|
Suggestion suggestion = suggestionService.getById(id);
|
||||||
|
Assert.notNull(suggestion, "未找到该记录");
|
||||||
|
render(Ret.ok().data(suggestion));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("添加")
|
||||||
|
@PostMapping("addSuggestion")
|
||||||
|
public void addSuggestion(@Validated @RequestBody SuggestRequest suggestRequest) {
|
||||||
|
Suggestion suggestion = BeanUtil.copyProperties(suggestRequest, Suggestion.class);
|
||||||
|
User loginUser = getApiUser();
|
||||||
|
suggestion.setCreatedId(loginUser.getId());
|
||||||
|
suggestion.setCreatedAt(LocalDateTime.now());
|
||||||
|
render(!suggestionService.saveOrUpdate(suggestion) ? Ret.fail("添加失败") : Ret.ok().msg("添加成功"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "id", value = "征求意见id"),
|
||||||
|
})
|
||||||
|
@ApiOperation("修改")
|
||||||
|
@PutMapping("editSuggestion")
|
||||||
|
public void editSuggestion(@Validated @RequestBody SuggestRequest suggestRequest, @RequestParam(name = "id",
|
||||||
|
defaultValue = "") String id) {
|
||||||
|
Suggestion suggestion = suggestionService.getById(id);
|
||||||
|
Assert.notNull(suggestion, "未找到该记录");
|
||||||
|
BeanUtil.copyProperties(suggestRequest,suggestion);
|
||||||
|
User loginUser = getApiUser();
|
||||||
|
suggestion.setUpdatedId(loginUser.getId());
|
||||||
|
suggestion.setUpdatedAt(LocalDateTime.now());
|
||||||
|
render(!suggestionService.saveOrUpdate(suggestion) ? Ret.fail("修改失败") : Ret.ok().msg("修改成功"));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "id", value = "征求意见id"),
|
||||||
|
})
|
||||||
|
@ApiOperation("删除")
|
||||||
|
@DeleteMapping("deleteSuggestion")
|
||||||
|
public void deleteSuggestion(String id) {
|
||||||
|
Suggestion suggestion = suggestionService.getById(id);
|
||||||
|
Assert.notNull(suggestion, "未找到该记录");
|
||||||
|
render(!suggestionService.removeById(id)? Ret.fail("删除失败") : Ret.ok().msg("删除成功"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "page", value = "当前页"),
|
||||||
|
@ApiImplicitParam(name = "size", value = "显示条数"),
|
||||||
|
@ApiImplicitParam(name = "suggestionId", value = "征求意见id"),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
@DynamicResponseParameters(properties = {@DynamicParameter(value = "评论", name = "data", dataTypeClass =
|
||||||
|
SuggestionComment.class)})
|
||||||
|
@ApiOperation("评论列表")
|
||||||
|
@GetMapping("suggestionCommentPage")
|
||||||
|
public void suggestionCommentPage(String suggestionId) {
|
||||||
|
LambdaQueryWrapper<SuggestionComment> qw = new LambdaQueryWrapper<SuggestionComment>();
|
||||||
|
qw.eq(SuggestionComment::getSuggestionId, suggestionId);
|
||||||
|
Page<SuggestionComment> paged = suggestionCommentService.page(new Page<>(getPageNum(), getPageSize()), qw);
|
||||||
|
render(Ret.ok().paged(paged));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("评论")
|
||||||
|
@PostMapping("suggestionComment")
|
||||||
|
public void suggestionComment(@Validated @RequestBody SuggestionCommentRequest suggestionCommentRequest) {
|
||||||
|
Ret ret = suggestionCommentService.comment(suggestionCommentRequest, getApiUser());
|
||||||
|
render(ret);
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiImplicitParams({
|
||||||
|
@ApiImplicitParam(name = "id", value = "征求意见id"),
|
||||||
|
})
|
||||||
|
@ApiOperation("结束评论")
|
||||||
|
@PutMapping("endSuggestion")
|
||||||
|
public void endSuggestion(String id) {
|
||||||
|
Suggestion suggestion = suggestionService.getById(id);
|
||||||
|
Assert.notNull(suggestion, "未找到该记录");
|
||||||
|
suggestion.setType(1);
|
||||||
|
render(!suggestionService.saveOrUpdate(suggestion) ? Ret.fail("结束评论失败") : Ret.ok().msg("结束评论成功"));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,81 @@
|
||||||
|
package com.ydool.boot.modules.rddb.entity;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.ydool.boot.core.entity.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName("t_suggestion")
|
||||||
|
public class Suggestion extends BaseEntity{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建者
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "创建者")
|
||||||
|
private String createdId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新者
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "更新者")
|
||||||
|
private String updatedId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求主题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求主题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求时间
|
||||||
|
*/
|
||||||
|
@DateTimeFormat(
|
||||||
|
pattern = "yyyy-MM-dd"
|
||||||
|
)
|
||||||
|
@JsonFormat(
|
||||||
|
pattern = "yyyy-MM-dd"
|
||||||
|
)
|
||||||
|
@ApiModelProperty(value = "征求时间")
|
||||||
|
private Date suggestionDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0:不置顶;1:置顶
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "0:不置顶;1:置顶")
|
||||||
|
private Integer top;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求对象
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求对象 admin机关办公/ rddb代表/ voter选民 多个用逗号隔开")
|
||||||
|
private String obj;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0:未结束;1:结束
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "0:未结束;1:结束")
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
package com.ydool.boot.modules.rddb.entity;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import com.ydool.boot.core.entity.BaseEntity;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见评论
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
@TableName("t_suggestion_comment")
|
||||||
|
public class SuggestionComment extends BaseEntity{
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 创建者
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "创建者")
|
||||||
|
private String createdId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 更新者
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "更新者")
|
||||||
|
private String updatedId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求意见id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求意见id")
|
||||||
|
private String suggestionId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "人员id")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 人员姓名
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "人员姓名")
|
||||||
|
private String userName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,47 @@
|
||||||
|
package com.ydool.boot.modules.rddb.entity.request;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
import org.springframework.format.annotation.DateTimeFormat;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SuggestRequest {
|
||||||
|
/**
|
||||||
|
* 征求主题
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求主题")
|
||||||
|
private String title;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 内容
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容")
|
||||||
|
private String content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求时间
|
||||||
|
*/
|
||||||
|
@DateTimeFormat(
|
||||||
|
pattern = "yyyy-MM-dd"
|
||||||
|
)
|
||||||
|
@JsonFormat(
|
||||||
|
pattern = "yyyy-MM-dd"
|
||||||
|
)
|
||||||
|
@ApiModelProperty(value = "征求时间")
|
||||||
|
private Date suggestionDate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 0:不置顶;1:置顶
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "0:不置顶;1:置顶")
|
||||||
|
private Integer top;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 征求对象
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求对象 admin机关办公/ rddb代表/ voter选民 多个用逗号隔开")
|
||||||
|
private String obj;
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package com.ydool.boot.modules.rddb.entity.request;
|
||||||
|
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class SuggestionCommentRequest {
|
||||||
|
/**
|
||||||
|
* 征求意见id
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "征求意见id")
|
||||||
|
private String suggestionId;
|
||||||
|
/**
|
||||||
|
* 内容
|
||||||
|
*/
|
||||||
|
@ApiModelProperty(value = "内容")
|
||||||
|
private String content;
|
||||||
|
}
|
|
@ -20,7 +20,8 @@ public class MyGenerator {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
||||||
//表名
|
//表名
|
||||||
String tableName = "t_contact_db_message";
|
String tableName = "t_suggestion_comment ";
|
||||||
|
|
||||||
//表前缀
|
//表前缀
|
||||||
String tablePrefix = "t_";
|
String tablePrefix = "t_";
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ydool.boot.modules.rddb.mapper;
|
||||||
|
|
||||||
|
import com.ydool.boot.modules.rddb.entity.SuggestionComment;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见评论 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
public interface SuggestionCommentMapper extends BaseMapper<SuggestionComment> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ydool.boot.modules.rddb.mapper;
|
||||||
|
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Suggestion;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见 Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
public interface SuggestionMapper extends BaseMapper<Suggestion> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?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.ydool.boot.modules.rddb.mapper.SuggestionCommentMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,5 @@
|
||||||
|
<?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.ydool.boot.modules.rddb.mapper.SuggestionMapper">
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,42 @@
|
||||||
|
package com.ydool.boot.modules.rddb.service;
|
||||||
|
|
||||||
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import cn.hutool.core.lang.Assert;
|
||||||
|
import com.ydool.boot.common.result.Ret;
|
||||||
|
import com.ydool.boot.core.service.BaseService;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.ContactDb;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.ContactDbComment;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Suggestion;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.SuggestionComment;
|
||||||
|
import com.ydool.boot.modules.rddb.entity.request.SuggestionCommentRequest;
|
||||||
|
import com.ydool.boot.modules.rddb.mapper.SuggestionCommentMapper;
|
||||||
|
import com.ydool.boot.modules.rddb.service.inter.ISuggestionCommentService;
|
||||||
|
import com.ydool.boot.modules.sys.entity.User;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见评论 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SuggestionCommentService extends BaseService<SuggestionCommentMapper, SuggestionComment> implements ISuggestionCommentService {
|
||||||
|
@Autowired
|
||||||
|
private SuggestionService suggestionService;
|
||||||
|
|
||||||
|
public Ret comment(SuggestionCommentRequest suggestionCommentRequest, User loginUser) {
|
||||||
|
Suggestion suggestion = suggestionService.getById(suggestionCommentRequest.getSuggestionId());
|
||||||
|
Assert.notNull(suggestion, "未找到该记录");
|
||||||
|
SuggestionComment suggestionComment = BeanUtil.copyProperties(suggestionCommentRequest,
|
||||||
|
SuggestionComment.class);
|
||||||
|
suggestionComment.setCreatedId(loginUser.getId());
|
||||||
|
suggestionComment.setUserId(loginUser.getId());
|
||||||
|
suggestionComment.setUserName(loginUser.getUserName());
|
||||||
|
boolean flag = saveOrUpdate(suggestionComment);
|
||||||
|
return !flag ? Ret.fail("评论失败") : Ret.ok().msg("评论成功");
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,20 @@
|
||||||
|
package com.ydool.boot.modules.rddb.service;
|
||||||
|
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Suggestion;
|
||||||
|
import com.ydool.boot.modules.rddb.mapper.SuggestionMapper;
|
||||||
|
import com.ydool.boot.modules.rddb.service.inter.ISuggestionService;
|
||||||
|
import com.ydool.boot.core.service.BaseService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
public class SuggestionService extends BaseService<SuggestionMapper, Suggestion> implements ISuggestionService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ydool.boot.modules.rddb.service.inter;
|
||||||
|
|
||||||
|
import com.ydool.boot.modules.rddb.entity.SuggestionComment;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见评论 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
public interface ISuggestionCommentService extends IService<SuggestionComment> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package com.ydool.boot.modules.rddb.service.inter;
|
||||||
|
|
||||||
|
import com.ydool.boot.modules.rddb.entity.Suggestion;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
public interface ISuggestionService extends IService<Suggestion> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.ydool.boot.modules.rddb.web;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import com.ydool.boot.core.web.BaseController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见评论 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/rddb/suggestionComment")
|
||||||
|
public class SuggestionCommentController extends BaseController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
package com.ydool.boot.modules.rddb.web;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Controller;
|
||||||
|
import com.ydool.boot.core.web.BaseController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 征求意见 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author zhouyuan
|
||||||
|
* @since 2022-11-22
|
||||||
|
*/
|
||||||
|
@Controller
|
||||||
|
@RequestMapping("/rddb/suggestion")
|
||||||
|
public class SuggestionController extends BaseController {
|
||||||
|
|
||||||
|
}
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1 @@
|
||||||
|
.fileOverViewBox[data-v-6fcb952a]{background:#000;width:100%}.fileOverViewBox .fileOverViewContentBox[data-v-6fcb952a]{width:100%;margin:0 auto;background:#fff}.fileOverViewBox .fileOverViewContentBox .pdf_lif[data-v-6fcb952a]{position:fixed;z-index:10}.fileOverViewBox .fileOverViewContentBox .pdf_lif .prev[data-v-6fcb952a]{flex:1;text-align:center;padding:.26667rem;position:fixed;left:0;top:50%}.fileOverViewBox .fileOverViewContentBox .pdf_lif .prev img[data-v-6fcb952a]{width:.8rem;height:.8rem}.fileOverViewBox .fileOverViewContentBox .pdf_lif .next[data-v-6fcb952a]{flex:1;text-align:center;padding:.26667rem;position:fixed;right:0;top:50%}.fileOverViewBox .fileOverViewContentBox .pdf_lif .next img[data-v-6fcb952a]{width:.8rem;height:.8rem}.fileOverViewBox .fileOverViewContentBox .arrow[data-v-6fcb952a]{position:fixed;width:100%;height:1.6rem;z-index:100;box-shadow:0 .05333rem .05333rem rgba(0,0,0,.5);background:hsla(0,0%,100%,.9)}.fileOverViewBox .fileOverViewContentBox .arrow .turn[data-v-6fcb952a]{cursor:pointer}.fileOverViewBox .fileOverViewContentBox .arrow .turn[data-v-6fcb952a]:hover{color:#58a5fe}.fileOverViewBox .fileOverViewContentBox .arrow .pageBox[data-v-6fcb952a]{margin:0 .53333rem}.fileOverViewBox .fileOverViewContentBox .button_content[data-v-6fcb952a]{position:fixed;right:.42667rem;bottom:1.6rem;z-index:9999}.fileOverViewBox .fileOverViewContentBox .button_content .box[data-v-6fcb952a]{width:1.06667rem;height:1.06667rem;margin-bottom:.53333rem;background-color:#fff;border-radius:50%;box-shadow:0 0 .26667rem .05333rem #efefef;padding:.24rem;font-size:0}.fileOverViewBox .fileOverViewContentBox .cloee[data-v-6fcb952a]{overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-6fcb952a] .docViewBox{width:100%;padding:.53333rem;font-size:.42667rem;line-height:1.6;overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-6fcb952a] .docViewBox p{margin:.21333rem .10667rem;line-height:1.6;text-indent:2em}.fileOverViewBox .fileOverViewContentBox[data-v-6fcb952a] .docViewBox img{margin:.37333rem 0;overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-6fcb952a] .docViewBox li{margin:.21333rem 0;line-height:1.6;text-indent:2em}.ifra iframe[data-v-6fcb952a]{position:fixed;top:1.22667rem;width:100%;height:94%;bottom:0}
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1 +0,0 @@
|
||||||
.fileOverViewBox[data-v-2a872cf4]{background:#000;width:100%}.fileOverViewBox .fileOverViewContentBox[data-v-2a872cf4]{width:100%;margin:0 auto;background:#fff}.fileOverViewBox .fileOverViewContentBox .pdf_lif[data-v-2a872cf4]{position:fixed;z-index:10}.fileOverViewBox .fileOverViewContentBox .pdf_lif .prev[data-v-2a872cf4]{flex:1;text-align:center;padding:.26667rem;position:fixed;left:0;top:50%}.fileOverViewBox .fileOverViewContentBox .pdf_lif .prev img[data-v-2a872cf4]{width:.8rem;height:.8rem}.fileOverViewBox .fileOverViewContentBox .pdf_lif .next[data-v-2a872cf4]{flex:1;text-align:center;padding:.26667rem;position:fixed;right:0;top:50%}.fileOverViewBox .fileOverViewContentBox .pdf_lif .next img[data-v-2a872cf4]{width:.8rem;height:.8rem}.fileOverViewBox .fileOverViewContentBox .arrow[data-v-2a872cf4]{position:fixed;width:100%;height:1.6rem;z-index:100;box-shadow:0 .05333rem .05333rem rgba(0,0,0,.5);background:hsla(0,0%,100%,.9)}.fileOverViewBox .fileOverViewContentBox .arrow .turn[data-v-2a872cf4]{cursor:pointer}.fileOverViewBox .fileOverViewContentBox .arrow .turn[data-v-2a872cf4]:hover{color:#58a5fe}.fileOverViewBox .fileOverViewContentBox .arrow .pageBox[data-v-2a872cf4]{margin:0 .53333rem}.fileOverViewBox .fileOverViewContentBox .button_content[data-v-2a872cf4]{position:fixed;right:.42667rem;bottom:1.6rem;z-index:9999}.fileOverViewBox .fileOverViewContentBox .button_content .box[data-v-2a872cf4]{width:1.06667rem;height:1.06667rem;margin-bottom:.53333rem;background-color:#fff;border-radius:50%;box-shadow:0 0 .26667rem .05333rem #efefef;padding:.24rem;font-size:0}.fileOverViewBox .fileOverViewContentBox .cloee[data-v-2a872cf4]{overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-2a872cf4] .docViewBox{width:100%;padding:.53333rem;font-size:.42667rem;line-height:1.6;overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-2a872cf4] .docViewBox p{margin:.21333rem .10667rem;line-height:1.6;text-indent:2em}.fileOverViewBox .fileOverViewContentBox[data-v-2a872cf4] .docViewBox img{margin:.37333rem 0;overflow:hidden}.fileOverViewBox .fileOverViewContentBox[data-v-2a872cf4] .docViewBox li{margin:.21333rem 0;line-height:1.6;text-indent:2em}.ifra iframe[data-v-2a872cf4]{position:fixed;top:1.22667rem;width:100%;height:94%;bottom:0}
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue