Browse Source

物业群与警民群话题

hotfix/yujt_opt
yujt 5 years ago
parent
commit
4a8d15a61c
  1. 34
      epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/controller/TopicController.java
  2. 4
      epdc-cloud-property/src/main/resources/mapper/smile/topic/GroupTopicDao.xml

34
epdc-cloud-property/src/main/java/com/elink/esua/epdc/modules/smile/topic/controller/TopicController.java

@ -54,6 +54,14 @@ public class TopicController {
@Autowired @Autowired
private TopicService topicService; private TopicService topicService;
/**
* PC端 - 物业群话题管理 - 列表分页
*
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.smile.dto.topic.TopicDTO>>
* @author
* @date 2020/7/3 17:31
*/
@GetMapping("page") @GetMapping("page")
@DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false) @DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public Result<PageData<TopicDTO>> page(@RequestParam Map<String, Object> params) { public Result<PageData<TopicDTO>> page(@RequestParam Map<String, Object> params) {
@ -61,6 +69,14 @@ public class TopicController {
return new Result<PageData<TopicDTO>>().ok(page); return new Result<PageData<TopicDTO>>().ok(page);
} }
/**
* PC端 - 警民群话题管理 - 列表分页
*
* @param params
* @return com.elink.esua.epdc.commons.tools.utils.Result<com.elink.esua.epdc.commons.tools.page.PageData < com.elink.esua.epdc.smile.dto.topic.TopicDTO>>
* @author work@yujt.net.cn
* @date 2020/7/3 17:32
*/
@GetMapping("policepage") @GetMapping("policepage")
@DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false) @DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public Result<PageData<TopicDTO>> policePage(@RequestParam Map<String, Object> params) { public Result<PageData<TopicDTO>> policePage(@RequestParam Map<String, Object> params) {
@ -98,6 +114,15 @@ public class TopicController {
return new Result(); return new Result();
} }
/**
* PC端 - 物业群话题管理 - 导出
*
* @param params
* @param response
* @return void
* @author
* @date 2020/7/3 17:33
*/
@GetMapping("export") @GetMapping("export")
@DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false) @DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {
@ -105,6 +130,15 @@ public class TopicController {
ExcelUtils.exportExcelToTarget(response, null, list, TopicExcel.class); ExcelUtils.exportExcelToTarget(response, null, list, TopicExcel.class);
} }
/**
* PC端 - 警民群话题管理 - 导出
*
* @param params
* @param response
* @return void
* @author
* @date 2020/7/3 17:33
*/
@GetMapping("policeexport") @GetMapping("policeexport")
@DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false) @DataFilter(tableAlias = "temp", deptId = "grid_id", prefix = "AND", isPendingCreator = false)
public void exportPolice(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { public void exportPolice(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception {

4
epdc-cloud-property/src/main/resources/mapper/smile/topic/GroupTopicDao.xml

@ -200,7 +200,7 @@
WHERE WHERE
temp.DEL_FLAG = '0' temp.DEL_FLAG = '0'
AND temp.STATE IN ( 0, 5, 20) AND temp.STATE IN ( 0, 5, 20)
AND temp.GROUP_CATEGORY = 'property_group' AND temp.CATEGORY_CODE = 'property_group'
<if test="associatedType != null and associatedType != ''"> <if test="associatedType != null and associatedType != ''">
AND temp.STATE in (0,5,10,15) AND temp.STATE in (0,5,10,15)
</if> </if>
@ -252,7 +252,7 @@
WHERE WHERE
temp.DEL_FLAG = '0' temp.DEL_FLAG = '0'
AND temp.STATE IN ( 0, 5, 20) AND temp.STATE IN ( 0, 5, 20)
AND temp.GROUP_CATEGORY = 'police_group' AND temp.CATEGORY_CODE = 'police_group'
<if test="associatedType != null and associatedType != ''"> <if test="associatedType != null and associatedType != ''">
AND temp.STATE in (0,5,10,15) AND temp.STATE in (0,5,10,15)
</if> </if>

Loading…
Cancel
Save