| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import cn.hutool.http.HttpUtil; |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.constants.HttpConstant; |
| | | import com.panzhihua.common.model.dtos.property.CommonPage; |
| | | import com.panzhihua.common.utlis.HttpClientUtil; |
| | | import com.panzhihua.common.utlis.HttpUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "民生大屏出入记录接口@lyq") |
| | | @PostMapping("/event/inAndOut/record") |
| | | @GetMapping("/event/inAndOut/record") |
| | | public R inAndOutRecord(@RequestParam("pageNum") Long pageNum,@RequestParam("pageSize") Long pageSize,@RequestParam("areaId") Long areaId) { |
| | | if (pageNum == null || pageNum == null || areaId == null) { |
| | | return R.fail("参数错误"); |
| | |
| | | return R.ok(result.getString("data")); |
| | | } |
| | | |
| | | @ApiOperation(value = "民生大屏报警记录接口@lyq") |
| | | @PostMapping("/event/callThePolice/record") |
| | | public R callThePoliceRecord(@RequestBody CommonPage commonPage) { |
| | | if (commonPage == null) { |
| | | return R.fail("参数错误"); |
| | | } |
| | | String resultJson = HttpClientUtil.sendPostByJson(HttpConstant.CALL_THE_POLICE_URL,JSON.toJSONString(commonPage),0,null,null); |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | return R.ok(result.getString("data")); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |