| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.panzhihua.common.constants.HttpConstant; |
| | | import com.panzhihua.common.utlis.HttpClientUtil; |
| | | import com.panzhihua.common.utlis.HttpUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import com.panzhihua.common.controller.BaseController; |
| | |
| | | } |
| | | return userService.getGridsMemberList(id); |
| | | } |
| | | |
| | | @ApiOperation(value = "民生大屏出入记录接口@lyq") |
| | | @PostMapping("/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("参数错误"); |
| | | } |
| | | String param = "page=" + pageNum + "&size=" + pageSize + "&areaId=" + areaId; |
| | | String resultJson = HttpUtils.sendGet(HttpConstant.NEIJIANG_URL ,param); |
| | | JSONObject result = JSON.parseObject(resultJson); |
| | | return R.ok(result.getString("data")); |
| | | } |
| | | |
| | | |
| | | |
| | | } |