Browse Source

议题生成文件

master
zxc 5 years ago
parent
commit
c4d0632bd6
  1. 21
      epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/form/IssueDetailFormDTO.java
  2. 49
      epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/IssueDetailResultDTO.java
  3. 48
      epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/IssueResultDTO.java
  4. 40
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueController.java
  5. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueCustomerParameterController.java
  6. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueProcessController.java
  7. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueProjectRelationController.java
  8. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueSatisfactionDetailController.java
  9. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueSatisfactionStatisticalController.java
  10. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteDetailController.java
  11. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteStatisticalController.java
  12. 94
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteStatisticalDailyController.java
  13. 27
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/ResiHallDemoController.java
  14. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueCustomerParameterDao.java
  15. 43
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueDao.java
  16. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueProcessDao.java
  17. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueProjectRelationDao.java
  18. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueSatisfactionDetailDao.java
  19. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueSatisfactionStatisticalDao.java
  20. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteDetailDao.java
  21. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteStatisticalDailyDao.java
  22. 33
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteStatisticalDao.java
  23. 66
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueCustomerParameterEntity.java
  24. 116
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueEntity.java
  25. 66
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueProcessEntity.java
  26. 51
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueProjectRelationEntity.java
  27. 56
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueSatisfactionDetailEntity.java
  28. 61
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueSatisfactionStatisticalEntity.java
  29. 51
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteDetailEntity.java
  30. 86
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteStatisticalDailyEntity.java
  31. 61
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteStatisticalEntity.java
  32. 71
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueCustomerParameterExcel.java
  33. 101
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueExcel.java
  34. 71
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueProcessExcel.java
  35. 62
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueProjectRelationExcel.java
  36. 65
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueSatisfactionDetailExcel.java
  37. 68
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueSatisfactionStatisticalExcel.java
  38. 62
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteDetailExcel.java
  39. 83
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteStatisticalDailyExcel.java
  40. 68
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteStatisticalExcel.java
  41. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueCustomerParameterRedis.java
  42. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueProcessRedis.java
  43. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueProjectRelationRedis.java
  44. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueRedis.java
  45. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueSatisfactionDetailRedis.java
  46. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueSatisfactionStatisticalRedis.java
  47. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteDetailRedis.java
  48. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteStatisticalDailyRedis.java
  49. 47
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteStatisticalRedis.java
  50. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueCustomerParameterService.java
  51. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueProcessService.java
  52. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueProjectRelationService.java
  53. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueSatisfactionDetailService.java
  54. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueSatisfactionStatisticalService.java
  55. 22
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueService.java
  56. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteDetailService.java
  57. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteStatisticalDailyService.java
  58. 95
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteStatisticalService.java
  59. 0
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/.gitkeep
  60. 99
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueCustomerParameterServiceImpl.java
  61. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProcessServiceImpl.java
  62. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProjectRelationServiceImpl.java
  63. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueSatisfactionDetailServiceImpl.java
  64. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueSatisfactionStatisticalServiceImpl.java
  65. 34
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueServiceImpl.java
  66. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteDetailServiceImpl.java
  67. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteStatisticalDailyServiceImpl.java
  68. 104
      epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteStatisticalServiceImpl.java
  69. 22
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueCustomerParameterDao.xml
  70. 46
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueDao.xml
  71. 22
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueProcessDao.xml
  72. 19
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueProjectRelationDao.xml
  73. 20
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueSatisfactionDetailDao.xml
  74. 21
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueSatisfactionStatisticalDao.xml
  75. 19
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteDetailDao.xml
  76. 26
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteStatisticalDailyDao.xml
  77. 21
      epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteStatisticalDao.xml

21
epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/form/IssueDetailFormDTO.java

@ -0,0 +1,21 @@
package com.epmet.dto.form;
import lombok.Data;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
/**
* @Description 议题详情入参
* @Author zxc
* @Date 2020/5/11 9:30
*/
@Data
public class IssueDetailFormDTO implements Serializable {
private static final long serialVersionUID = 4859779755214503489L;
@NotBlank(message = "议题id不能为空")
private String issueId;
}

49
epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/IssueDetailResultDTO.java

@ -0,0 +1,49 @@
package com.epmet.dto.result;
import com.epmet.dto.TopicInfoDTO;
import lombok.Data;
import java.io.Serializable;
/**
* @Author zxc
* 议题详情回参
* @CreateTime 2020/5/11 9:31
*/
@Data
public class IssueDetailResultDTO implements Serializable {
private static final long serialVersionUID = -1L;
/**
* 议题标题
*/
private String issueTitle;
/**
* 议题状态(voting 已转项目shift_project 已关闭closed)
*/
private String issueStatus;
/**
* 话题信息
*/
private TopicInfoDTO topicInfo;
/**
* 议题建议
*/
private String issueSuggestion;
/**
* 所属网格(网格所属机关单位名称-网格名称)
*/
private String belongsGridName;
/**
* 议题发起人山东路168-尹女士
*/
private String issueInitiator;
}

48
epmet-module/gov-issue/gov-issue-client/src/main/java/com/epmet/dto/result/IssueResultDTO.java

@ -0,0 +1,48 @@
package com.epmet.dto.result;
import lombok.Data;
import java.io.Serializable;
/**
* @Author zxc
* 议题详情回参
* @CreateTime 2020/5/11 9:31
*/
@Data
public class IssueResultDTO implements Serializable {
private static final long serialVersionUID = -1L;
/**
* 议题标题
*/
private String issueTitle;
/**
* 议题状态(voting 已转项目shift_project 已关闭closed)
*/
private String issueStatus;
/**
* 议题建议
*/
private String issueSuggestion;
/**
* 网格Id
*/
private String gridId;
/**
* 用户id
*/
private String userId;
/**
* 话题Id
*/
private String topicId;
}

40
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueController.java

@ -0,0 +1,40 @@
package com.epmet.controller;
import com.epmet.commons.tools.annotation.RequirePermission;
import com.epmet.commons.tools.enums.RequirePermissionEnum;
import com.epmet.commons.tools.utils.Result;
import com.epmet.dto.form.IssueDetailFormDTO;
import com.epmet.dto.result.IssueResultDTO;
import com.epmet.service.IssueService;
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;
/**
* @Description 居民端党群议事
* @Author yinzuomei
* @Date 2020/5/11 9:04
*/
@RestController
@RequestMapping("issue")
public class IssueController {
@Autowired
private IssueService issueService;
/**
* @Description 议题详情
* @param issueDetail
* @author zxc
* @date 2020/5/11 9:42
*/
@PostMapping(value = "/detail")
@RequirePermission(requirePermission = RequirePermissionEnum.WORK_GRASSROOTS_ISSUE_DETAIL)
public Result<IssueResultDTO> detail(@RequestBody IssueDetailFormDTO issueDetail){
return new Result<IssueResultDTO>().ok(issueService.detail(issueDetail));
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueCustomerParameterController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueCustomerParameterDTO;
import com.epmet.excel.IssueCustomerParameterExcel;
import com.epmet.service.IssueCustomerParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题客户参数定制表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuecustomerparameter")
public class IssueCustomerParameterController {
@Autowired
private IssueCustomerParameterService issueCustomerParameterService;
@GetMapping("page")
public Result<PageData<IssueCustomerParameterDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueCustomerParameterDTO> page = issueCustomerParameterService.page(params);
return new Result<PageData<IssueCustomerParameterDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueCustomerParameterDTO> get(@PathVariable("id") String id){
IssueCustomerParameterDTO data = issueCustomerParameterService.get(id);
return new Result<IssueCustomerParameterDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueCustomerParameterDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueCustomerParameterService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueCustomerParameterDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueCustomerParameterService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueCustomerParameterService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueCustomerParameterDTO> list = issueCustomerParameterService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueCustomerParameterExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueProcessController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueProcessDTO;
import com.epmet.excel.IssueProcessExcel;
import com.epmet.service.IssueProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题进展记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issueprocess")
public class IssueProcessController {
@Autowired
private IssueProcessService issueProcessService;
@GetMapping("page")
public Result<PageData<IssueProcessDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueProcessDTO> page = issueProcessService.page(params);
return new Result<PageData<IssueProcessDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueProcessDTO> get(@PathVariable("id") String id){
IssueProcessDTO data = issueProcessService.get(id);
return new Result<IssueProcessDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueProcessDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueProcessService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueProcessDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueProcessService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueProcessService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueProcessDTO> list = issueProcessService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueProcessExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueProjectRelationController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueProjectRelationDTO;
import com.epmet.excel.IssueProjectRelationExcel;
import com.epmet.service.IssueProjectRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题项目关系表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issueprojectrelation")
public class IssueProjectRelationController {
@Autowired
private IssueProjectRelationService issueProjectRelationService;
@GetMapping("page")
public Result<PageData<IssueProjectRelationDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueProjectRelationDTO> page = issueProjectRelationService.page(params);
return new Result<PageData<IssueProjectRelationDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueProjectRelationDTO> get(@PathVariable("id") String id){
IssueProjectRelationDTO data = issueProjectRelationService.get(id);
return new Result<IssueProjectRelationDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueProjectRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueProjectRelationService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueProjectRelationDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueProjectRelationService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueProjectRelationService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueProjectRelationDTO> list = issueProjectRelationService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueProjectRelationExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueSatisfactionDetailController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueSatisfactionDetailDTO;
import com.epmet.excel.IssueSatisfactionDetailExcel;
import com.epmet.service.IssueSatisfactionDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuesatisfactiondetail")
public class IssueSatisfactionDetailController {
@Autowired
private IssueSatisfactionDetailService issueSatisfactionDetailService;
@GetMapping("page")
public Result<PageData<IssueSatisfactionDetailDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueSatisfactionDetailDTO> page = issueSatisfactionDetailService.page(params);
return new Result<PageData<IssueSatisfactionDetailDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueSatisfactionDetailDTO> get(@PathVariable("id") String id){
IssueSatisfactionDetailDTO data = issueSatisfactionDetailService.get(id);
return new Result<IssueSatisfactionDetailDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueSatisfactionDetailDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueSatisfactionDetailService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueSatisfactionDetailDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueSatisfactionDetailService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueSatisfactionDetailService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueSatisfactionDetailDTO> list = issueSatisfactionDetailService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueSatisfactionDetailExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueSatisfactionStatisticalController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueSatisfactionStatisticalDTO;
import com.epmet.excel.IssueSatisfactionStatisticalExcel;
import com.epmet.service.IssueSatisfactionStatisticalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuesatisfactionstatistical")
public class IssueSatisfactionStatisticalController {
@Autowired
private IssueSatisfactionStatisticalService issueSatisfactionStatisticalService;
@GetMapping("page")
public Result<PageData<IssueSatisfactionStatisticalDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueSatisfactionStatisticalDTO> page = issueSatisfactionStatisticalService.page(params);
return new Result<PageData<IssueSatisfactionStatisticalDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueSatisfactionStatisticalDTO> get(@PathVariable("id") String id){
IssueSatisfactionStatisticalDTO data = issueSatisfactionStatisticalService.get(id);
return new Result<IssueSatisfactionStatisticalDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueSatisfactionStatisticalDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueSatisfactionStatisticalService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueSatisfactionStatisticalDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueSatisfactionStatisticalService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueSatisfactionStatisticalService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueSatisfactionStatisticalDTO> list = issueSatisfactionStatisticalService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueSatisfactionStatisticalExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteDetailController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueVoteDetailDTO;
import com.epmet.excel.IssueVoteDetailExcel;
import com.epmet.service.IssueVoteDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题表决记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuevotedetail")
public class IssueVoteDetailController {
@Autowired
private IssueVoteDetailService issueVoteDetailService;
@GetMapping("page")
public Result<PageData<IssueVoteDetailDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueVoteDetailDTO> page = issueVoteDetailService.page(params);
return new Result<PageData<IssueVoteDetailDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueVoteDetailDTO> get(@PathVariable("id") String id){
IssueVoteDetailDTO data = issueVoteDetailService.get(id);
return new Result<IssueVoteDetailDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueVoteDetailDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueVoteDetailService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueVoteDetailDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueVoteDetailService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueVoteDetailService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueVoteDetailDTO> list = issueVoteDetailService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueVoteDetailExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteStatisticalController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueVoteStatisticalDTO;
import com.epmet.excel.IssueVoteStatisticalExcel;
import com.epmet.service.IssueVoteStatisticalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题表决统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuevotestatistical")
public class IssueVoteStatisticalController {
@Autowired
private IssueVoteStatisticalService issueVoteStatisticalService;
@GetMapping("page")
public Result<PageData<IssueVoteStatisticalDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueVoteStatisticalDTO> page = issueVoteStatisticalService.page(params);
return new Result<PageData<IssueVoteStatisticalDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueVoteStatisticalDTO> get(@PathVariable("id") String id){
IssueVoteStatisticalDTO data = issueVoteStatisticalService.get(id);
return new Result<IssueVoteStatisticalDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueVoteStatisticalDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueVoteStatisticalService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueVoteStatisticalDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueVoteStatisticalService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueVoteStatisticalService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueVoteStatisticalDTO> list = issueVoteStatisticalService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueVoteStatisticalExcel.class);
}
}

94
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/IssueVoteStatisticalDailyController.java

@ -0,0 +1,94 @@
/**
* 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.ExcelUtils;
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.UpdateGroup;
import com.epmet.commons.tools.validator.group.DefaultGroup;
import com.epmet.dto.IssueVoteStatisticalDailyDTO;
import com.epmet.excel.IssueVoteStatisticalDailyExcel;
import com.epmet.service.IssueVoteStatisticalDailyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
/**
* 议题表决按天统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@RestController
@RequestMapping("issuevotestatisticaldaily")
public class IssueVoteStatisticalDailyController {
@Autowired
private IssueVoteStatisticalDailyService issueVoteStatisticalDailyService;
@GetMapping("page")
public Result<PageData<IssueVoteStatisticalDailyDTO>> page(@RequestParam Map<String, Object> params){
PageData<IssueVoteStatisticalDailyDTO> page = issueVoteStatisticalDailyService.page(params);
return new Result<PageData<IssueVoteStatisticalDailyDTO>>().ok(page);
}
@GetMapping("{id}")
public Result<IssueVoteStatisticalDailyDTO> get(@PathVariable("id") String id){
IssueVoteStatisticalDailyDTO data = issueVoteStatisticalDailyService.get(id);
return new Result<IssueVoteStatisticalDailyDTO>().ok(data);
}
@PostMapping
public Result save(@RequestBody IssueVoteStatisticalDailyDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class);
issueVoteStatisticalDailyService.save(dto);
return new Result();
}
@PutMapping
public Result update(@RequestBody IssueVoteStatisticalDailyDTO dto){
//效验数据
ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class);
issueVoteStatisticalDailyService.update(dto);
return new Result();
}
@DeleteMapping
public Result delete(@RequestBody String[] ids){
//效验数据
AssertUtils.isArrayEmpty(ids, "id");
issueVoteStatisticalDailyService.delete(ids);
return new Result();
}
@GetMapping("export")
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
List<IssueVoteStatisticalDailyDTO> list = issueVoteStatisticalDailyService.list(params);
ExcelUtils.exportExcelToTarget(response, null, list, IssueVoteStatisticalDailyExcel.class);
}
}

27
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/controller/ResiHallDemoController.java

@ -0,0 +1,27 @@
package com.epmet.controller;
import com.epmet.commons.tools.utils.Result;
import com.epmet.commons.tools.validator.ValidatorUtils;
import com.epmet.dto.form.DemoTestFormDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.*;
/**
* @Description 测试
* @Author yinzuomei
* @Date 2020/5/7 22:47
*/
@RestController
@RequestMapping("demo")
public class ResiHallDemoController {
private static final Logger logger = LoggerFactory.getLogger(ResiHallDemoController.class);
@PostMapping("test")
public Result test(@RequestBody DemoTestFormDTO formDTO) {
logger.info(String.format("请求成功客户id[%s],网格id[%s]",formDTO.getCustomerId(),formDTO.getGridId()));
ValidatorUtils.validateEntity(formDTO);
return new Result().ok("resi-hall-server请求成功");
}
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueCustomerParameterDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueCustomerParameterEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题客户参数定制表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueCustomerParameterDao extends BaseDao<IssueCustomerParameterEntity> {
}

43
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueDao.java

@ -0,0 +1,43 @@
/**
* 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.form.IssueDetailFormDTO;
import com.epmet.dto.result.IssueResultDTO;
import com.epmet.entity.IssueEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题详情 关联话题转议题时间必须要和话题转议题时间一致关闭时间必须要和操作记录表的关闭记录时间一致转项目时间必须要和项目记录生成时间一致注意服务间调用的时间一致性每个议题最后总会被关闭
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueDao extends BaseDao<IssueEntity> {
/**
* @Description 议题详情
* @param formDTO
* @author zxc
* @date 2020/5/11 10:11
*/
IssueResultDTO issueDetail(IssueDetailFormDTO formDTO);
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueProcessDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueProcessEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题进展记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueProcessDao extends BaseDao<IssueProcessEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueProjectRelationDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueProjectRelationEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题项目关系表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueProjectRelationDao extends BaseDao<IssueProjectRelationEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueSatisfactionDetailDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueSatisfactionDetailEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题满意度调查记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueSatisfactionDetailDao extends BaseDao<IssueSatisfactionDetailEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueSatisfactionStatisticalDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueSatisfactionStatisticalEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题满意度调查统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueSatisfactionStatisticalDao extends BaseDao<IssueSatisfactionStatisticalEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteDetailDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueVoteDetailEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题表决记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueVoteDetailDao extends BaseDao<IssueVoteDetailEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteStatisticalDailyDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueVoteStatisticalDailyEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题表决按天统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueVoteStatisticalDailyDao extends BaseDao<IssueVoteStatisticalDailyEntity> {
}

33
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/dao/IssueVoteStatisticalDao.java

@ -0,0 +1,33 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.dao;
import com.epmet.commons.mybatis.dao.BaseDao;
import com.epmet.entity.IssueVoteStatisticalEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 议题表决统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Mapper
public interface IssueVoteStatisticalDao extends BaseDao<IssueVoteStatisticalEntity> {
}

66
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueCustomerParameterEntity.java

@ -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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_customer_parameter")
public class IssueCustomerParameterEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 客户ID
*/
private String customerId;
/**
* 参数键 eg:voting_time_limit
*/
private String parameterKey;
/**
* 参数名 eg:表决期限
*/
private String parameterName;
/**
* 参数值 eg:10
*/
private String parameterValue;
/**
* 参数说明 eg:这个客户下所有的网格议题表决期限都是10天
*/
private String description;
}

116
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueEntity.java

@ -0,0 +1,116 @@
/**
* 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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue")
public class IssueEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题状态 表决中voting 已转项目shift_project 已关闭closed
*/
private String issueStatus;
/**
* 来源类型 eg:resi_topic
*/
private String sourceType;
/**
* 来源ID eg:2223232(当SOURCE_TYPE为"resi_topic"这里指话题的ID)
*/
private String sourceId;
/**
* 关闭理由 未关闭时可以为空关闭话题时必填的理由转项目后而且已经结案这个字段不回写
*/
private String closeReason;
/**
* 解决类型 未关闭时可以为空已解决resloved未解决unresloved对应在关闭议题时所选的checkbox转项目后而且已经结案这个字段不回写
*/
private String resolveType;
/**
* 议题名称 最多20字
*/
private String issueTitle;
/**
* 建议 建议
*/
private String suggestion;
/**
* 客户ID 客户ID
*/
private String customerId;
/**
* 网格ID 居民端议题对应一个网格iId
*/
private String gridId;
/**
* 所属机关 数据权限-非必填11:22:33(agencyId)数据权限控制
*/
private String orgIdPath;
/**
* 组织ID 数据权限-非必填agencyId
*/
private String orgId;
/**
* 表决截止日期 表决截止日期
*/
private Date votingDeadline;
/**
* 表决发起日期转议题日期 表决发起日期转议题日期
*/
private Date decidedTime;
/**
* 转项目日期 转项目日期服务间调用日期一致性
*/
private Date shiftedTime;
/**
* 关闭日期 关闭日期
*/
private Date closedTime;
}

66
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueProcessEntity.java

@ -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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_process")
public class IssueProcessEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 操作状态 - 表决中voting 已转项目shift_project 已关闭closed
*/
private String issueStatus;
/**
* 组织类型 操作人所属机构类型机构agency | 部门dept | 网格grid操作人可能来源于居民端和政府段但是只有在转议题的时候才是居民端拥有组长权限的人操作所以当这条记录是转议题时该记录为gridORD_ID相应的也为GRID_ID
*/
private String orgType;
/**
* 组织ID 操作人所属机构ID对应的有网格ID部门ID机构ID
*/
private String orgId;
/**
* 操作说明 (节点的说明文案包含三个节点的文案说明转议题已关闭转项目)
*/
private String operationExplain;
}

51
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueProjectRelationEntity.java

@ -0,0 +1,51 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_project_relation")
public class IssueProjectRelationEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID 议题ID
*/
private String issueId;
/**
* 项目ID 项目ID
*/
private String projectId;
}

56
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueSatisfactionDetailEntity.java

@ -0,0 +1,56 @@
/**
* 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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_satisfaction_detail")
public class IssueSatisfactionDetailEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 评论 - 最多300字
*/
private String comment;
/**
* 满意度 满意度 - 不满意:bad基本满意:good非常满意:perfect
*/
private String satisfaction;
}

61
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueSatisfactionStatisticalEntity.java

@ -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.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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_satisfaction_statistical")
public class IssueSatisfactionStatisticalEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 一般满意数
*/
private Integer goodCount;
/**
* 非常满意数
*/
private Integer perfectCount;
/**
* 不满意数
*/
private Integer badCount;
}

51
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteDetailEntity.java

@ -0,0 +1,51 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_vote_detail")
public class IssueVoteDetailEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 态度 - opposition反对support赞成
*/
private String attitude;
}

86
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteStatisticalDailyEntity.java

@ -0,0 +1,86 @@
/**
* 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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_vote_statistical_daily")
public class IssueVoteStatisticalDailyEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 统计日期 yyyy-MM-dd
*/
private Date statisticalDate;
/**
* 到该日的总赞成数
*/
private Integer supportCount;
/**
* 到该日的总反对数
*/
private Integer oppositionCount;
/**
* 到该日的总票数
*/
private Integer totalCount;
/**
* 该日增量
*/
private Integer todayIncrement;
/**
* 该日赞成增量
*/
private Integer supportIncrement;
/**
* 该日反对增量
*/
private Integer oppositionIncrement;
/**
* 到该日的应表决数
*/
private Integer votableCount;
}

61
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/entity/IssueVoteStatisticalEntity.java

@ -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.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-05-11
*/
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("issue_vote_statistical")
public class IssueVoteStatisticalEntity extends BaseEpmetEntity {
private static final long serialVersionUID = 1L;
/**
* 议题ID
*/
private String issueId;
/**
* 支持数
*/
private Integer supportCount;
/**
* 反对数
*/
private Integer oppositionCount;
/**
* 应表决数
*/
private Integer votableCount;
}

71
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueCustomerParameterExcel.java

@ -0,0 +1,71 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题客户参数定制表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueCustomerParameterExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "客户ID")
private String customerId;
@Excel(name = "参数键 eg:voting_time_limit")
private String parameterKey;
@Excel(name = "参数名 eg:表决期限")
private String parameterName;
@Excel(name = "参数值 eg:10(天)")
private String parameterValue;
@Excel(name = "参数说明 eg:这个客户下所有的网格议题表决期限都是10天")
private String description;
@Excel(name = "删除标志 0:未删除,1:已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

101
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueExcel.java

@ -0,0 +1,101 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题详情表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueExcel {
@Excel(name = "议题ID")
private String id;
@Excel(name = "议题状态 表决中:voting 已转项目:shift_project 已关闭:closed")
private String issueStatus;
@Excel(name = "来源类型 eg:resi_topic")
private String sourceType;
@Excel(name = "来源ID eg:2223232(当SOURCE_TYPE为 resi_topic 时,这里指话题的ID)")
private String sourceId;
@Excel(name = "关闭理由 【未关闭时可以为空】关闭议题时必填的理由,转项目后而且已经结案,这个字段不回写")
private String closeReason;
@Excel(name = "解决类型 【未关闭时可以为空】已解决resloved、未解决unresloved,对应在关闭议题时所选的checkbox,转项目后而且已经结案,这个字段不回写")
private String resolveType;
@Excel(name = "议题名称 最多20字")
private String issueTitle;
@Excel(name = "建议 最多1000字")
private String suggestion;
@Excel(name = "客户ID")
private String customerId;
@Excel(name = "网格ID 居民端议题对应一个网格Id")
private String gridId;
@Excel(name = "所属机关 【数据权限-非必填】11:22:33(agencyId)数据权限控制")
private String orgIdPath;
@Excel(name = "组织ID 【数据权限-非必填】agencyId")
private String orgId;
@Excel(name = "表决截止日期")
private Date votingDeadline;
@Excel(name = "表决发起日期(转议题日期)")
private Date decidedTime;
@Excel(name = "转项目日期 (服务间调用日期一致性)")
private Date shiftedTime;
@Excel(name = "关闭日期")
private Date closedTime;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

71
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueProcessExcel.java

@ -0,0 +1,71 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题进展记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueProcessExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "操作状态 - 表决中:voting 已转项目:shift_project 已关闭:closed")
private String issueStatus;
@Excel(name = "组织类型 操作人所属机构类型(机构:agency | 部门:dept | 网格:grid)操作人可能来源于居民端和政府段,但是只有在“转议题”的时候才是居民端拥有组长权限的人操作,所以当这条记录是转议题时,该记录为grid,ORD_ID相应的也为GRID_ID")
private String orgType;
@Excel(name = "组织ID 操作人所属机构ID(对应的有网格ID、部门ID、机构ID)")
private String orgId;
@Excel(name = "操作说明 (节点的说明文案,包含三个节点的文案说明【转议题】、【已关闭】、【转项目】)")
private String operationExplain;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

62
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueProjectRelationExcel.java

@ -0,0 +1,62 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题项目关系表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueProjectRelationExcel {
@Excel(name = "主键ID 主键ID")
private String id;
@Excel(name = "议题ID 议题ID")
private String issueId;
@Excel(name = "项目ID 项目ID")
private String projectId;
@Excel(name = "删除标识 0:未删除1:已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间 议题转项目时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

65
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueSatisfactionDetailExcel.java

@ -0,0 +1,65 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题满意度调查记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueSatisfactionDetailExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "评论 - 最多300字")
private String comment;
@Excel(name = "满意度 满意度 - 不满意:bad、基本满意:good、非常满意:perfect")
private String satisfaction;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

68
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueSatisfactionStatisticalExcel.java

@ -0,0 +1,68 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题满意度调查统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueSatisfactionStatisticalExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "一般满意数")
private Integer goodCount;
@Excel(name = "非常满意数")
private Integer perfectCount;
@Excel(name = "不满意数")
private Integer badCount;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

62
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteDetailExcel.java

@ -0,0 +1,62 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题表决记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueVoteDetailExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "态度 - opposition(反对)support(赞成)")
private String attitude;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

83
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteStatisticalDailyExcel.java

@ -0,0 +1,83 @@
/**
* Copyright 2018 人人开源 https://www.renren.io
* <p>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* <p>
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* <p>
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.epmet.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题表决按天统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueVoteStatisticalDailyExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "统计日期 yyyy-MM-dd")
private Date statisticalDate;
@Excel(name = "到该日的总赞成数")
private Integer supportCount;
@Excel(name = "到该日的总反对数")
private Integer oppositionCount;
@Excel(name = "到该日的总票数")
private Integer totalCount;
@Excel(name = "该日增量")
private Integer todayIncrement;
@Excel(name = "该日赞成增量")
private Integer supportIncrement;
@Excel(name = "该日反对增量")
private Integer oppositionIncrement;
@Excel(name = "到该日的应表决数")
private Integer votableCount;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

68
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/excel/IssueVoteStatisticalExcel.java

@ -0,0 +1,68 @@
/**
* 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.excel;
import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import java.util.Date;
/**
* 议题表决统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Data
public class IssueVoteStatisticalExcel {
@Excel(name = "主键ID")
private String id;
@Excel(name = "议题ID")
private String issueId;
@Excel(name = "支持数")
private Integer supportCount;
@Excel(name = "反对数")
private Integer oppositionCount;
@Excel(name = "应表决数")
private Integer votableCount;
@Excel(name = "乐观锁")
private Integer revision;
@Excel(name = "删除标识 0未删除、1已删除")
private String delFlag;
@Excel(name = "创建人")
private String createdBy;
@Excel(name = "创建时间")
private Date createdTime;
@Excel(name = "更新人")
private String updatedBy;
@Excel(name = "更新时间")
private Date updatedTime;
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueCustomerParameterRedis.java

@ -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-05-11
*/
@Component
public class IssueCustomerParameterRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueProcessRedis.java

@ -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-05-11
*/
@Component
public class IssueProcessRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueProjectRelationRedis.java

@ -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-05-11
*/
@Component
public class IssueProjectRelationRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueRedis.java

@ -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-05-11
*/
@Component
public class IssueRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueSatisfactionDetailRedis.java

@ -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-05-11
*/
@Component
public class IssueSatisfactionDetailRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueSatisfactionStatisticalRedis.java

@ -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-05-11
*/
@Component
public class IssueSatisfactionStatisticalRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteDetailRedis.java

@ -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-05-11
*/
@Component
public class IssueVoteDetailRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteStatisticalDailyRedis.java

@ -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-05-11
*/
@Component
public class IssueVoteStatisticalDailyRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

47
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/redis/IssueVoteStatisticalRedis.java

@ -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-05-11
*/
@Component
public class IssueVoteStatisticalRedis {
@Autowired
private RedisUtils redisUtils;
public void delete(Object[] ids) {
}
public void set(){
}
public String get(String id){
return null;
}
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueCustomerParameterService.java

@ -0,0 +1,95 @@
/**
* 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.IssueCustomerParameterDTO;
import com.epmet.entity.IssueCustomerParameterEntity;
import java.util.List;
import java.util.Map;
/**
* 议题客户参数定制表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueCustomerParameterService extends BaseService<IssueCustomerParameterEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueCustomerParameterDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueCustomerParameterDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueCustomerParameterDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueCustomerParameterDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueCustomerParameterDTO
* @author generator
* @date 2020-05-11
*/
IssueCustomerParameterDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueCustomerParameterDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueCustomerParameterDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueProcessService.java

@ -0,0 +1,95 @@
/**
* 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.IssueProcessDTO;
import com.epmet.entity.IssueProcessEntity;
import java.util.List;
import java.util.Map;
/**
* 议题进展记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueProcessService extends BaseService<IssueProcessEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueProcessDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueProcessDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueProcessDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueProcessDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueProcessDTO
* @author generator
* @date 2020-05-11
*/
IssueProcessDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueProcessDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueProcessDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueProjectRelationService.java

@ -0,0 +1,95 @@
/**
* 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.IssueProjectRelationDTO;
import com.epmet.entity.IssueProjectRelationEntity;
import java.util.List;
import java.util.Map;
/**
* 议题项目关系表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueProjectRelationService extends BaseService<IssueProjectRelationEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueProjectRelationDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueProjectRelationDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueProjectRelationDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueProjectRelationDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueProjectRelationDTO
* @author generator
* @date 2020-05-11
*/
IssueProjectRelationDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueProjectRelationDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueProjectRelationDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueSatisfactionDetailService.java

@ -0,0 +1,95 @@
/**
* 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.IssueSatisfactionDetailDTO;
import com.epmet.entity.IssueSatisfactionDetailEntity;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueSatisfactionDetailService extends BaseService<IssueSatisfactionDetailEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueSatisfactionDetailDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueSatisfactionDetailDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueSatisfactionDetailDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueSatisfactionDetailDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueSatisfactionDetailDTO
* @author generator
* @date 2020-05-11
*/
IssueSatisfactionDetailDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueSatisfactionDetailDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueSatisfactionDetailDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueSatisfactionStatisticalService.java

@ -0,0 +1,95 @@
/**
* 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.IssueSatisfactionStatisticalDTO;
import com.epmet.entity.IssueSatisfactionStatisticalEntity;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueSatisfactionStatisticalService extends BaseService<IssueSatisfactionStatisticalEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueSatisfactionStatisticalDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueSatisfactionStatisticalDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueSatisfactionStatisticalDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueSatisfactionStatisticalDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueSatisfactionStatisticalDTO
* @author generator
* @date 2020-05-11
*/
IssueSatisfactionStatisticalDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueSatisfactionStatisticalDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueSatisfactionStatisticalDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

22
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueService.java

@ -0,0 +1,22 @@
package com.epmet.service;
import com.epmet.commons.mybatis.service.BaseService;
import com.epmet.dto.form.IssueDetailFormDTO;
import com.epmet.dto.result.IssueResultDTO;
import com.epmet.entity.IssueEntity;
/**
* @Author zxc
* @CreateTime 2020/5/11 9:44
*/
public interface IssueService extends BaseService<IssueEntity> {
/**
* @Description 议题详情
* @param issueDetail
* @author zxc
* @date 2020/5/11 10:04
*/
IssueResultDTO detail(IssueDetailFormDTO issueDetail);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteDetailService.java

@ -0,0 +1,95 @@
/**
* 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.IssueVoteDetailDTO;
import com.epmet.entity.IssueVoteDetailEntity;
import java.util.List;
import java.util.Map;
/**
* 议题表决记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueVoteDetailService extends BaseService<IssueVoteDetailEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueVoteDetailDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueVoteDetailDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueVoteDetailDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueVoteDetailDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueVoteDetailDTO
* @author generator
* @date 2020-05-11
*/
IssueVoteDetailDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueVoteDetailDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueVoteDetailDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteStatisticalDailyService.java

@ -0,0 +1,95 @@
/**
* 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.IssueVoteStatisticalDailyDTO;
import com.epmet.entity.IssueVoteStatisticalDailyEntity;
import java.util.List;
import java.util.Map;
/**
* 议题表决按天统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueVoteStatisticalDailyService extends BaseService<IssueVoteStatisticalDailyEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueVoteStatisticalDailyDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueVoteStatisticalDailyDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueVoteStatisticalDailyDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueVoteStatisticalDailyDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueVoteStatisticalDailyDTO
* @author generator
* @date 2020-05-11
*/
IssueVoteStatisticalDailyDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueVoteStatisticalDailyDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueVoteStatisticalDailyDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

95
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/IssueVoteStatisticalService.java

@ -0,0 +1,95 @@
/**
* 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.IssueVoteStatisticalDTO;
import com.epmet.entity.IssueVoteStatisticalEntity;
import java.util.List;
import java.util.Map;
/**
* 议题表决统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
public interface IssueVoteStatisticalService extends BaseService<IssueVoteStatisticalEntity> {
/**
* 默认分页
*
* @param params
* @return PageData<IssueVoteStatisticalDTO>
* @author generator
* @date 2020-05-11
*/
PageData<IssueVoteStatisticalDTO> page(Map<String, Object> params);
/**
* 默认查询
*
* @param params
* @return java.util.List<IssueVoteStatisticalDTO>
* @author generator
* @date 2020-05-11
*/
List<IssueVoteStatisticalDTO> list(Map<String, Object> params);
/**
* 单条查询
*
* @param id
* @return IssueVoteStatisticalDTO
* @author generator
* @date 2020-05-11
*/
IssueVoteStatisticalDTO get(String id);
/**
* 默认保存
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void save(IssueVoteStatisticalDTO dto);
/**
* 默认更新
*
* @param dto
* @return void
* @author generator
* @date 2020-05-11
*/
void update(IssueVoteStatisticalDTO dto);
/**
* 批量删除
*
* @param ids
* @return void
* @author generator
* @date 2020-05-11
*/
void delete(String[] ids);
}

0
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/.gitkeep

99
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueCustomerParameterServiceImpl.java

@ -0,0 +1,99 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueCustomerParameterDao;
import com.epmet.dto.IssueCustomerParameterDTO;
import com.epmet.entity.IssueCustomerParameterEntity;
import com.epmet.service.IssueCustomerParameterService;
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-05-11
*/
@Service
public class IssueCustomerParameterServiceImpl extends BaseServiceImpl<IssueCustomerParameterDao, IssueCustomerParameterEntity> implements IssueCustomerParameterService {
@Override
public PageData<IssueCustomerParameterDTO> page(Map<String, Object> params) {
IPage<IssueCustomerParameterEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueCustomerParameterDTO.class);
}
@Override
public List<IssueCustomerParameterDTO> list(Map<String, Object> params) {
List<IssueCustomerParameterEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueCustomerParameterDTO.class);
}
private QueryWrapper<IssueCustomerParameterEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueCustomerParameterEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueCustomerParameterDTO get(String id) {
IssueCustomerParameterEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueCustomerParameterDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueCustomerParameterDTO dto) {
IssueCustomerParameterEntity entity = ConvertUtils.sourceToTarget(dto, IssueCustomerParameterEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueCustomerParameterDTO dto) {
IssueCustomerParameterEntity entity = ConvertUtils.sourceToTarget(dto, IssueCustomerParameterEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProcessServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueProcessDao;
import com.epmet.dto.IssueProcessDTO;
import com.epmet.entity.IssueProcessEntity;
import com.epmet.redis.IssueProcessRedis;
import com.epmet.service.IssueProcessService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题进展记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueProcessServiceImpl extends BaseServiceImpl<IssueProcessDao, IssueProcessEntity> implements IssueProcessService {
@Autowired
private IssueProcessRedis issueProcessRedis;
@Override
public PageData<IssueProcessDTO> page(Map<String, Object> params) {
IPage<IssueProcessEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueProcessDTO.class);
}
@Override
public List<IssueProcessDTO> list(Map<String, Object> params) {
List<IssueProcessEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueProcessDTO.class);
}
private QueryWrapper<IssueProcessEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueProcessEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueProcessDTO get(String id) {
IssueProcessEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueProcessDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueProcessDTO dto) {
IssueProcessEntity entity = ConvertUtils.sourceToTarget(dto, IssueProcessEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueProcessDTO dto) {
IssueProcessEntity entity = ConvertUtils.sourceToTarget(dto, IssueProcessEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueProjectRelationServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueProjectRelationDao;
import com.epmet.dto.IssueProjectRelationDTO;
import com.epmet.entity.IssueProjectRelationEntity;
import com.epmet.redis.IssueProjectRelationRedis;
import com.epmet.service.IssueProjectRelationService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题项目关系表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueProjectRelationServiceImpl extends BaseServiceImpl<IssueProjectRelationDao, IssueProjectRelationEntity> implements IssueProjectRelationService {
@Autowired
private IssueProjectRelationRedis issueProjectRelationRedis;
@Override
public PageData<IssueProjectRelationDTO> page(Map<String, Object> params) {
IPage<IssueProjectRelationEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueProjectRelationDTO.class);
}
@Override
public List<IssueProjectRelationDTO> list(Map<String, Object> params) {
List<IssueProjectRelationEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueProjectRelationDTO.class);
}
private QueryWrapper<IssueProjectRelationEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueProjectRelationEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueProjectRelationDTO get(String id) {
IssueProjectRelationEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueProjectRelationDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueProjectRelationDTO dto) {
IssueProjectRelationEntity entity = ConvertUtils.sourceToTarget(dto, IssueProjectRelationEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueProjectRelationDTO dto) {
IssueProjectRelationEntity entity = ConvertUtils.sourceToTarget(dto, IssueProjectRelationEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueSatisfactionDetailServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueSatisfactionDetailDao;
import com.epmet.dto.IssueSatisfactionDetailDTO;
import com.epmet.entity.IssueSatisfactionDetailEntity;
import com.epmet.redis.IssueSatisfactionDetailRedis;
import com.epmet.service.IssueSatisfactionDetailService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueSatisfactionDetailServiceImpl extends BaseServiceImpl<IssueSatisfactionDetailDao, IssueSatisfactionDetailEntity> implements IssueSatisfactionDetailService {
@Autowired
private IssueSatisfactionDetailRedis issueSatisfactionDetailRedis;
@Override
public PageData<IssueSatisfactionDetailDTO> page(Map<String, Object> params) {
IPage<IssueSatisfactionDetailEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueSatisfactionDetailDTO.class);
}
@Override
public List<IssueSatisfactionDetailDTO> list(Map<String, Object> params) {
List<IssueSatisfactionDetailEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueSatisfactionDetailDTO.class);
}
private QueryWrapper<IssueSatisfactionDetailEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueSatisfactionDetailEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueSatisfactionDetailDTO get(String id) {
IssueSatisfactionDetailEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueSatisfactionDetailDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueSatisfactionDetailDTO dto) {
IssueSatisfactionDetailEntity entity = ConvertUtils.sourceToTarget(dto, IssueSatisfactionDetailEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueSatisfactionDetailDTO dto) {
IssueSatisfactionDetailEntity entity = ConvertUtils.sourceToTarget(dto, IssueSatisfactionDetailEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueSatisfactionStatisticalServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueSatisfactionStatisticalDao;
import com.epmet.dto.IssueSatisfactionStatisticalDTO;
import com.epmet.entity.IssueSatisfactionStatisticalEntity;
import com.epmet.redis.IssueSatisfactionStatisticalRedis;
import com.epmet.service.IssueSatisfactionStatisticalService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题满意度调查统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueSatisfactionStatisticalServiceImpl extends BaseServiceImpl<IssueSatisfactionStatisticalDao, IssueSatisfactionStatisticalEntity> implements IssueSatisfactionStatisticalService {
@Autowired
private IssueSatisfactionStatisticalRedis issueSatisfactionStatisticalRedis;
@Override
public PageData<IssueSatisfactionStatisticalDTO> page(Map<String, Object> params) {
IPage<IssueSatisfactionStatisticalEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueSatisfactionStatisticalDTO.class);
}
@Override
public List<IssueSatisfactionStatisticalDTO> list(Map<String, Object> params) {
List<IssueSatisfactionStatisticalEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueSatisfactionStatisticalDTO.class);
}
private QueryWrapper<IssueSatisfactionStatisticalEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueSatisfactionStatisticalEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueSatisfactionStatisticalDTO get(String id) {
IssueSatisfactionStatisticalEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueSatisfactionStatisticalDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueSatisfactionStatisticalDTO dto) {
IssueSatisfactionStatisticalEntity entity = ConvertUtils.sourceToTarget(dto, IssueSatisfactionStatisticalEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueSatisfactionStatisticalDTO dto) {
IssueSatisfactionStatisticalEntity entity = ConvertUtils.sourceToTarget(dto, IssueSatisfactionStatisticalEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

34
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueServiceImpl.java

@ -0,0 +1,34 @@
package com.epmet.service.impl;
import com.epmet.commons.mybatis.service.impl.BaseServiceImpl;
import com.epmet.dao.IssueDao;
import com.epmet.dto.form.IssueDetailFormDTO;
import com.epmet.dto.result.IssueResultDTO;
import com.epmet.entity.IssueEntity;
import com.epmet.service.IssueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
* @Author zxc
* @CreateTime 2020/5/11 9:46
*/
@Service
public class IssueServiceImpl extends BaseServiceImpl<IssueDao, IssueEntity> implements IssueService {
@Autowired
private IssueDao issueDao;
/**
* @Description 议题详情
* @param issueDetail
* @author zxc
* @date 2020/5/11 10:04
*/
@Override
public IssueResultDTO detail(IssueDetailFormDTO issueDetail) {
//议题信息
IssueResultDTO issueResult = issueDao.issueDetail(issueDetail);
return issueResult;
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteDetailServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueVoteDetailDao;
import com.epmet.dto.IssueVoteDetailDTO;
import com.epmet.entity.IssueVoteDetailEntity;
import com.epmet.redis.IssueVoteDetailRedis;
import com.epmet.service.IssueVoteDetailService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题表决记录表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueVoteDetailServiceImpl extends BaseServiceImpl<IssueVoteDetailDao, IssueVoteDetailEntity> implements IssueVoteDetailService {
@Autowired
private IssueVoteDetailRedis issueVoteDetailRedis;
@Override
public PageData<IssueVoteDetailDTO> page(Map<String, Object> params) {
IPage<IssueVoteDetailEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueVoteDetailDTO.class);
}
@Override
public List<IssueVoteDetailDTO> list(Map<String, Object> params) {
List<IssueVoteDetailEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueVoteDetailDTO.class);
}
private QueryWrapper<IssueVoteDetailEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueVoteDetailEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueVoteDetailDTO get(String id) {
IssueVoteDetailEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueVoteDetailDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueVoteDetailDTO dto) {
IssueVoteDetailEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteDetailEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueVoteDetailDTO dto) {
IssueVoteDetailEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteDetailEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteStatisticalDailyServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueVoteStatisticalDailyDao;
import com.epmet.dto.IssueVoteStatisticalDailyDTO;
import com.epmet.entity.IssueVoteStatisticalDailyEntity;
import com.epmet.redis.IssueVoteStatisticalDailyRedis;
import com.epmet.service.IssueVoteStatisticalDailyService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题表决按天统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueVoteStatisticalDailyServiceImpl extends BaseServiceImpl<IssueVoteStatisticalDailyDao, IssueVoteStatisticalDailyEntity> implements IssueVoteStatisticalDailyService {
@Autowired
private IssueVoteStatisticalDailyRedis issueVoteStatisticalDailyRedis;
@Override
public PageData<IssueVoteStatisticalDailyDTO> page(Map<String, Object> params) {
IPage<IssueVoteStatisticalDailyEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueVoteStatisticalDailyDTO.class);
}
@Override
public List<IssueVoteStatisticalDailyDTO> list(Map<String, Object> params) {
List<IssueVoteStatisticalDailyEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueVoteStatisticalDailyDTO.class);
}
private QueryWrapper<IssueVoteStatisticalDailyEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueVoteStatisticalDailyEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueVoteStatisticalDailyDTO get(String id) {
IssueVoteStatisticalDailyEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueVoteStatisticalDailyDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueVoteStatisticalDailyDTO dto) {
IssueVoteStatisticalDailyEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteStatisticalDailyEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueVoteStatisticalDailyDTO dto) {
IssueVoteStatisticalDailyEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteStatisticalDailyEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

104
epmet-module/gov-issue/gov-issue-server/src/main/java/com/epmet/service/impl/IssueVoteStatisticalServiceImpl.java

@ -0,0 +1,104 @@
/**
* 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.page.PageData;
import com.epmet.commons.tools.utils.ConvertUtils;
import com.epmet.commons.tools.constant.FieldConstant;
import com.epmet.dao.IssueVoteStatisticalDao;
import com.epmet.dto.IssueVoteStatisticalDTO;
import com.epmet.entity.IssueVoteStatisticalEntity;
import com.epmet.redis.IssueVoteStatisticalRedis;
import com.epmet.service.IssueVoteStatisticalService;
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 java.util.Arrays;
import java.util.List;
import java.util.Map;
/**
* 议题表决统计表
*
* @author generator generator@elink-cn.com
* @since v1.0.0 2020-05-11
*/
@Service
public class IssueVoteStatisticalServiceImpl extends BaseServiceImpl<IssueVoteStatisticalDao, IssueVoteStatisticalEntity> implements IssueVoteStatisticalService {
@Autowired
private IssueVoteStatisticalRedis issueVoteStatisticalRedis;
@Override
public PageData<IssueVoteStatisticalDTO> page(Map<String, Object> params) {
IPage<IssueVoteStatisticalEntity> page = baseDao.selectPage(
getPage(params, FieldConstant.CREATED_TIME, false),
getWrapper(params)
);
return getPageData(page, IssueVoteStatisticalDTO.class);
}
@Override
public List<IssueVoteStatisticalDTO> list(Map<String, Object> params) {
List<IssueVoteStatisticalEntity> entityList = baseDao.selectList(getWrapper(params));
return ConvertUtils.sourceToTarget(entityList, IssueVoteStatisticalDTO.class);
}
private QueryWrapper<IssueVoteStatisticalEntity> getWrapper(Map<String, Object> params){
String id = (String)params.get(FieldConstant.ID_HUMP);
QueryWrapper<IssueVoteStatisticalEntity> wrapper = new QueryWrapper<>();
wrapper.eq(StringUtils.isNotBlank(id), FieldConstant.ID, id);
return wrapper;
}
@Override
public IssueVoteStatisticalDTO get(String id) {
IssueVoteStatisticalEntity entity = baseDao.selectById(id);
return ConvertUtils.sourceToTarget(entity, IssueVoteStatisticalDTO.class);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void save(IssueVoteStatisticalDTO dto) {
IssueVoteStatisticalEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteStatisticalEntity.class);
insert(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void update(IssueVoteStatisticalDTO dto) {
IssueVoteStatisticalEntity entity = ConvertUtils.sourceToTarget(dto, IssueVoteStatisticalEntity.class);
updateById(entity);
}
@Override
@Transactional(rollbackFor = Exception.class)
public void delete(String[] ids) {
// 逻辑删除(@TableLogic 注解)
baseDao.deleteBatchIds(Arrays.asList(ids));
}
}

22
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueCustomerParameterDao.xml

@ -0,0 +1,22 @@
<?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.IssueCustomerParameterDao">
<resultMap type="com.epmet.entity.IssueCustomerParameterEntity" id="issueCustomerParameterMap">
<result property="id" column="ID"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="parameterKey" column="PARAMETER_KEY"/>
<result property="parameterName" column="PARAMETER_NAME"/>
<result property="parameterValue" column="PARAMETER_VALUE"/>
<result property="description" column="DESCRIPTION"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

46
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueDao.xml

@ -0,0 +1,46 @@
<?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.IssueDao">
<resultMap type="com.epmet.entity.IssueEntity" id="issueMap">
<result property="id" column="ID"/>
<result property="issueStatus" column="ISSUE_STATUS"/>
<result property="sourceType" column="SOURCE_TYPE"/>
<result property="sourceId" column="SOURCE_ID"/>
<result property="closeReason" column="CLOSE_REASON"/>
<result property="resolveType" column="RESOLVE_TYPE"/>
<result property="issueTitle" column="ISSUE_TITLE"/>
<result property="suggestion" column="SUGGESTION"/>
<result property="customerId" column="CUSTOMER_ID"/>
<result property="gridId" column="GRID_ID"/>
<result property="orgIdPath" column="ORG_ID_PATH"/>
<result property="orgId" column="ORG_ID"/>
<result property="votingDeadline" column="VOTING_DEADLINE"/>
<result property="decidedTime" column="DECIDED_TIME"/>
<result property="shiftedTime" column="SHIFTED_TIME"/>
<result property="closedTime" column="CLOSED_TIME"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
<!-- 议题详情 -->
<select id="issueDetail" parameterType="com.epmet.dto.form.IssueDetailFormDTO" resultType="com.epmet.dto.result.IssueResultDTO">
SELECT
issue_title AS issueTitle,
issue_status AS issueStatus,
suggestion AS issueSuggestion,
grid_id AS belongsGridName,
created_by AS issueInitiator
FROM
issue
WHERE
id = #{IssueId}
AND del_flag = 0
</select>
</mapper>

22
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueProcessDao.xml

@ -0,0 +1,22 @@
<?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.IssueProcessDao">
<resultMap type="com.epmet.entity.IssueProcessEntity" id="issueProcessMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="issueStatus" column="ISSUE_STATUS"/>
<result property="orgType" column="ORG_TYPE"/>
<result property="orgId" column="ORG_ID"/>
<result property="operationExplain" column="OPERATION_EXPLAIN"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

19
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueProjectRelationDao.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.IssueProjectRelationDao">
<resultMap type="com.epmet.entity.IssueProjectRelationEntity" id="issueProjectRelationMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="projectId" column="PROJECT_ID"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

20
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueSatisfactionDetailDao.xml

@ -0,0 +1,20 @@
<?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.IssueSatisfactionDetailDao">
<resultMap type="com.epmet.entity.IssueSatisfactionDetailEntity" id="issueSatisfactionDetailMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="comment" column="COMMENT"/>
<result property="satisfaction" column="SATISFACTION"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

21
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueSatisfactionStatisticalDao.xml

@ -0,0 +1,21 @@
<?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.IssueSatisfactionStatisticalDao">
<resultMap type="com.epmet.entity.IssueSatisfactionStatisticalEntity" id="issueSatisfactionStatisticalMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="goodCount" column="GOOD_COUNT"/>
<result property="perfectCount" column="PERFECT_COUNT"/>
<result property="badCount" column="BAD_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

19
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteDetailDao.xml

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.IssueVoteDetailDao">
<resultMap type="com.epmet.entity.IssueVoteDetailEntity" id="issueVoteDetailMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="attitude" column="ATTITUDE"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

26
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteStatisticalDailyDao.xml

@ -0,0 +1,26 @@
<?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.IssueVoteStatisticalDailyDao">
<resultMap type="com.epmet.entity.IssueVoteStatisticalDailyEntity" id="issueVoteStatisticalDailyMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="statisticalDate" column="STATISTICAL_DATE"/>
<result property="supportCount" column="SUPPORT_COUNT"/>
<result property="oppositionCount" column="OPPOSITION_COUNT"/>
<result property="totalCount" column="TOTAL_COUNT"/>
<result property="todayIncrement" column="TODAY_INCREMENT"/>
<result property="supportIncrement" column="SUPPORT_INCREMENT"/>
<result property="oppositionIncrement" column="OPPOSITION_INCREMENT"/>
<result property="votableCount" column="VOTABLE_COUNT"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="revision" column="REVISION"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>

21
epmet-module/gov-issue/gov-issue-server/src/main/resources/mapper/IssueVoteStatisticalDao.xml

@ -0,0 +1,21 @@
<?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.IssueVoteStatisticalDao">
<resultMap type="com.epmet.entity.IssueVoteStatisticalEntity" id="issueVoteStatisticalMap">
<result property="id" column="ID"/>
<result property="issueId" column="ISSUE_ID"/>
<result property="supportCount" column="SUPPORT_COUNT"/>
<result property="oppositionCount" column="OPPOSITION_COUNT"/>
<result property="votableCount" column="VOTABLE_COUNT"/>
<result property="revision" column="REVISION"/>
<result property="delFlag" column="DEL_FLAG"/>
<result property="createdBy" column="CREATED_BY"/>
<result property="createdTime" column="CREATED_TIME"/>
<result property="updatedBy" column="UPDATED_BY"/>
<result property="updatedTime" column="UPDATED_TIME"/>
</resultMap>
</mapper>
Loading…
Cancel
Save