| | |
| | | package com.panzhihua.serviceapi.api; |
| | | |
| | | import java.util.Collections; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | | import com.panzhihua.common.model.dtos.api.EventFile; |
| | | import com.panzhihua.common.model.dtos.api.EventInfo; |
| | | import com.panzhihua.common.model.vos.LoginUserInfoVO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.serviceapi.biz.LcApiService; |
| | | import com.panzhihua.serviceapi.model.dto.LcGridData; |
| | | import com.panzhihua.serviceapi.model.dto.LcKeyPersonVisitRecordQueryDTO; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Collections; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * program 攀枝花智慧社区项目 |
| | | * description 浪潮事件管理API |
| | | * program 攀枝花智慧社区项目 description 浪潮事件管理API |
| | | * |
| | | * @author manailin |
| | | * Date 2021-01-22 15:30 |
| | | * @author manailin Date 2021-01-22 15:30 |
| | | **/ |
| | | @Slf4j |
| | | @Api(tags = {"浪潮事件管理API"}) |
| | |
| | | @Resource |
| | | private LcApiService lcApiService; |
| | | |
| | | |
| | | /** |
| | | * description 向浪潮服务器提交网格事件登记 |
| | | * |
| | | * @param eventInfo 事件信息对象 |
| | | * @param eventInfo |
| | | * 事件信息对象 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | | */ |
| | |
| | | /** |
| | | * description 提交事件登记关联的文件或者图片信息 |
| | | * |
| | | * @param eventFile 文件对象 |
| | | * @param eventFile |
| | | * 文件对象 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | | */ |
| | |
| | | /** |
| | | * description 获取指定事件信息 |
| | | * |
| | | * @param eventId 事件ID |
| | | * @param eventId |
| | | * 事件ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | |
| | | /** |
| | | * description 获取所有或者根据姓名和工号查询,分页 |
| | | * |
| | | * @param areaId 西区ID |
| | | * @param areaId |
| | | * 西区ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | | */ |
| | | @ApiOperation(value = "获取所有或者根据姓名和工号查询,分页") |
| | | @GetMapping("lc/event/getGridMemberListByAreaIdOrName") |
| | | public R getGridMemberListByAreaIdOrName(String areaId,String param) { |
| | | public R getGridMemberListByAreaIdOrName(String areaId, String param, Long pageNum, Long pageSize) { |
| | | try { |
| | | return R.ok(lcApiService.getGridMemberListByAreaIdOrName(areaId,param)); |
| | | return R.ok(lcApiService.getGridMemberListByAreaIdOrName(areaId, param, pageNum, pageSize)); |
| | | } catch (Exception e) { |
| | | log.error("获取指定区域网格列表出现错误:{}", e.getMessage()); |
| | | } |
| | |
| | | /** |
| | | * description 获取指定区域网格列表,树形结构。不包括具体的网格数据。 |
| | | * |
| | | * @param areaId 区域ID |
| | | * @param areaId |
| | | * 区域ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | |
| | | /** |
| | | * description 获取指定区域网格数据列表 |
| | | * |
| | | * @param areaId 区域ID |
| | | * @param areaId |
| | | * 区域ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | |
| | | } |
| | | return R.ok(Collections.emptyList()); |
| | | } |
| | | |
| | | /** |
| | | * description 流动人口 走访详情 |
| | | * |
| | | * @param recordId 流动人口走访任务ID |
| | | * @param recordId |
| | | * 流动人口走访任务ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | |
| | | /** |
| | | * description 流动人口 走访记录列表 |
| | | * |
| | | * @param lcKeyPersonVisitRecordQueryDTO 入参参数 |
| | | * @param lcKeyPersonVisitRecordQueryDTO |
| | | * 入参参数 |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | | */ |
| | | @ApiOperation(value = " 流动人口 走访记录列表,分页") |
| | | @GetMapping("lc/event/getFlowPersonVisitRecordPage") |
| | | public String getFlowPersonVisitRecordPage(@RequestBody LcKeyPersonVisitRecordQueryDTO lcKeyPersonVisitRecordQueryDTO) { |
| | | public String |
| | | getFlowPersonVisitRecordPage(@RequestBody LcKeyPersonVisitRecordQueryDTO lcKeyPersonVisitRecordQueryDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | return lcApiService.getFlowPersonVisitRecordPage(lcKeyPersonVisitRecordQueryDTO, loginUserInfo.getUserId()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * description 重点人口 走访详情 |
| | | * |
| | | * @param recordId 流动人口走访任务ID |
| | | * @param recordId |
| | | * 流动人口走访任务ID |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | |
| | | /** |
| | | * description 重点人口 走访记录列表 |
| | | * |
| | | * @param lcKeyPersonVisitRecordQueryDTO 入参参数 |
| | | * @param lcKeyPersonVisitRecordQueryDTO |
| | | * 入参参数 |
| | | * @return String 事件信息 |
| | | * @author manailin |
| | | * @date 2021/6/10 17:00 |
| | | */ |
| | | @ApiOperation(value = " 重点人口 走访记录列表") |
| | | @GetMapping("lc/event/getKeyPersonVisitRecordPage") |
| | | public String getKeyPersonVisitRecordPage(@RequestBody LcKeyPersonVisitRecordQueryDTO lcKeyPersonVisitRecordQueryDTO) { |
| | | public String |
| | | getKeyPersonVisitRecordPage(@RequestBody LcKeyPersonVisitRecordQueryDTO lcKeyPersonVisitRecordQueryDTO) { |
| | | LoginUserInfoVO loginUserInfo = this.getLoginUserInfo(); |
| | | return lcApiService.getKeyPersonVisitRecordPage(lcKeyPersonVisitRecordQueryDTO, loginUserInfo.getUserId()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * description 自动上传走访记录 |